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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 virtual ~EphemeralAppLauncher(); | 63 virtual ~EphemeralAppLauncher(); |
64 | 64 |
65 void LaunchApp(const extensions::Extension* extension) const; | 65 void LaunchApp(const extensions::Extension* extension) const; |
66 | 66 |
67 // WebstoreStandaloneInstaller implementation. | 67 // WebstoreStandaloneInstaller implementation. |
68 virtual bool CheckRequestorAlive() const OVERRIDE; | 68 virtual bool CheckRequestorAlive() const OVERRIDE; |
69 virtual const GURL& GetRequestorURL() const OVERRIDE; | 69 virtual const GURL& GetRequestorURL() const OVERRIDE; |
70 virtual bool ShouldShowPostInstallUI() const OVERRIDE; | 70 virtual bool ShouldShowPostInstallUI() const OVERRIDE; |
71 virtual bool ShouldShowAppInstalledBubble() const OVERRIDE; | 71 virtual bool ShouldShowAppInstalledBubble() const OVERRIDE; |
72 virtual content::WebContents* GetWebContents() const OVERRIDE; | 72 virtual content::WebContents* GetWebContents() const OVERRIDE; |
73 virtual scoped_ptr<ExtensionInstallPrompt::Prompt> | 73 virtual scoped_refptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt() |
74 CreateInstallPrompt() const OVERRIDE; | 74 const OVERRIDE; |
75 virtual bool CheckInlineInstallPermitted( | 75 virtual bool CheckInlineInstallPermitted( |
76 const base::DictionaryValue& webstore_data, | 76 const base::DictionaryValue& webstore_data, |
77 std::string* error) const OVERRIDE; | 77 std::string* error) const OVERRIDE; |
78 virtual bool CheckRequestorPermitted( | 78 virtual bool CheckRequestorPermitted( |
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 CheckInstallValid( | 81 virtual bool CheckInstallValid( |
82 const base::DictionaryValue& manifest, | 82 const base::DictionaryValue& manifest, |
83 std::string* error) OVERRIDE; | 83 std::string* error) OVERRIDE; |
84 virtual scoped_ptr<ExtensionInstallPrompt> CreateInstallUI() OVERRIDE; | 84 virtual scoped_ptr<ExtensionInstallPrompt> CreateInstallUI() OVERRIDE; |
(...skipping 13 matching lines...) Expand all Loading... |
98 | 98 |
99 // Created in CheckInstallValid(). | 99 // Created in CheckInstallValid(). |
100 scoped_refptr<extensions::Extension> extension_; | 100 scoped_refptr<extensions::Extension> extension_; |
101 | 101 |
102 scoped_ptr<ExtensionEnableFlow> extension_enable_flow_; | 102 scoped_ptr<ExtensionEnableFlow> extension_enable_flow_; |
103 | 103 |
104 DISALLOW_COPY_AND_ASSIGN(EphemeralAppLauncher); | 104 DISALLOW_COPY_AND_ASSIGN(EphemeralAppLauncher); |
105 }; | 105 }; |
106 | 106 |
107 #endif // CHROME_BROWSER_APPS_EPHEMERAL_APP_LAUNCHER_H_ | 107 #endif // CHROME_BROWSER_APPS_EPHEMERAL_APP_LAUNCHER_H_ |
OLD | NEW |