OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_EVENT_ROUTER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_EVENT_ROUTER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_EVENT_ROUTER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_EVENT_ROUTER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 }; | 111 }; |
112 | 112 |
113 typedef std::map<std::string, int> ExtensionUsageRegistry; | 113 typedef std::map<std::string, int> ExtensionUsageRegistry; |
114 | 114 |
115 class FileWatcherExtensions { | 115 class FileWatcherExtensions { |
116 public: | 116 public: |
117 FileWatcherExtensions(const FilePath& path, | 117 FileWatcherExtensions(const FilePath& path, |
118 const std::string& extension_id, | 118 const std::string& extension_id, |
119 bool is_remote_file_system); | 119 bool is_remote_file_system); |
120 | 120 |
121 ~FileWatcherExtensions() {} | 121 ~FileWatcherExtensions(); |
122 | 122 |
123 void AddExtension(const std::string& extension_id); | 123 void AddExtension(const std::string& extension_id); |
124 | 124 |
125 void RemoveExtension(const std::string& extension_id); | 125 void RemoveExtension(const std::string& extension_id); |
126 | 126 |
127 const ExtensionUsageRegistry& GetExtensions() const; | 127 const ExtensionUsageRegistry& GetExtensions() const; |
128 | 128 |
129 unsigned int GetRefCount() const; | 129 unsigned int GetRefCount() const; |
130 | 130 |
131 const FilePath& GetVirtualPath() const; | 131 const FilePath& GetVirtualPath() const; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 | 234 |
235 FileBrowserEventRouterFactory(); | 235 FileBrowserEventRouterFactory(); |
236 virtual ~FileBrowserEventRouterFactory(); | 236 virtual ~FileBrowserEventRouterFactory(); |
237 | 237 |
238 // ProfileKeyedServiceFactory: | 238 // ProfileKeyedServiceFactory: |
239 virtual scoped_refptr<RefcountedProfileKeyedService> BuildServiceInstanceFor( | 239 virtual scoped_refptr<RefcountedProfileKeyedService> BuildServiceInstanceFor( |
240 Profile* profile) const OVERRIDE; | 240 Profile* profile) const OVERRIDE; |
241 }; | 241 }; |
242 | 242 |
243 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_EVENT_ROUTER_H_ | 243 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_EVENT_ROUTER_H_ |
OLD | NEW |