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

Side by Side Diff: chrome/browser/apps/ephemeral_app_launcher.h

Issue 625113002: replace OVERRIDE and FINAL with override and final in chrome/browser/[a-i]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix newly added OVERRIDEs 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_APPS_EPHEMERAL_APP_LAUNCHER_H_ 5 #ifndef CHROME_BROWSER_APPS_EPHEMERAL_APP_LAUNCHER_H_
6 #define CHROME_BROWSER_APPS_EPHEMERAL_APP_LAUNCHER_H_ 6 #define CHROME_BROWSER_APPS_EPHEMERAL_APP_LAUNCHER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 content::WebContents* web_contents, 66 content::WebContents* web_contents,
67 const LaunchCallback& callback); 67 const LaunchCallback& callback);
68 68
69 virtual ~EphemeralAppLauncher(); 69 virtual ~EphemeralAppLauncher();
70 70
71 // Creates an install checker. Allows tests to mock the install checker. 71 // Creates an install checker. Allows tests to mock the install checker.
72 virtual scoped_ptr<extensions::ExtensionInstallChecker> 72 virtual scoped_ptr<extensions::ExtensionInstallChecker>
73 CreateInstallChecker(); 73 CreateInstallChecker();
74 74
75 // WebstoreStandaloneInstaller implementation overridden in tests. 75 // WebstoreStandaloneInstaller implementation overridden in tests.
76 virtual scoped_ptr<ExtensionInstallPrompt> CreateInstallUI() OVERRIDE; 76 virtual scoped_ptr<ExtensionInstallPrompt> CreateInstallUI() override;
77 virtual scoped_ptr<extensions::WebstoreInstaller::Approval> CreateApproval() 77 virtual scoped_ptr<extensions::WebstoreInstaller::Approval> CreateApproval()
78 const OVERRIDE; 78 const override;
79 79
80 private: 80 private:
81 friend class base::RefCountedThreadSafe<EphemeralAppLauncher>; 81 friend class base::RefCountedThreadSafe<EphemeralAppLauncher>;
82 friend class EphemeralAppLauncherTest; 82 friend class EphemeralAppLauncherTest;
83 83
84 // Returns true if an app that is already installed in extension system can 84 // Returns true if an app that is already installed in extension system can
85 // be launched. 85 // be launched.
86 bool CanLaunchInstalledApp(const extensions::Extension* extension, 86 bool CanLaunchInstalledApp(const extensions::Extension* extension,
87 extensions::webstore_install::Result* reason, 87 extensions::webstore_install::Result* reason,
88 std::string* error); 88 std::string* error);
(...skipping 21 matching lines...) Expand all
110 const std::string& error); 110 const std::string& error);
111 111
112 // Determines whether the app can be installed ephemerally. 112 // Determines whether the app can be installed ephemerally.
113 void CheckEphemeralInstallPermitted(); 113 void CheckEphemeralInstallPermitted();
114 114
115 // Install checker callback. 115 // Install checker callback.
116 void OnInstallChecked(int check_failures); 116 void OnInstallChecked(int check_failures);
117 117
118 // WebstoreStandaloneInstaller implementation. 118 // WebstoreStandaloneInstaller implementation.
119 virtual void InitInstallData( 119 virtual void InitInstallData(
120 extensions::ActiveInstallData* install_data) const OVERRIDE; 120 extensions::ActiveInstallData* install_data) const override;
121 virtual bool CheckRequestorAlive() const OVERRIDE; 121 virtual bool CheckRequestorAlive() const override;
122 virtual const GURL& GetRequestorURL() const OVERRIDE; 122 virtual const GURL& GetRequestorURL() const override;
123 virtual bool ShouldShowPostInstallUI() const OVERRIDE; 123 virtual bool ShouldShowPostInstallUI() const override;
124 virtual bool ShouldShowAppInstalledBubble() const OVERRIDE; 124 virtual bool ShouldShowAppInstalledBubble() const override;
125 virtual content::WebContents* GetWebContents() const OVERRIDE; 125 virtual content::WebContents* GetWebContents() const override;
126 virtual scoped_refptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt() 126 virtual scoped_refptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt()
127 const OVERRIDE; 127 const override;
128 virtual bool CheckInlineInstallPermitted( 128 virtual bool CheckInlineInstallPermitted(
129 const base::DictionaryValue& webstore_data, 129 const base::DictionaryValue& webstore_data,
130 std::string* error) const OVERRIDE; 130 std::string* error) const override;
131 virtual bool CheckRequestorPermitted( 131 virtual bool CheckRequestorPermitted(
132 const base::DictionaryValue& webstore_data, 132 const base::DictionaryValue& webstore_data,
133 std::string* error) const OVERRIDE; 133 std::string* error) const override;
134 virtual void OnManifestParsed() OVERRIDE; 134 virtual void OnManifestParsed() override;
135 virtual void CompleteInstall(extensions::webstore_install::Result result, 135 virtual void CompleteInstall(extensions::webstore_install::Result result,
136 const std::string& error) OVERRIDE; 136 const std::string& error) override;
137 137
138 // content::WebContentsObserver implementation. 138 // content::WebContentsObserver implementation.
139 virtual void WebContentsDestroyed() OVERRIDE; 139 virtual void WebContentsDestroyed() override;
140 140
141 // ExtensionEnableFlowDelegate implementation. 141 // ExtensionEnableFlowDelegate implementation.
142 virtual void ExtensionEnableFlowFinished() OVERRIDE; 142 virtual void ExtensionEnableFlowFinished() override;
143 virtual void ExtensionEnableFlowAborted(bool user_initiated) OVERRIDE; 143 virtual void ExtensionEnableFlowAborted(bool user_initiated) override;
144 144
145 LaunchCallback launch_callback_; 145 LaunchCallback launch_callback_;
146 146
147 gfx::NativeWindow parent_window_; 147 gfx::NativeWindow parent_window_;
148 scoped_ptr<content::WebContents> dummy_web_contents_; 148 scoped_ptr<content::WebContents> dummy_web_contents_;
149 149
150 scoped_ptr<ExtensionEnableFlow> extension_enable_flow_; 150 scoped_ptr<ExtensionEnableFlow> extension_enable_flow_;
151 151
152 scoped_ptr<extensions::ExtensionInstallChecker> install_checker_; 152 scoped_ptr<extensions::ExtensionInstallChecker> install_checker_;
153 153
154 DISALLOW_COPY_AND_ASSIGN(EphemeralAppLauncher); 154 DISALLOW_COPY_AND_ASSIGN(EphemeralAppLauncher);
155 }; 155 };
156 156
157 #endif // CHROME_BROWSER_APPS_EPHEMERAL_APP_LAUNCHER_H_ 157 #endif // CHROME_BROWSER_APPS_EPHEMERAL_APP_LAUNCHER_H_
OLDNEW
« no previous file with comments | « chrome/browser/apps/ephemeral_app_browsertest.cc ('k') | chrome/browser/apps/ephemeral_app_launcher_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698