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

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

Issue 666153002: Standardize usage of virtual/override/final in chrome/browser/extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_WEBSTORE_INSTALL_WITH_PROMPT_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_WITH_PROMPT_H_
6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_WITH_PROMPT_H_ 6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_WITH_PROMPT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/extensions/webstore_standalone_installer.h" 10 #include "chrome/browser/extensions/webstore_standalone_installer.h"
(...skipping 28 matching lines...) Expand all
39 39
40 // If this constructor is used, the parent of the install dialog will be 40 // If this constructor is used, the parent of the install dialog will be
41 // |parent_window|. 41 // |parent_window|.
42 WebstoreInstallWithPrompt(const std::string& webstore_item_id, 42 WebstoreInstallWithPrompt(const std::string& webstore_item_id,
43 Profile* profile, 43 Profile* profile,
44 gfx::NativeWindow parent_window, 44 gfx::NativeWindow parent_window,
45 const Callback& callback); 45 const Callback& callback);
46 46
47 protected: 47 protected:
48 friend class base::RefCountedThreadSafe<WebstoreInstallWithPrompt>; 48 friend class base::RefCountedThreadSafe<WebstoreInstallWithPrompt>;
49 virtual ~WebstoreInstallWithPrompt(); 49 ~WebstoreInstallWithPrompt() override;
50 50
51 void set_show_post_install_ui(bool show) { show_post_install_ui_ = show; } 51 void set_show_post_install_ui(bool show) { show_post_install_ui_ = show; }
52 52
53 // extensions::WebstoreStandaloneInstaller overrides: 53 // extensions::WebstoreStandaloneInstaller overrides:
54 virtual bool CheckRequestorAlive() const override; 54 bool CheckRequestorAlive() const override;
55 virtual const GURL& GetRequestorURL() const override; 55 const GURL& GetRequestorURL() const override;
56 virtual bool ShouldShowPostInstallUI() const override; 56 bool ShouldShowPostInstallUI() const override;
57 virtual bool ShouldShowAppInstalledBubble() const override; 57 bool ShouldShowAppInstalledBubble() const override;
58 virtual content::WebContents* GetWebContents() const override; 58 content::WebContents* GetWebContents() const override;
59 virtual scoped_refptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt() 59 scoped_refptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt()
60 const override; 60 const override;
61 virtual scoped_ptr<ExtensionInstallPrompt> CreateInstallUI() override; 61 scoped_ptr<ExtensionInstallPrompt> CreateInstallUI() override;
62 virtual bool CheckInlineInstallPermitted( 62 bool CheckInlineInstallPermitted(const base::DictionaryValue& webstore_data,
63 const base::DictionaryValue& webstore_data, 63 std::string* error) const override;
64 std::string* error) const override; 64 bool CheckRequestorPermitted(const base::DictionaryValue& webstore_data,
65 virtual bool CheckRequestorPermitted( 65 std::string* error) const override;
66 const base::DictionaryValue& webstore_data,
67 std::string* error) const override;
68 66
69 // content::PageNavigator overrides: 67 // content::PageNavigator overrides:
70 virtual content::WebContents* OpenURL( 68 content::WebContents* OpenURL(const content::OpenURLParams& params) override;
71 const content::OpenURLParams& params) override;
72 69
73 private: 70 private:
74 bool show_post_install_ui_; 71 bool show_post_install_ui_;
75 72
76 GURL dummy_requestor_url_; 73 GURL dummy_requestor_url_;
77 74
78 // A non-visible WebContents used to download data from the webstore. 75 // A non-visible WebContents used to download data from the webstore.
79 scoped_ptr<content::WebContents> dummy_web_contents_; 76 scoped_ptr<content::WebContents> dummy_web_contents_;
80 77
81 gfx::NativeWindow parent_window_; 78 gfx::NativeWindow parent_window_;
82 79
83 DISALLOW_COPY_AND_ASSIGN(WebstoreInstallWithPrompt); 80 DISALLOW_COPY_AND_ASSIGN(WebstoreInstallWithPrompt);
84 }; 81 };
85 82
86 } // namespace extensions 83 } // namespace extensions
87 84
88 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_WITH_PROMPT_H_ 85 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_WITH_PROMPT_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/webstore_install_helper.h ('k') | chrome/browser/extensions/webstore_installer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698