Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
apache_message_handler.h
Go to the documentation of this file.
1 // Copyright 2010 Google Inc.
14 
16 
17 #ifndef PAGESPEED_APACHE_APACHE_MESSAGE_HANDLER_H_
18 #define PAGESPEED_APACHE_APACHE_MESSAGE_HANDLER_H_
19 
25 
26 struct server_rec;
27 
28 namespace net_instaweb {
29 
30 class AbstractMutex;
31 class Timer;
32 
36  public:
39  ApacheMessageHandler(const server_rec* server, const StringPiece& version,
40  Timer* timer, AbstractMutex* mutex);
41 
44  static void InstallCrashHandler(server_rec* global_server);
45 
46  protected:
47  virtual void MessageSImpl(MessageType type, const GoogleString& message);
48 
49  virtual void FileMessageSImpl(MessageType type, const char* filename,
50  int line, const GoogleString& message);
51 
52  private:
53  int GetApacheLogLevel(MessageType type);
54 
55  const server_rec* server_rec_;
56  const GoogleString version_;
57 
58 
59 };
60 
61 }
62 
63 #endif
static void InstallCrashHandler(server_rec *global_server)
Abstract interface for implementing a mutex.
Definition: abstract_mutex.h:28
virtual void MessageSImpl(MessageType type, const GoogleString &message)
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
Definition: apache_message_handler.h:35
ApacheMessageHandler(const server_rec *server, const StringPiece &version, Timer *timer, AbstractMutex *mutex)
Definition: system_message_handler.h:40
Timer interface, made virtual so it can be mocked for tests.
Definition: timer.h:27