| 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 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 66 |
| 67 void StartObserving(); | 67 void StartObserving(); |
| 68 void LaunchApp(const extensions::Extension* extension) const; | 68 void LaunchApp(const extensions::Extension* extension) const; |
| 69 | 69 |
| 70 // WebstoreStandaloneInstaller implementation. | 70 // WebstoreStandaloneInstaller implementation. |
| 71 virtual bool CheckRequestorAlive() const OVERRIDE; | 71 virtual bool CheckRequestorAlive() const OVERRIDE; |
| 72 virtual const GURL& GetRequestorURL() const OVERRIDE; | 72 virtual const GURL& GetRequestorURL() const OVERRIDE; |
| 73 virtual bool ShouldShowPostInstallUI() const OVERRIDE; | 73 virtual bool ShouldShowPostInstallUI() const OVERRIDE; |
| 74 virtual bool ShouldShowAppInstalledBubble() const OVERRIDE; | 74 virtual bool ShouldShowAppInstalledBubble() const OVERRIDE; |
| 75 virtual content::WebContents* GetWebContents() const OVERRIDE; | 75 virtual content::WebContents* GetWebContents() const OVERRIDE; |
| 76 virtual scoped_ptr<ExtensionInstallPrompt::Prompt> | 76 virtual scoped_refptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt() |
| 77 CreateInstallPrompt() const OVERRIDE; | 77 const OVERRIDE; |
| 78 virtual bool CheckInlineInstallPermitted( | 78 virtual bool CheckInlineInstallPermitted( |
| 79 const base::DictionaryValue& webstore_data, | 79 const base::DictionaryValue& webstore_data, |
| 80 std::string* error) const OVERRIDE; | 80 std::string* error) const OVERRIDE; |
| 81 virtual bool CheckRequestorPermitted( | 81 virtual bool CheckRequestorPermitted( |
| 82 const base::DictionaryValue& webstore_data, | 82 const base::DictionaryValue& webstore_data, |
| 83 std::string* error) const OVERRIDE; | 83 std::string* error) const OVERRIDE; |
| 84 virtual bool CheckInstallValid( | 84 virtual bool CheckInstallValid( |
| 85 const base::DictionaryValue& manifest, | 85 const base::DictionaryValue& manifest, |
| 86 std::string* error) OVERRIDE; | 86 std::string* error) OVERRIDE; |
| 87 virtual scoped_ptr<ExtensionInstallPrompt> CreateInstallUI() OVERRIDE; | 87 virtual scoped_ptr<ExtensionInstallPrompt> CreateInstallUI() OVERRIDE; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 111 | 111 |
| 112 // Created in CheckInstallValid(). | 112 // Created in CheckInstallValid(). |
| 113 scoped_refptr<extensions::Extension> extension_; | 113 scoped_refptr<extensions::Extension> extension_; |
| 114 | 114 |
| 115 scoped_ptr<ExtensionEnableFlow> extension_enable_flow_; | 115 scoped_ptr<ExtensionEnableFlow> extension_enable_flow_; |
| 116 | 116 |
| 117 DISALLOW_COPY_AND_ASSIGN(EphemeralAppLauncher); | 117 DISALLOW_COPY_AND_ASSIGN(EphemeralAppLauncher); |
| 118 }; | 118 }; |
| 119 | 119 |
| 120 #endif // CHROME_BROWSER_APPS_EPHEMERAL_APP_LAUNCHER_H_ | 120 #endif // CHROME_BROWSER_APPS_EPHEMERAL_APP_LAUNCHER_H_ |
| OLD | NEW |