Chromium Code Reviews| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 75 const std::string& api_name, | 75 const std::string& api_name, |
| 76 const std::string& page_url, | 76 const std::string& page_url, |
| 77 const std::string& arg_url, | 77 const std::string& arg_url, |
| 78 const int days_ago, | 78 const int days_ago, |
| 79 const base::Callback | 79 const base::Callback |
| 80 <void(scoped_ptr<std::vector<scoped_refptr<Action> > >)>& callback); | 80 <void(scoped_ptr<std::vector<scoped_refptr<Action> > >)>& callback); |
| 81 | 81 |
| 82 // Extension::InstallObserver | 82 // Extension::InstallObserver |
| 83 // We keep track of whether the whitelisted extension is installed; if it is, | 83 // We keep track of whether the whitelisted extension is installed; if it is, |
| 84 // we want to recompute whether to have logging enabled. | 84 // we want to recompute whether to have logging enabled. |
| 85 virtual void OnExtensionInstalled(const Extension* extension) OVERRIDE {} | |
|
felt
2014/02/25 23:30:40
Why is this disappearing with no replacement? Will
Devlin
2014/02/25 23:40:46
Shouldn't break it, I hope :) Just removed the pu
felt
2014/02/25 23:43:41
Ah, I see.
Also, it looks like someone has made p
| |
| 86 virtual void OnExtensionLoaded(const Extension* extension) OVERRIDE; | 85 virtual void OnExtensionLoaded(const Extension* extension) OVERRIDE; |
| 87 virtual void OnExtensionUnloaded(const Extension* extension) OVERRIDE; | 86 virtual void OnExtensionUnloaded(const Extension* extension) OVERRIDE; |
| 88 virtual void OnExtensionUninstalled(const Extension* extension) OVERRIDE; | 87 virtual void OnExtensionUninstalled(const Extension* extension) OVERRIDE; |
| 89 // We also have to list the following from InstallObserver. | |
| 90 virtual void OnBeginExtensionInstall( | |
| 91 const ExtensionInstallParams& params) OVERRIDE {} | |
| 92 virtual void OnDownloadProgress(const std::string& extension_id, | |
| 93 int percent_downloaded) OVERRIDE {} | |
| 94 virtual void OnInstallFailure(const std::string& extension_id) OVERRIDE {} | |
| 95 virtual void OnAppsReordered() OVERRIDE {} | |
| 96 virtual void OnAppInstalledToAppList( | |
| 97 const std::string& extension_id) OVERRIDE {} | |
| 98 virtual void OnShutdown() OVERRIDE {} | |
| 99 | 88 |
| 100 // ApiActivityMonitor | 89 // ApiActivityMonitor |
| 101 virtual void OnApiEventDispatched( | 90 virtual void OnApiEventDispatched( |
| 102 const std::string& extension_id, | 91 const std::string& extension_id, |
| 103 const std::string& event_name, | 92 const std::string& event_name, |
| 104 scoped_ptr<base::ListValue> event_args) OVERRIDE; | 93 scoped_ptr<base::ListValue> event_args) OVERRIDE; |
| 105 virtual void OnApiFunctionCalled( | 94 virtual void OnApiFunctionCalled( |
| 106 const std::string& extension_id, | 95 const std::string& extension_id, |
| 107 const std::string& api_name, | 96 const std::string& api_name, |
| 108 scoped_ptr<base::ListValue> event_args) OVERRIDE; | 97 scoped_ptr<base::ListValue> event_args) OVERRIDE; |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 237 virtual content::BrowserContext* GetBrowserContextToUse( | 226 virtual content::BrowserContext* GetBrowserContextToUse( |
| 238 content::BrowserContext* context) const OVERRIDE; | 227 content::BrowserContext* context) const OVERRIDE; |
| 239 | 228 |
| 240 DISALLOW_COPY_AND_ASSIGN(ActivityLogFactory); | 229 DISALLOW_COPY_AND_ASSIGN(ActivityLogFactory); |
| 241 }; | 230 }; |
| 242 | 231 |
| 243 | 232 |
| 244 } // namespace extensions | 233 } // namespace extensions |
| 245 | 234 |
| 246 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_H_ | 235 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_H_ |
| OLD | NEW |