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_EXTENSIONS_ACTIVITY_LOG_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 private: | 241 private: |
242 friend struct DefaultSingletonTraits<ActivityLogFactory>; | 242 friend struct DefaultSingletonTraits<ActivityLogFactory>; |
243 ActivityLogFactory() | 243 ActivityLogFactory() |
244 : ProfileKeyedServiceFactory("ActivityLog", | 244 : ProfileKeyedServiceFactory("ActivityLog", |
245 ProfileDependencyManager::GetInstance()) {} | 245 ProfileDependencyManager::GetInstance()) {} |
246 virtual ~ActivityLogFactory() {} | 246 virtual ~ActivityLogFactory() {} |
247 | 247 |
248 virtual ProfileKeyedService* BuildServiceInstanceFor( | 248 virtual ProfileKeyedService* BuildServiceInstanceFor( |
249 content::BrowserContext* profile) const OVERRIDE; | 249 content::BrowserContext* profile) const OVERRIDE; |
250 | 250 |
251 virtual bool ServiceRedirectedInIncognito() const OVERRIDE; | 251 virtual content::BrowserContext* GetBrowserContextToUse( |
| 252 content::BrowserContext* context) const OVERRIDE; |
252 | 253 |
253 DISALLOW_COPY_AND_ASSIGN(ActivityLogFactory); | 254 DISALLOW_COPY_AND_ASSIGN(ActivityLogFactory); |
254 }; | 255 }; |
255 | 256 |
256 | 257 |
257 } // namespace extensions | 258 } // namespace extensions |
258 | 259 |
259 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_H_ | 260 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_H_ |
OLD | NEW |