Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(866)

Side by Side Diff: chrome/browser/extensions/tab_helper.h

Issue 12093036: Move Extension Location and Type enums to Manifest, and move InstallWarning to its own file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698