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

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

Issue 14328029: Streamlined sideload UI for extensions from the webstore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 2 classes Created 7 years, 8 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/extension_install_prompt.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_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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 // should be re-enabled. This is declared virtual for testing. 261 // should be re-enabled. This is declared virtual for testing.
262 // 262 //
263 // We *MUST* eventually call either Proceed() or Abort() on |delegate|. 263 // We *MUST* eventually call either Proceed() or Abort() on |delegate|.
264 virtual void ConfirmReEnable(Delegate* delegate, 264 virtual void ConfirmReEnable(Delegate* delegate,
265 const extensions::Extension* extension); 265 const extensions::Extension* extension);
266 266
267 // This is called by the external install alert UI to verify whether the 267 // This is called by the external install alert UI to verify whether the
268 // extension should be enabled (external extensions are installed disabled). 268 // extension should be enabled (external extensions are installed disabled).
269 // 269 //
270 // We *MUST* eventually call either Proceed() or Abort() on |delegate|. 270 // We *MUST* eventually call either Proceed() or Abort() on |delegate|.
271 virtual void ConfirmExternalInstall(Delegate* delegate, 271 virtual void ConfirmExternalInstall(
272 const extensions::Extension* extension); 272 Delegate* delegate,
273 const extensions::Extension* extension,
274 const ShowDialogCallback& show_dialog_callback);
273 275
274 // This is called by the extension permissions API to verify whether an 276 // This is called by the extension permissions API to verify whether an
275 // extension may be granted additional permissions. 277 // extension may be granted additional permissions.
276 // 278 //
277 // We *MUST* eventually call either Proceed() or Abort() on |delegate|. 279 // We *MUST* eventually call either Proceed() or Abort() on |delegate|.
278 virtual void ConfirmPermissions(Delegate* delegate, 280 virtual void ConfirmPermissions(Delegate* delegate,
279 const extensions::Extension* extension, 281 const extensions::Extension* extension,
280 const extensions::PermissionSet* permissions); 282 const extensions::PermissionSet* permissions);
281 283
282 // This is called by the extension identity API to verify whether an 284 // This is called by the extension identity API to verify whether an
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 // A pre-filled prompt. 365 // A pre-filled prompt.
364 Prompt prompt_; 366 Prompt prompt_;
365 367
366 scoped_ptr<OAuth2MintTokenFlow> token_flow_; 368 scoped_ptr<OAuth2MintTokenFlow> token_flow_;
367 369
368 // Used to show the confirm dialog. 370 // Used to show the confirm dialog.
369 ShowDialogCallback show_dialog_callback_; 371 ShowDialogCallback show_dialog_callback_;
370 }; 372 };
371 373
372 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ 374 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_install_prompt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698