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

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

Issue 21540: Add developer tools message forwarding to browser (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | « chrome/browser/dom_ui/dom_ui.h ('k') | chrome/browser/dom_ui/dom_ui_contents.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) 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 // Contains code for managing local HTML UI at chrome-ui:// URLs. 5 // Contains code for managing local HTML UI at chrome-ui:// URLs.
6 6
7 #ifndef CHROME_BROWSER_DOM_UI_CONTENTS_H_ 7 #ifndef CHROME_BROWSER_DOM_UI_CONTENTS_H_
8 #define CHROME_BROWSER_DOM_UI_CONTENTS_H_ 8 #define CHROME_BROWSER_DOM_UI_CONTENTS_H_
9 9
10 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" 10 #include "chrome/browser/dom_ui/chrome_url_data_manager.h"
11 #include "chrome/browser/tab_contents/web_contents.h" 11 #include "chrome/browser/tab_contents/web_contents.h"
12 #include "webkit/glue/webpreferences.h" 12 #include "webkit/glue/webpreferences.h"
13 13
14 class DOMUI; 14 class DOMUI;
15 class render_view_host; 15 class RenderViewHost;
16 16
17 // FavIconSource is the gateway between network-level chrome: 17 // FavIconSource is the gateway between network-level chrome:
18 // requests for favicons and the history backend that serves these. 18 // requests for favicons and the history backend that serves these.
19 class FavIconSource : public ChromeURLDataManager::DataSource { 19 class FavIconSource : public ChromeURLDataManager::DataSource {
20 public: 20 public:
21 explicit FavIconSource(Profile* profile); 21 explicit FavIconSource(Profile* profile);
22 22
23 // Called when the network layer has requested a resource underneath 23 // Called when the network layer has requested a resource underneath
24 // the path we registered. 24 // the path we registered.
25 virtual void StartDataRequest(const std::string& path, int request_id); 25 virtual void StartDataRequest(const std::string& path, int request_id);
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // The bookmark bar is always visible on the new tab. 106 // The bookmark bar is always visible on the new tab.
107 virtual bool IsBookmarkBarAlwaysVisible(); 107 virtual bool IsBookmarkBarAlwaysVisible();
108 // When NTP gets the initial focus, focus the URL bar. 108 // When NTP gets the initial focus, focus the URL bar.
109 virtual void SetInitialFocus(); 109 virtual void SetInitialFocus();
110 // Whether we want to display the page's URL. 110 // Whether we want to display the page's URL.
111 virtual bool ShouldDisplayURL(); 111 virtual bool ShouldDisplayURL();
112 // We may wish to control what happens when a URL is opened. 112 // We may wish to control what happens when a URL is opened.
113 virtual void RequestOpenURL(const GURL& url, const GURL& referrer, 113 virtual void RequestOpenURL(const GURL& url, const GURL& referrer,
114 WindowOpenDisposition disposition); 114 WindowOpenDisposition disposition);
115 115
116 virtual void RenderViewCreated(RenderViewHost* render_view_host);
117
116 // 118 //
117 // TabContents overrides 119 // TabContents overrides
118 // 120 //
119 virtual void UpdateHistoryForNavigation(const GURL& url, 121 virtual void UpdateHistoryForNavigation(const GURL& url,
120 const ViewHostMsg_FrameNavigate_Params& params) { } 122 const ViewHostMsg_FrameNavigate_Params& params) { }
121 virtual bool NavigateToPendingEntry(bool reload); 123 virtual bool NavigateToPendingEntry(bool reload);
122 124
123 // Return the scheme used. We currently use chrome: 125 // Return the scheme used. We currently use chrome-ui:
124 static const std::string GetScheme(); 126 static const std::string GetScheme();
125 127
126 private: 128 private:
127 // Return a DOM UI for the provided URL. 129 // Return a DOM UI for the provided URL.
128 DOMUI* GetDOMUIForURL(const GURL& url); 130 DOMUI* GetDOMUIForURL(const GURL& url);
129 131
130 // The DOMUI we own and show. 132 // The DOMUI we own and show.
131 DOMUI* current_ui_; 133 DOMUI* current_ui_;
132 134
133 DISALLOW_COPY_AND_ASSIGN(DOMUIContents); 135 DISALLOW_COPY_AND_ASSIGN(DOMUIContents);
134 }; 136 };
135 137
136 #endif // CHROME_BROWSER_DOM_UI_CONTENTS_H_ 138 #endif // CHROME_BROWSER_DOM_UI_CONTENTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/dom_ui.h ('k') | chrome/browser/dom_ui/dom_ui_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698