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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 public: | 220 public: |
221 // Returns the FileBrowserEventRouter for |profile|, creating it if | 221 // Returns the FileBrowserEventRouter for |profile|, creating it if |
222 // it is not yet created. | 222 // it is not yet created. |
223 static scoped_refptr<FileBrowserEventRouter> GetForProfile(Profile* profile); | 223 static scoped_refptr<FileBrowserEventRouter> GetForProfile(Profile* profile); |
224 | 224 |
225 // Returns the FileBrowserEventRouterFactory instance. | 225 // Returns the FileBrowserEventRouterFactory instance. |
226 static FileBrowserEventRouterFactory* GetInstance(); | 226 static FileBrowserEventRouterFactory* GetInstance(); |
227 | 227 |
228 protected: | 228 protected: |
229 // ProfileKeyedBasedFactory overrides: | 229 // ProfileKeyedBasedFactory overrides: |
230 virtual bool ServiceHasOwnInstanceInIncognito() OVERRIDE; | 230 virtual bool ServiceHasOwnInstanceInIncognito() const OVERRIDE; |
231 | 231 |
232 private: | 232 private: |
233 friend struct DefaultSingletonTraits<FileBrowserEventRouterFactory>; | 233 friend struct DefaultSingletonTraits<FileBrowserEventRouterFactory>; |
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 |