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

Side by Side Diff: content/browser/webui/web_ui.h

Issue 6713082: Move WebUIFactory to chrome/browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: synced Created 9 years, 9 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
« no previous file with comments | « content/browser/webui/generic_handler.cc ('k') | content/browser/webui/web_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CONTENT_BROWSER_WEBUI_WEB_UI_H_ 5 #ifndef CONTENT_BROWSER_WEBUI_WEB_UI_H_
6 #define CONTENT_BROWSER_WEBUI_WEB_UI_H_ 6 #define CONTENT_BROWSER_WEBUI_WEB_UI_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 const std::vector<const Value*>& args); 137 const std::vector<const Value*>& args);
138 138
139 // May be overridden by WebUI's which do not have a tab contents. 139 // May be overridden by WebUI's which do not have a tab contents.
140 virtual Profile* GetProfile() const; 140 virtual Profile* GetProfile() const;
141 141
142 // May be overridden by WebUI's which do not have a tab contents. 142 // May be overridden by WebUI's which do not have a tab contents.
143 virtual RenderViewHost* GetRenderViewHost() const; 143 virtual RenderViewHost* GetRenderViewHost() const;
144 144
145 TabContents* tab_contents() const { return tab_contents_; } 145 TabContents* tab_contents() const { return tab_contents_; }
146 146
147 // An opaque identifier used to identify a WebUI. This can only be compared to
148 // kNoWebUI or other WebUI types. See GetWebUIType.
149 typedef void* TypeID;
150
151 // A special WebUI type that signifies that a given page would not use the
152 // Web UI system.
153 static const TypeID kNoWebUI;
154
147 protected: 155 protected:
148 void AddMessageHandler(WebUIMessageHandler* handler); 156 void AddMessageHandler(WebUIMessageHandler* handler);
149 157
150 // Execute a string of raw Javascript on the page. Overridable for 158 // Execute a string of raw Javascript on the page. Overridable for
151 // testing purposes. 159 // testing purposes.
152 virtual void ExecuteJavascript(const string16& javascript); 160 virtual void ExecuteJavascript(const string16& javascript);
153 161
154 // Options that may be overridden by individual Web UI implementations. The 162 // Options that may be overridden by individual Web UI implementations. The
155 // bool options default to false. See the public getters for more information. 163 // bool options default to false. See the public getters for more information.
156 bool hide_favicon_; 164 bool hide_favicon_;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 // Extract a string value from a list Value. 216 // Extract a string value from a list Value.
209 string16 ExtractStringValue(const ListValue* value); 217 string16 ExtractStringValue(const ListValue* value);
210 218
211 WebUI* web_ui_; 219 WebUI* web_ui_;
212 220
213 private: 221 private:
214 DISALLOW_COPY_AND_ASSIGN(WebUIMessageHandler); 222 DISALLOW_COPY_AND_ASSIGN(WebUIMessageHandler);
215 }; 223 };
216 224
217 #endif // CONTENT_BROWSER_WEBUI_WEB_UI_H_ 225 #endif // CONTENT_BROWSER_WEBUI_WEB_UI_H_
OLDNEW
« no previous file with comments | « content/browser/webui/generic_handler.cc ('k') | content/browser/webui/web_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698