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

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: Latest-er master 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 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 // We *MUST* eventually call either Proceed() or Abort() on |delegate|. 228 // We *MUST* eventually call either Proceed() or Abort() on |delegate|.
229 virtual void ConfirmIssueAdvice(Delegate* delegate, 229 virtual void ConfirmIssueAdvice(Delegate* delegate,
230 const extensions::Extension* extension, 230 const extensions::Extension* extension,
231 const IssueAdviceInfo& issue_advice); 231 const IssueAdviceInfo& issue_advice);
232 232
233 // Installation was successful. This is declared virtual for testing. 233 // Installation was successful. This is declared virtual for testing.
234 virtual void OnInstallSuccess(const extensions::Extension* extension, 234 virtual void OnInstallSuccess(const extensions::Extension* extension,
235 SkBitmap* icon); 235 SkBitmap* icon);
236 236
237 // Installation failed. This is declared virtual for testing. 237 // Installation failed. This is declared virtual for testing.
238 virtual void OnInstallFailure(const CrxInstallerError& error); 238 virtual void OnInstallFailure(const extensions::CrxInstallerError& error);
239 239
240 // ImageLoadingTracker::Observer: 240 // ImageLoadingTracker::Observer:
241 virtual void OnImageLoaded(const gfx::Image& image, 241 virtual void OnImageLoaded(const gfx::Image& image,
242 const std::string& extension_id, 242 const std::string& extension_id,
243 int index) OVERRIDE; 243 int index) OVERRIDE;
244 244
245 // Returns true if extension scopes should be approved without asking the 245 // Returns true if extension scopes should be approved without asking the
246 // user. This is controlled by a flag; before the identity api is taken out 246 // user. This is controlled by a flag; before the identity api is taken out
247 // of experimental the flag should be removed and this should always be false. 247 // of experimental the flag should be removed and this should always be false.
248 static bool ShouldAutomaticallyApproveScopes(); 248 static bool ShouldAutomaticallyApproveScopes();
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 317
318 // Creates an ExtensionInstallPrompt from |browser|. Caller assumes ownership. 318 // Creates an ExtensionInstallPrompt from |browser|. Caller assumes ownership.
319 // TODO(beng): remove this once various extensions types are weaned from 319 // TODO(beng): remove this once various extensions types are weaned from
320 // Browser. 320 // Browser.
321 ExtensionInstallPrompt* CreateExtensionInstallPromptWithBrowser( 321 ExtensionInstallPrompt* CreateExtensionInstallPromptWithBrowser(
322 Browser* browser); 322 Browser* browser);
323 323
324 } // namespace chrome 324 } // namespace chrome
325 325
326 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ 326 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_browsertest.cc ('k') | chrome/browser/extensions/extension_install_prompt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698