| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 const Extension* extension_app() const { return extension_app_; } | 122 const Extension* extension_app() const { return extension_app_; } |
| 123 bool is_app() const { return extension_app_ != NULL; } | 123 bool is_app() const { return extension_app_ != NULL; } |
| 124 const WebApplicationInfo& web_app_info() const { | 124 const WebApplicationInfo& web_app_info() const { |
| 125 return web_app_info_; | 125 return web_app_info_; |
| 126 } | 126 } |
| 127 | 127 |
| 128 // If an app extension has been explicitly set for this WebContents its icon | 128 // If an app extension has been explicitly set for this WebContents its icon |
| 129 // is returned. | 129 // is returned. |
| 130 // | 130 // |
| 131 // NOTE: the returned icon is larger than 16x16 (its size is | 131 // NOTE: the returned icon is larger than 16x16 (its size is |
| 132 // Extension::EXTENSION_ICON_SMALLISH). | 132 // extension_misc::EXTENSION_ICON_SMALLISH). |
| 133 SkBitmap* GetExtensionAppIcon(); | 133 SkBitmap* GetExtensionAppIcon(); |
| 134 | 134 |
| 135 content::WebContents* web_contents() const { | 135 content::WebContents* web_contents() const { |
| 136 return content::WebContentsObserver::web_contents(); | 136 return content::WebContentsObserver::web_contents(); |
| 137 } | 137 } |
| 138 | 138 |
| 139 ScriptExecutor* script_executor() { | 139 ScriptExecutor* script_executor() { |
| 140 return script_executor_.get(); | 140 return script_executor_.get(); |
| 141 } | 141 } |
| 142 | 142 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 | 269 |
| 270 // Vend weak pointers that can be invalidated to stop in-progress loads. | 270 // Vend weak pointers that can be invalidated to stop in-progress loads. |
| 271 base::WeakPtrFactory<TabHelper> image_loader_ptr_factory_; | 271 base::WeakPtrFactory<TabHelper> image_loader_ptr_factory_; |
| 272 | 272 |
| 273 DISALLOW_COPY_AND_ASSIGN(TabHelper); | 273 DISALLOW_COPY_AND_ASSIGN(TabHelper); |
| 274 }; | 274 }; |
| 275 | 275 |
| 276 } // namespace extensions | 276 } // namespace extensions |
| 277 | 277 |
| 278 #endif // CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ | 278 #endif // CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ |
| OLD | NEW |