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

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: remove WebUISource references 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
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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 const std::vector<const Value*>& args); 136 const std::vector<const Value*>& args);
137 137
138 // May be overridden by WebUI's which do not have a tab contents. 138 // May be overridden by WebUI's which do not have a tab contents.
139 virtual Profile* GetProfile() const; 139 virtual Profile* GetProfile() const;
140 140
141 // May be overridden by WebUI's which do not have a tab contents. 141 // May be overridden by WebUI's which do not have a tab contents.
142 virtual RenderViewHost* GetRenderViewHost() const; 142 virtual RenderViewHost* GetRenderViewHost() const;
143 143
144 TabContents* tab_contents() const { return tab_contents_; } 144 TabContents* tab_contents() const { return tab_contents_; }
145 145
146 // An opaque identifier used to identify a WebUI. This can only be compared to
147 // kNoWebUI or other WebUI types. See GetWebUIType.
148 typedef void* WebUITypeID;
jam 2011/03/25 02:10:02 nit: now that this is inside WebUI, can it just be
Evan Stade 2011/03/29 00:14:17 Done.
149
150 // A special WebUI type that signifies that a given page would not use the
151 // Web UI system.
152 static const WebUITypeID kNoWebUI;
153
146 protected: 154 protected:
147 void AddMessageHandler(WebUIMessageHandler* handler); 155 void AddMessageHandler(WebUIMessageHandler* handler);
148 156
149 // Execute a string of raw Javascript on the page. Overridable for 157 // Execute a string of raw Javascript on the page. Overridable for
150 // testing purposes. 158 // testing purposes.
151 virtual void ExecuteJavascript(const string16& javascript); 159 virtual void ExecuteJavascript(const string16& javascript);
152 160
153 // Options that may be overridden by individual Web UI implementations. The 161 // Options that may be overridden by individual Web UI implementations. The
154 // bool options default to false. See the public getters for more information. 162 // bool options default to false. See the public getters for more information.
155 bool hide_favicon_; 163 bool hide_favicon_;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 // Extract a string value from a list Value. 215 // Extract a string value from a list Value.
208 string16 ExtractStringValue(const ListValue* value); 216 string16 ExtractStringValue(const ListValue* value);
209 217
210 WebUI* web_ui_; 218 WebUI* web_ui_;
211 219
212 private: 220 private:
213 DISALLOW_COPY_AND_ASSIGN(WebUIMessageHandler); 221 DISALLOW_COPY_AND_ASSIGN(WebUIMessageHandler);
214 }; 222 };
215 223
216 #endif // CONTENT_BROWSER_WEBUI_WEB_UI_H_ 224 #endif // CONTENT_BROWSER_WEBUI_WEB_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698