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

Side by Side Diff: chrome/browser/extensions/webstore_startup_installer.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 (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_WEBSTORE_STARTUP_INSTALLER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_WEBSTORE_STARTUP_INSTALLER_H_
6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_STARTUP_INSTALLER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_STARTUP_INSTALLER_H_
7 7
8 #include "chrome/browser/extensions/webstore_install_with_prompt.h" 8 #include "chrome/browser/extensions/webstore_install_with_prompt.h"
9 9
10 namespace extensions { 10 namespace extensions {
11 11
12 // Manages inline installs requested to be performed at startup, e.g. via a 12 // Manages inline installs requested to be performed at startup, e.g. via a
13 // command line option: downloads and parses metadata from the webstore, 13 // command line option: downloads and parses metadata from the webstore,
14 // optionally shows an install UI, starts the download once the user 14 // optionally shows an install UI, starts the download once the user
15 // confirms. 15 // confirms.
16 // 16 //
17 // Clients will be notified of success or failure via the |callback| argument 17 // Clients will be notified of success or failure via the |callback| argument
18 // passed into the constructor. 18 // passed into the constructor.
19 class WebstoreStartupInstaller : public WebstoreInstallWithPrompt { 19 class WebstoreStartupInstaller : public WebstoreInstallWithPrompt {
20 public: 20 public:
21 WebstoreStartupInstaller(const std::string& webstore_item_id, 21 WebstoreStartupInstaller(const std::string& webstore_item_id,
22 Profile* profile, 22 Profile* profile,
23 bool show_prompt, 23 bool show_prompt,
24 const Callback& callback); 24 const Callback& callback);
25 25
26 protected: 26 protected:
27 friend class base::RefCountedThreadSafe<WebstoreStartupInstaller>; 27 friend class base::RefCountedThreadSafe<WebstoreStartupInstaller>;
28 FRIEND_TEST_ALL_PREFIXES(WebstoreStartupInstallerTest, DomainVerification); 28 FRIEND_TEST_ALL_PREFIXES(WebstoreStartupInstallerTest, DomainVerification);
29 29
30 virtual ~WebstoreStartupInstaller(); 30 ~WebstoreStartupInstaller() override;
31 31
32 // Implementations of WebstoreStandaloneInstaller Template Method's hooks. 32 // Implementations of WebstoreStandaloneInstaller Template Method's hooks.
33 virtual scoped_refptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt() 33 scoped_refptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt()
34 const override; 34 const override;
35 35
36 private: 36 private:
37 bool show_prompt_; 37 bool show_prompt_;
38 38
39 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreStartupInstaller); 39 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreStartupInstaller);
40 }; 40 };
41 41
42 } // namespace extensions 42 } // namespace extensions
43 43
44 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_STARTUP_INSTALLER_H_ 44 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_STARTUP_INSTALLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698