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

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

Issue 240193003: Move Infobars core files to the Infobars component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nib name on mac Created 6 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
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
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/strings/string16.h" 15 #include "base/strings/string16.h"
16 #include "chrome/browser/extensions/crx_installer_error.h" 16 #include "chrome/browser/extensions/crx_installer_error.h"
17 #include "chrome/browser/extensions/extension_install_prompt_experiment.h" 17 #include "chrome/browser/extensions/extension_install_prompt_experiment.h"
18 #include "extensions/common/url_pattern.h" 18 #include "extensions/common/url_pattern.h"
19 #include "google_apis/gaia/oauth2_mint_token_flow.h" 19 #include "google_apis/gaia/oauth2_mint_token_flow.h"
20 #include "google_apis/gaia/oauth2_token_service.h" 20 #include "google_apis/gaia/oauth2_token_service.h"
21 #include "third_party/skia/include/core/SkBitmap.h" 21 #include "third_party/skia/include/core/SkBitmap.h"
22 #include "ui/gfx/image/image.h" 22 #include "ui/gfx/image/image.h"
23 #include "ui/gfx/image/image_skia.h" 23 #include "ui/gfx/image/image_skia.h"
24 #include "ui/gfx/native_widget_types.h" 24 #include "ui/gfx/native_widget_types.h"
25 25
26 class Browser; 26 class Browser;
27 class ExtensionInstallUI; 27 class ExtensionInstallUI;
28 class InfoBarDelegate;
29 class Profile; 28 class Profile;
30 29
31 namespace base { 30 namespace base {
32 class DictionaryValue; 31 class DictionaryValue;
33 class MessageLoop; 32 class MessageLoop;
34 } // namespace base 33 } // namespace base
35 34
36 namespace content { 35 namespace content {
37 class PageNavigator; 36 class PageNavigator;
38 class WebContents; 37 class WebContents;
39 } 38 }
40 39
41 namespace extensions { 40 namespace extensions {
42 class BundleInstaller; 41 class BundleInstaller;
43 class Extension; 42 class Extension;
44 class ExtensionWebstorePrivateApiTest; 43 class ExtensionWebstorePrivateApiTest;
45 class MockGetAuthTokenFunction; 44 class MockGetAuthTokenFunction;
46 class PermissionSet; 45 class PermissionSet;
47 } // namespace extensions 46 } // namespace extensions
48 47
48 namespace infobars {
49 class InfoBarDelegate;
50 }
51
49 // Displays all the UI around extension installation. 52 // Displays all the UI around extension installation.
50 class ExtensionInstallPrompt 53 class ExtensionInstallPrompt
51 : public OAuth2MintTokenFlow::Delegate, 54 : public OAuth2MintTokenFlow::Delegate,
52 public OAuth2TokenService::Consumer, 55 public OAuth2TokenService::Consumer,
53 public base::SupportsWeakPtr<ExtensionInstallPrompt> { 56 public base::SupportsWeakPtr<ExtensionInstallPrompt> {
54 public: 57 public:
55 // This enum is associated with Extensions.InstallPrompt_Type UMA histogram. 58 // This enum is associated with Extensions.InstallPrompt_Type UMA histogram.
56 // Do not modify existing values and add new values only to the end. 59 // Do not modify existing values and add new values only to the end.
57 enum PromptType { 60 enum PromptType {
58 UNSET_PROMPT_TYPE = -1, 61 UNSET_PROMPT_TYPE = -1,
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 Prompt prompt_; 437 Prompt prompt_;
435 438
436 scoped_ptr<OAuth2TokenService::Request> login_token_request_; 439 scoped_ptr<OAuth2TokenService::Request> login_token_request_;
437 scoped_ptr<OAuth2MintTokenFlow> token_flow_; 440 scoped_ptr<OAuth2MintTokenFlow> token_flow_;
438 441
439 // Used to show the confirm dialog. 442 // Used to show the confirm dialog.
440 ShowDialogCallback show_dialog_callback_; 443 ShowDialogCallback show_dialog_callback_;
441 }; 444 };
442 445
443 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ 446 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_infobar_delegate.cc ('k') | chrome/browser/extensions/extension_install_ui_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698