Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
file_system_lock_manager.h
Go to the documentation of this file.
1 /*
2  * Copyright 2010 Google Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http:///www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
18 
19 #ifndef PAGESPEED_KERNEL_UTIL_FILE_SYSTEM_LOCK_MANAGER_H_
20 #define PAGESPEED_KERNEL_UTIL_FILE_SYSTEM_LOCK_MANAGER_H_
21 
27 
28 namespace net_instaweb {
29 
30 class FileSystem;
31 class MessageHandler;
32 class Scheduler;
33 
39  public:
46  const StringPiece& base_path,
47  Scheduler* scheduler,
48  MessageHandler* handler);
49  virtual ~FileSystemLockManager();
50 
60  virtual SchedulerBasedAbstractLock* CreateNamedLock(const StringPiece& name);
61 
63  FileSystem* file_system() const { return file_system_; }
64  Scheduler* scheduler() const { return scheduler_; }
65  MessageHandler* handler() const { return handler_; }
66 
67  private:
68  FileSystem* file_system_;
69  GoogleString base_path_;
70  Scheduler* scheduler_;
71  MessageHandler* handler_;
72 
73 
74 };
75 
76 }
77 
78 #endif
FileSystem * file_system() const
Simple accessors for constructor arguments.
Definition: file_system_lock_manager.h:63
Definition: named_lock_manager.h:82
virtual SchedulerBasedAbstractLock * CreateNamedLock(const StringPiece &name)
Definition: file_system_lock_manager.h:38
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
Definition: file_system.h:76
FileSystemLockManager(FileSystem *file_system, const StringPiece &base_path, Scheduler *scheduler, MessageHandler *handler)
Definition: message_handler.h:39
Definition: scheduler.h:47
Definition: scheduler_based_abstract_lock.h:40