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

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

Issue 10683003: Moved CrxInstaller and CrxInstallerError into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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
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_EXTENSION_INSTALL_PROMPT_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 // We *MUST* eventually call either Proceed() or Abort() on |delegate|. 212 // We *MUST* eventually call either Proceed() or Abort() on |delegate|.
213 virtual void ConfirmPermissions(Delegate* delegate, 213 virtual void ConfirmPermissions(Delegate* delegate,
214 const extensions::Extension* extension, 214 const extensions::Extension* extension,
215 const extensions::PermissionSet* permissions); 215 const extensions::PermissionSet* permissions);
216 216
217 // Installation was successful. This is declared virtual for testing. 217 // Installation was successful. This is declared virtual for testing.
218 virtual void OnInstallSuccess(const extensions::Extension* extension, 218 virtual void OnInstallSuccess(const extensions::Extension* extension,
219 SkBitmap* icon); 219 SkBitmap* icon);
220 220
221 // Installation failed. This is declared virtual for testing. 221 // Installation failed. This is declared virtual for testing.
222 virtual void OnInstallFailure(const CrxInstallerError& error); 222 virtual void OnInstallFailure(const extensions::CrxInstallerError& error);
223 223
224 // ImageLoadingTracker::Observer: 224 // ImageLoadingTracker::Observer:
225 virtual void OnImageLoaded(const gfx::Image& image, 225 virtual void OnImageLoaded(const gfx::Image& image,
226 const std::string& extension_id, 226 const std::string& extension_id,
227 int index) OVERRIDE; 227 int index) OVERRIDE;
228 228
229 // Returns true if extension scopes should be approved without asking the 229 // Returns true if extension scopes should be approved without asking the
230 // user. This is controlled by a flag; before the identity api is taken out 230 // user. This is controlled by a flag; before the identity api is taken out
231 // of experimental the flag should be removed and this should always be false. 231 // of experimental the flag should be removed and this should always be false.
232 static bool ShouldAutomaticallyApproveScopes(); 232 static bool ShouldAutomaticallyApproveScopes();
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 PromptType prompt_type_; 290 PromptType prompt_type_;
291 291
292 scoped_ptr<OAuth2MintTokenFlow> token_flow_; 292 scoped_ptr<OAuth2MintTokenFlow> token_flow_;
293 293
294 // Keeps track of extension images being loaded on the File thread for the 294 // Keeps track of extension images being loaded on the File thread for the
295 // purpose of showing the install UI. 295 // purpose of showing the install UI.
296 ImageLoadingTracker tracker_; 296 ImageLoadingTracker tracker_;
297 }; 297 };
298 298
299 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ 299 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698