| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_EXTENSIONS_TAB_HELPER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 } | 92 } |
| 93 | 93 |
| 94 void RemoveScriptExecutionObserver(ScriptExecutionObserver* observer) { | 94 void RemoveScriptExecutionObserver(ScriptExecutionObserver* observer) { |
| 95 script_execution_observers_.RemoveObserver(observer); | 95 script_execution_observers_.RemoveObserver(observer); |
| 96 } | 96 } |
| 97 | 97 |
| 98 void CreateApplicationShortcuts(); | 98 void CreateApplicationShortcuts(); |
| 99 void CreateHostedAppFromWebContents(); | 99 void CreateHostedAppFromWebContents(); |
| 100 bool CanCreateApplicationShortcuts() const; | 100 bool CanCreateApplicationShortcuts() const; |
| 101 | 101 |
| 102 void CreateHostedApp(const WebApplicationInfo& info); | |
| 103 | |
| 104 void set_pending_web_app_action(WebAppAction action) { | 102 void set_pending_web_app_action(WebAppAction action) { |
| 105 pending_web_app_action_ = action; | 103 pending_web_app_action_ = action; |
| 106 } | 104 } |
| 107 | 105 |
| 108 // App extensions ------------------------------------------------------------ | 106 // App extensions ------------------------------------------------------------ |
| 109 | 107 |
| 110 // Sets the extension denoting this as an app. If |extension| is non-null this | 108 // Sets the extension denoting this as an app. If |extension| is non-null this |
| 111 // tab becomes an app-tab. WebContents does not listen for unload events for | 109 // tab becomes an app-tab. WebContents does not listen for unload events for |
| 112 // the extension. It's up to consumers of WebContents to do that. | 110 // the extension. It's up to consumers of WebContents to do that. |
| 113 // | 111 // |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 | 274 |
| 277 // Creates WebstoreInlineInstaller instances for inline install triggers. | 275 // Creates WebstoreInlineInstaller instances for inline install triggers. |
| 278 scoped_ptr<WebstoreInlineInstallerFactory> webstore_inline_installer_factory_; | 276 scoped_ptr<WebstoreInlineInstallerFactory> webstore_inline_installer_factory_; |
| 279 | 277 |
| 280 DISALLOW_COPY_AND_ASSIGN(TabHelper); | 278 DISALLOW_COPY_AND_ASSIGN(TabHelper); |
| 281 }; | 279 }; |
| 282 | 280 |
| 283 } // namespace extensions | 281 } // namespace extensions |
| 284 | 282 |
| 285 #endif // CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ | 283 #endif // CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ |
| OLD | NEW |