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

Side by Side Diff: content/browser/tab_contents/tab_contents.h

Issue 8956059: Rename NavigationController to NavigationControllerImpl and put it into the content namespace. Al... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 12 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_TAB_CONTENTS_TAB_CONTENTS_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 void UpdateMaxPageIDIfNecessary(RenderViewHost* rvh); 459 void UpdateMaxPageIDIfNecessary(RenderViewHost* rvh);
460 460
461 // Saves the given title to the navigation entry and does associated work. It 461 // Saves the given title to the navigation entry and does associated work. It
462 // will update history and the view for the new title, and also synthesize 462 // will update history and the view for the new title, and also synthesize
463 // titles for file URLs that have none (so we require that the URL of the 463 // titles for file URLs that have none (so we require that the URL of the
464 // entry already be set). 464 // entry already be set).
465 // 465 //
466 // This is used as the backend for state updates, which include a new title, 466 // This is used as the backend for state updates, which include a new title,
467 // or the dedicated set title message. It returns true if the new title is 467 // or the dedicated set title message. It returns true if the new title is
468 // different and was therefore updated. 468 // different and was therefore updated.
469 bool UpdateTitleForEntry(NavigationEntry* entry, const string16& title); 469 bool UpdateTitleForEntry(content::NavigationEntryImpl* entry,
470 const string16& title);
470 471
471 // Causes the TabContents to navigate in the right renderer to |entry|, which 472 // Causes the TabContents to navigate in the right renderer to |entry|, which
472 // must be already part of the entries in the navigation controller. 473 // must be already part of the entries in the navigation controller.
473 // This does not change the NavigationController state. 474 // This does not change the NavigationController state.
474 bool NavigateToEntry(const NavigationEntry& entry, 475 bool NavigateToEntry(const content::NavigationEntryImpl& entry,
475 NavigationController::ReloadType reload_type); 476 NavigationController::ReloadType reload_type);
476 477
477 // Sets the history for this tab_contents to |history_length| entries, and 478 // Sets the history for this tab_contents to |history_length| entries, and
478 // moves the current page_id to the last entry in the list if it's valid. 479 // moves the current page_id to the last entry in the list if it's valid.
479 // This is mainly used when a prerendered page is swapped into the current 480 // This is mainly used when a prerendered page is swapped into the current
480 // tab. The method is virtual for testing. 481 // tab. The method is virtual for testing.
481 virtual void SetHistoryLengthAndPrune(const SiteInstance* site_instance, 482 virtual void SetHistoryLengthAndPrune(const SiteInstance* site_instance,
482 int merge_history_length, 483 int merge_history_length,
483 int32 minimum_page_id); 484 int32 minimum_page_id);
484 485
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 // (full-page plugins for now only) permissions. 633 // (full-page plugins for now only) permissions.
633 int content_restrictions_; 634 int content_restrictions_;
634 635
635 // Our view type. Default is VIEW_TYPE_TAB_CONTENTS. 636 // Our view type. Default is VIEW_TYPE_TAB_CONTENTS.
636 content::ViewType view_type_; 637 content::ViewType view_type_;
637 638
638 DISALLOW_COPY_AND_ASSIGN(TabContents); 639 DISALLOW_COPY_AND_ASSIGN(TabContents);
639 }; 640 };
640 641
641 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 642 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/browser/tab_contents/render_view_host_manager_unittest.cc ('k') | content/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698