| 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_ACTIVITY_LOG_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 const extensions::Extension* extension) OVERRIDE; | 128 const extensions::Extension* extension) OVERRIDE; |
| 129 // We also have to list the following from InstallObserver. | 129 // We also have to list the following from InstallObserver. |
| 130 virtual void OnBeginExtensionInstall(const std::string& extension_id, | 130 virtual void OnBeginExtensionInstall(const std::string& extension_id, |
| 131 const std::string& extension_name, | 131 const std::string& extension_name, |
| 132 const gfx::ImageSkia& installing_icon, | 132 const gfx::ImageSkia& installing_icon, |
| 133 bool is_app, | 133 bool is_app, |
| 134 bool is_platform_app) OVERRIDE {} | 134 bool is_platform_app) OVERRIDE {} |
| 135 virtual void OnDownloadProgress(const std::string& extension_id, | 135 virtual void OnDownloadProgress(const std::string& extension_id, |
| 136 int percent_downloaded) OVERRIDE {} | 136 int percent_downloaded) OVERRIDE {} |
| 137 virtual void OnInstallFailure(const std::string& extension_id) OVERRIDE {} | 137 virtual void OnInstallFailure(const std::string& extension_id) OVERRIDE {} |
| 138 virtual void OnAppsReordered() OVERRIDE {} | 138 virtual void OnAppListReordered() OVERRIDE {} |
| 139 virtual void OnAppInstalledToAppList( | 139 virtual void OnAppInstalledToAppList( |
| 140 const std::string& extension_id) OVERRIDE {} | 140 const std::string& extension_id) OVERRIDE {} |
| 141 virtual void OnShutdown() OVERRIDE {} | 141 virtual void OnShutdown() OVERRIDE {} |
| 142 | 142 |
| 143 // For unit tests only. | 143 // For unit tests only. |
| 144 // TODO(felt) In the future, when we'll have multiple policies, it might | 144 // TODO(felt) In the future, when we'll have multiple policies, it might |
| 145 // be needed to rename the argument. | 145 // be needed to rename the argument. |
| 146 void SetArgumentLoggingForTesting(bool log_arguments); | 146 void SetArgumentLoggingForTesting(bool log_arguments); |
| 147 static void RecomputeLoggingIsEnabled(bool profile_enabled); | 147 static void RecomputeLoggingIsEnabled(bool profile_enabled); |
| 148 | 148 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 virtual content::BrowserContext* GetBrowserContextToUse( | 232 virtual content::BrowserContext* GetBrowserContextToUse( |
| 233 content::BrowserContext* context) const OVERRIDE; | 233 content::BrowserContext* context) const OVERRIDE; |
| 234 | 234 |
| 235 DISALLOW_COPY_AND_ASSIGN(ActivityLogFactory); | 235 DISALLOW_COPY_AND_ASSIGN(ActivityLogFactory); |
| 236 }; | 236 }; |
| 237 | 237 |
| 238 | 238 |
| 239 } // namespace extensions | 239 } // namespace extensions |
| 240 | 240 |
| 241 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_H_ | 241 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_H_ |
| OLD | NEW |