Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
input_file_nonce_generator.h
Go to the documentation of this file.
1 // Copyright 2013 Google Inc. All Rights Reserved.
14 
16 
17 #ifndef PAGESPEED_KERNEL_UTIL_INPUT_FILE_NONCE_GENERATOR_H_
18 #define PAGESPEED_KERNEL_UTIL_INPUT_FILE_NONCE_GENERATOR_H_
19 
24 
25 namespace net_instaweb {
26 
27 class MessageHandler;
28 
32  public:
35  AbstractMutex* mutex, MessageHandler* handler)
36  : NonceGenerator(mutex), file_(file),
37  file_system_(file_system), handler_(handler) { }
38  virtual ~InputFileNonceGenerator();
39 
40  protected:
41  virtual uint64 NewNonceImpl();
42 
43  private:
44  FileSystem::InputFile* file_;
45  FileSystem* file_system_;
46  MessageHandler* handler_;
47 
48 
49 };
50 
51 }
52 
53 #endif
Definition: input_file_nonce_generator.h:31
virtual uint64 NewNonceImpl()
Subclasses must implement this method. Locking is already handled.
InputFileNonceGenerator(FileSystem::InputFile *file, FileSystem *file_system, AbstractMutex *mutex, MessageHandler *handler)
Takes ownership of file and mutex, but not of handler or file_system.
Definition: input_file_nonce_generator.h:34
Abstract interface for implementing a mutex.
Definition: abstract_mutex.h:28
Definition: file_system.h:76
Definition: file_system.h:96
Definition: message_handler.h:39
Definition: nonce_generator.h:28