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

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

Issue 15292011: Prevent duplicate webstore install requests being serviced. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests Created 7 years, 6 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_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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // The extension id was invalid. 99 // The extension id was invalid.
100 INVALID_ID, 100 INVALID_ID,
101 101
102 // The page does not have permission to call this function. 102 // The page does not have permission to call this function.
103 PERMISSION_DENIED, 103 PERMISSION_DENIED,
104 104
105 // Invalid icon url. 105 // Invalid icon url.
106 INVALID_ICON_URL, 106 INVALID_ICON_URL,
107 107
108 // Signin has failed. 108 // Signin has failed.
109 SIGNIN_FAILED 109 SIGNIN_FAILED,
110
111 // An extension with the same extension id has already been installed.
112 ALREADY_INSTALLED,
110 }; 113 };
111 114
112 BeginInstallWithManifestFunction(); 115 BeginInstallWithManifestFunction();
113 116
114 // WebstoreInstallHelper::Delegate: 117 // WebstoreInstallHelper::Delegate:
115 virtual void OnWebstoreParseSuccess( 118 virtual void OnWebstoreParseSuccess(
116 const std::string& id, 119 const std::string& id,
117 const SkBitmap& icon, 120 const SkBitmap& icon,
118 base::DictionaryValue* parsed_manifest) OVERRIDE; 121 base::DictionaryValue* parsed_manifest) OVERRIDE;
119 virtual void OnWebstoreParseFailure( 122 virtual void OnWebstoreParseFailure(
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 // ExtensionFunction: 288 // ExtensionFunction:
286 virtual bool RunImpl() OVERRIDE; 289 virtual bool RunImpl() OVERRIDE;
287 290
288 private: 291 private:
289 void OnIsLauncherCheckCompleted(bool is_enabled); 292 void OnIsLauncherCheckCompleted(bool is_enabled);
290 }; 293 };
291 294
292 } // namespace extensions 295 } // namespace extensions
293 296
294 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H _ 297 #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