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

Side by Side Diff: chrome/browser/dom_ui/dom_ui_contents.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.cc ('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"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // 94 //
95 // WebContents overrides 95 // WebContents overrides
96 // 96 //
97 virtual void ProcessDOMUIMessage(const std::string& message, 97 virtual void ProcessDOMUIMessage(const std::string& message,
98 const std::string& content); 98 const std::string& content);
99 virtual bool CreateRenderViewForRenderManager( 99 virtual bool CreateRenderViewForRenderManager(
100 RenderViewHost* render_view_host); 100 RenderViewHost* render_view_host);
101 // Override this method so we can ensure that javascript and image loading 101 // Override this method so we can ensure that javascript and image loading
102 // are always on even for DOMUIHost tabs. 102 // are always on even for DOMUIHost tabs.
103 virtual WebPreferences GetWebkitPrefs(); 103 virtual WebPreferences GetWebkitPrefs();
104 // We don't want a favicon on the new tab page.
105 virtual bool ShouldDisplayFavIcon();
106 // The bookmark bar is always visible on the new tab.
107 virtual bool IsBookmarkBarAlwaysVisible();
108 // When NTP gets the initial focus, focus the URL bar.
109 virtual void SetInitialFocus();
110 // Whether we want to display the page's URL.
111 virtual bool ShouldDisplayURL();
112 // We may wish to control what happens when a URL is opened.
113 virtual void RequestOpenURL(const GURL& url, const GURL& referrer,
114 WindowOpenDisposition disposition);
104 115
105 // 116 //
106 // TabContents overrides 117 // TabContents overrides
107 // 118 //
108 virtual void UpdateHistoryForNavigation(const GURL& url, 119 virtual void UpdateHistoryForNavigation(const GURL& url,
109 const ViewHostMsg_FrameNavigate_Params& params) { } 120 const ViewHostMsg_FrameNavigate_Params& params) { }
110 virtual bool NavigateToPendingEntry(bool reload); 121 virtual bool NavigateToPendingEntry(bool reload);
111 122
112 // Return the scheme used. We currently use chrome: 123 // Return the scheme used. We currently use chrome:
113 static const std::string GetScheme(); 124 static const std::string GetScheme();
114 125
115 private: 126 private:
116 // Return a DOM UI for the provided URL. 127 // Return a DOM UI for the provided URL.
117 DOMUI* GetDOMUIForURL(const GURL& url); 128 DOMUI* GetDOMUIForURL(const GURL& url);
118 129
119 // The DOMUI we own and show. 130 // The DOMUI we own and show.
120 DOMUI* current_ui_; 131 DOMUI* current_ui_;
121 132
122 DISALLOW_COPY_AND_ASSIGN(DOMUIContents); 133 DISALLOW_COPY_AND_ASSIGN(DOMUIContents);
123 }; 134 };
124 135
125 #endif // CHROME_BROWSER_DOM_UI_CONTENTS_H_ 136 #endif // CHROME_BROWSER_DOM_UI_CONTENTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/dom_ui.cc ('k') | chrome/browser/dom_ui/dom_ui_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698