| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 static ActivityLogFactory* GetInstance(); | 222 static ActivityLogFactory* GetInstance(); |
| 223 | 223 |
| 224 private: | 224 private: |
| 225 friend struct DefaultSingletonTraits<ActivityLogFactory>; | 225 friend struct DefaultSingletonTraits<ActivityLogFactory>; |
| 226 ActivityLogFactory() | 226 ActivityLogFactory() |
| 227 : ProfileKeyedServiceFactory("ActivityLog", | 227 : ProfileKeyedServiceFactory("ActivityLog", |
| 228 ProfileDependencyManager::GetInstance()) {} | 228 ProfileDependencyManager::GetInstance()) {} |
| 229 virtual ~ActivityLogFactory() {} | 229 virtual ~ActivityLogFactory() {} |
| 230 | 230 |
| 231 virtual ProfileKeyedService* BuildServiceInstanceFor( | 231 virtual ProfileKeyedService* BuildServiceInstanceFor( |
| 232 Profile* profile) const OVERRIDE; | 232 content::BrowserContext* profile) const OVERRIDE; |
| 233 | 233 |
| 234 virtual bool ServiceRedirectedInIncognito() const OVERRIDE; | 234 virtual bool ServiceRedirectedInIncognito() const OVERRIDE; |
| 235 | 235 |
| 236 DISALLOW_COPY_AND_ASSIGN(ActivityLogFactory); | 236 DISALLOW_COPY_AND_ASSIGN(ActivityLogFactory); |
| 237 }; | 237 }; |
| 238 | 238 |
| 239 | 239 |
| 240 } // namespace extensions | 240 } // namespace extensions |
| 241 | 241 |
| 242 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_H_ | 242 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_H_ |
| OLD | NEW |