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

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

Issue 389613006: Prevent duplicate concurrent installs of the same extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 void AbortLaunch(extensions::webstore_install::Result result, 109 void AbortLaunch(extensions::webstore_install::Result result,
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(extensions::InstallTracker::InstallProgressData*
120 install_data) const OVERRIDE;
asargent_no_longer_on_chrome 2014/07/16 18:49:07 nit: formatting looks weird, maybe > 80 chars? Pls
tmdiep 2014/07/17 01:01:51 Yes, this was the work of `git cl format`, but has
119 virtual bool CheckRequestorAlive() const OVERRIDE; 121 virtual bool CheckRequestorAlive() const OVERRIDE;
120 virtual const GURL& GetRequestorURL() const OVERRIDE; 122 virtual const GURL& GetRequestorURL() const OVERRIDE;
121 virtual bool ShouldShowPostInstallUI() const OVERRIDE; 123 virtual bool ShouldShowPostInstallUI() const OVERRIDE;
122 virtual bool ShouldShowAppInstalledBubble() const OVERRIDE; 124 virtual bool ShouldShowAppInstalledBubble() const OVERRIDE;
123 virtual content::WebContents* GetWebContents() const OVERRIDE; 125 virtual content::WebContents* GetWebContents() const OVERRIDE;
124 virtual scoped_refptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt() 126 virtual scoped_refptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt()
125 const OVERRIDE; 127 const OVERRIDE;
126 virtual bool CheckInlineInstallPermitted( 128 virtual bool CheckInlineInstallPermitted(
127 const base::DictionaryValue& webstore_data, 129 const base::DictionaryValue& webstore_data,
128 std::string* error) const OVERRIDE; 130 std::string* error) const OVERRIDE;
(...skipping 17 matching lines...) Expand all
146 scoped_ptr<content::WebContents> dummy_web_contents_; 148 scoped_ptr<content::WebContents> dummy_web_contents_;
147 149
148 scoped_ptr<ExtensionEnableFlow> extension_enable_flow_; 150 scoped_ptr<ExtensionEnableFlow> extension_enable_flow_;
149 151
150 scoped_ptr<extensions::ExtensionInstallChecker> install_checker_; 152 scoped_ptr<extensions::ExtensionInstallChecker> install_checker_;
151 153
152 DISALLOW_COPY_AND_ASSIGN(EphemeralAppLauncher); 154 DISALLOW_COPY_AND_ASSIGN(EphemeralAppLauncher);
153 }; 155 };
154 156
155 #endif // CHROME_BROWSER_APPS_EPHEMERAL_APP_LAUNCHER_H_ 157 #endif // CHROME_BROWSER_APPS_EPHEMERAL_APP_LAUNCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698