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

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

Issue 8186: Plumb the referrer throughout the OpenURL APIs.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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/debugger/debugger_view.cc ('k') | chrome/browser/dom_ui/new_tab_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) 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 #ifndef CHROME_BROWSER_DOM_UI_NEW_TAB_UI_H__ 5 #ifndef CHROME_BROWSER_DOM_UI_NEW_TAB_UI_H__
6 #define CHROME_BROWSER_DOM_UI_NEW_TAB_UI_H__ 6 #define CHROME_BROWSER_DOM_UI_NEW_TAB_UI_H__
7 7
8 #include "chrome/browser/bookmarks/bookmark_model.h" 8 #include "chrome/browser/bookmarks/bookmark_model.h"
9 #include "chrome/browser/dom_ui/dom_ui_host.h" 9 #include "chrome/browser/dom_ui/dom_ui_host.h"
10 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" 10 #include "chrome/browser/dom_ui/chrome_url_data_manager.h"
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 // The bookmark bar is always visible on the new tab. 293 // The bookmark bar is always visible on the new tab.
294 virtual bool IsBookmarkBarAlwaysVisible() { return true; } 294 virtual bool IsBookmarkBarAlwaysVisible() { return true; }
295 // Return forced_title_ if it's available. 295 // Return forced_title_ if it's available.
296 virtual const std::wstring& GetTitle() const; 296 virtual const std::wstring& GetTitle() const;
297 // When we get the initial focus, focus the URL bar. 297 // When we get the initial focus, focus the URL bar.
298 virtual void SetInitialFocus(); 298 virtual void SetInitialFocus();
299 // The URL bar should not display the current page's URL. 299 // The URL bar should not display the current page's URL.
300 virtual bool ShouldDisplayURL() { return false; } 300 virtual bool ShouldDisplayURL() { return false; }
301 virtual bool SupportsURL(GURL* url); 301 virtual bool SupportsURL(GURL* url);
302 // Clicking a URL on the page should count as an autobookmark click. 302 // Clicking a URL on the page should count as an autobookmark click.
303 virtual void RequestOpenURL(const GURL& url, 303 virtual void RequestOpenURL(const GURL& url, const GURL& referrer,
304 WindowOpenDisposition disposition); 304 WindowOpenDisposition disposition);
305 private: 305 private:
306 // The message id that should be displayed in this NewTabUIContents 306 // The message id that should be displayed in this NewTabUIContents
307 // instance's motd area. 307 // instance's motd area.
308 int motd_message_id_; 308 int motd_message_id_;
309 309
310 // Whether the user is in incognito mode or not, used to determine 310 // Whether the user is in incognito mode or not, used to determine
311 // what HTML to load. 311 // what HTML to load.
312 bool incognito_; 312 bool incognito_;
313 313
314 // A title for the page we force display of. 314 // A title for the page we force display of.
315 // This prevents intermediate titles (like "Loading...") from displaying. 315 // This prevents intermediate titles (like "Loading...") from displaying.
316 std::wstring forced_title_; 316 std::wstring forced_title_;
317 317
318 // A pointer to the handler for most visited. 318 // A pointer to the handler for most visited.
319 // Owned by the DOMUIHost. 319 // Owned by the DOMUIHost.
320 MostVisitedHandler* most_visited_handler_; 320 MostVisitedHandler* most_visited_handler_;
321 321
322 DISALLOW_EVIL_CONSTRUCTORS(NewTabUIContents); 322 DISALLOW_EVIL_CONSTRUCTORS(NewTabUIContents);
323 }; 323 };
324 324
325 #endif // CHROME_BROWSER_DOM_UI_NEW_TAB_UI_H__ 325 #endif // CHROME_BROWSER_DOM_UI_NEW_TAB_UI_H__
326 326
OLDNEW
« no previous file with comments | « chrome/browser/debugger/debugger_view.cc ('k') | chrome/browser/dom_ui/new_tab_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698