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

Side by Side Diff: chrome/browser/extensions/api/webstore_private/webstore_private_api.h

Issue 12208040: [win] Add a progress bar in the app launcher for app installs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix linux compile Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/extensions/api/webstore_private/webstore_private_api.cc » ('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_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/extensions/bundle_installer.h" 10 #include "chrome/browser/extensions/bundle_installer.h"
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 WEBSTOREPRIVATE_COMPLETEINSTALL) 157 WEBSTOREPRIVATE_COMPLETEINSTALL)
158 158
159 CompleteInstallFunction(); 159 CompleteInstallFunction();
160 160
161 // WebstoreInstaller::Delegate: 161 // WebstoreInstaller::Delegate:
162 virtual void OnExtensionInstallSuccess(const std::string& id) OVERRIDE; 162 virtual void OnExtensionInstallSuccess(const std::string& id) OVERRIDE;
163 virtual void OnExtensionInstallFailure( 163 virtual void OnExtensionInstallFailure(
164 const std::string& id, 164 const std::string& id,
165 const std::string& error, 165 const std::string& error,
166 WebstoreInstaller::FailureReason reason) OVERRIDE; 166 WebstoreInstaller::FailureReason reason) OVERRIDE;
167 virtual void OnExtensionDownloadProgress(
168 const std::string& id,
169 content::DownloadItem* item) OVERRIDE;
167 170
168 protected: 171 protected:
169 virtual ~CompleteInstallFunction(); 172 virtual ~CompleteInstallFunction();
170 173
171 // ExtensionFunction: 174 // ExtensionFunction:
172 virtual bool RunImpl() OVERRIDE; 175 virtual bool RunImpl() OVERRIDE;
173 176
174 private: 177 private:
175 void AfterMaybeInstallAppLauncher(bool ok); 178 void AfterMaybeInstallAppLauncher(bool ok);
176 void OnGetAppLauncherEnabled(std::string id, bool app_launcher_enabled); 179 void OnGetAppLauncherEnabled(std::string id, bool app_launcher_enabled);
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 // ExtensionFunction: 251 // ExtensionFunction:
249 virtual bool RunImpl() OVERRIDE; 252 virtual bool RunImpl() OVERRIDE;
250 253
251 private: 254 private:
252 void OnIsLauncherCheckCompleted(bool is_enabled); 255 void OnIsLauncherCheckCompleted(bool is_enabled);
253 }; 256 };
254 257
255 } // namespace extensions 258 } // namespace extensions
256 259
257 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H _ 260 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H _
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/webstore_private/webstore_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698