Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: chrome/browser/extensions/activity_log/activity_log.h

Issue 175263003: Add chrome.webstore API methods to allow sites to see progress of installation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/api/webstore/webstore_api.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/webstore/webstore_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698