19 #ifndef NET_INSTAWEB_HTTP_PUBLIC_SIMULATED_DELAY_FETCHER_H_
20 #define NET_INSTAWEB_HTTP_PUBLIC_SIMULATED_DELAY_FETCHER_H_
30 #include "pagespeed/kernel/base/thread_annotations.h"
32 namespace net_instaweb {
60 StringPiece delay_map_path,
61 StringPiece request_log_path,
62 int request_log_flush_frequency);
71 typedef std::map<GoogleString, int> DelayMap;
73 void ParseDelayMap(StringPiece delay_map_path);
80 int request_log_flush_frequency_;
83 int request_log_outstanding_ GUARDED_BY(mutex_.get());
SimulatedDelayFetcher(ThreadSystem *thread_system, Timer *timer, Scheduler *scheduler, MessageHandler *handler, FileSystem *file_system, StringPiece delay_map_path, StringPiece request_log_path, int request_log_flush_frequency)
Definition: scoped_ptr.h:30
Definition: simulated_delay_fetcher.h:44
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
Definition: async_fetch.h:53
Definition: file_system.h:76
virtual void Fetch(const GoogleString &url, MessageHandler *message_handler, AsyncFetch *fetch)
Definition: thread_system.h:40
Definition: message_handler.h:39
Definition: scheduler.h:47
Timer interface, made virtual so it can be mocked for tests.
Definition: timer.h:27
Definition: url_async_fetcher.h:33
static const char kPayload[]
The payload that this will deliver.
Definition: simulated_delay_fetcher.h:47
Definition: file_system.h:113