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

Side by Side Diff: chrome/browser/dom_ui/dom_ui_host.h

Issue 28104: Enable history and downloads by default, port NewTabUI from DOMUIHost to DOMU... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « chrome/browser/dom_ui/dom_ui_contents.cc ('k') | chrome/browser/dom_ui/history_ui.h » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // DOMUIHost is a special type of TabContents that can display Chrome-specific 5 // THIS FILE IS DEPRECATED, USE DOM_UI INSTEAD.
6 // content using HTML.
7 // It provides methods to send data to and from the page Javascript.
8
9 // TODO(evanm): Add more limitations on what the contents of this view
10 // can do (especially regarding network requests).
11 6
12 #ifndef CHROME_BROWSER_DOM_UI_DOM_UI_HOST_H__ 7 #ifndef CHROME_BROWSER_DOM_UI_DOM_UI_HOST_H__
13 #define CHROME_BROWSER_DOM_UI_DOM_UI_HOST_H__ 8 #define CHROME_BROWSER_DOM_UI_DOM_UI_HOST_H__
14 9
10 #include "chrome/browser/dom_ui/dom_ui.h"
15 #include "chrome/browser/tab_contents/web_contents.h" 11 #include "chrome/browser/tab_contents/web_contents.h"
16 #include "webkit/glue/webpreferences.h" 12 #include "webkit/glue/webpreferences.h"
17 13
18 class DOMMessageDispatcher; 14 class DOMMessageDispatcher;
19 class RenderProcessHost; 15 class RenderProcessHost;
20 class RenderViewHost; 16 class RenderViewHost;
21 class Value; 17 class Value;
22 18
23 // Messages sent from the DOM are forwarded via the DOMUIHost to handler
24 // classes. These objects are owned by DOMUIHost and destroyed when the
25 // host is destroyed.
26 class DOMMessageHandler {
27 public:
28 virtual ~DOMMessageHandler() {}
29 };
30
31 // See the comments at the top of this file. 19 // See the comments at the top of this file.
32 class DOMUIHost : public WebContents { 20 class DOMUIHost : public WebContents {
33 public: 21 public:
34 DOMUIHost(Profile* profile, 22 DOMUIHost(Profile* profile,
35 SiteInstance* instance, 23 SiteInstance* instance,
36 RenderViewHostFactory* render_view_factory); 24 RenderViewHostFactory* render_view_factory);
37 25
38 // Initializes the given renderer, after enabling DOM UI bindings on it. 26 // Initializes the given renderer, after enabling DOM UI bindings on it.
39 virtual bool CreateRenderViewForRenderManager( 27 virtual bool CreateRenderViewForRenderManager(
40 RenderViewHost* render_view_host); 28 RenderViewHost* render_view_host);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 84
97 // A map of message name -> message handling callback. 85 // A map of message name -> message handling callback.
98 typedef std::map<std::string, MessageCallback*> MessageCallbackMap; 86 typedef std::map<std::string, MessageCallback*> MessageCallbackMap;
99 MessageCallbackMap message_callbacks_; 87 MessageCallbackMap message_callbacks_;
100 88
101 DISALLOW_EVIL_CONSTRUCTORS(DOMUIHost); 89 DISALLOW_EVIL_CONSTRUCTORS(DOMUIHost);
102 }; 90 };
103 91
104 #endif // CHROME_BROWSER_DOM_UI_DOM_UI_HOST_H__ 92 #endif // CHROME_BROWSER_DOM_UI_DOM_UI_HOST_H__
105 93
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/dom_ui_contents.cc ('k') | chrome/browser/dom_ui/history_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698