OLD | NEW |
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 Loading... |
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( |
| 120 extensions::ActiveInstallData* install_data) const OVERRIDE; |
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 Loading... |
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_ |
OLD | NEW |