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

Side by Side Diff: chrome/browser/tab_contents/navigation_controller.cc

Issue 20072: Finish taking out render_messages.h include from other headers. (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
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 #include "chrome/browser/tab_contents/navigation_controller.h" 5 #include "chrome/browser/tab_contents/navigation_controller.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
11 #include "chrome/browser/dom_ui/dom_ui_host.h" 11 #include "chrome/browser/dom_ui/dom_ui_host.h"
12 #include "chrome/browser/repost_form_warning_dialog.h" 12 #include "chrome/browser/repost_form_warning_dialog.h"
13 #include "chrome/browser/sessions/session_types.h" 13 #include "chrome/browser/sessions/session_types.h"
14 #include "chrome/browser/tab_contents/navigation_entry.h" 14 #include "chrome/browser/tab_contents/navigation_entry.h"
15 #include "chrome/browser/tab_contents/site_instance.h" 15 #include "chrome/browser/tab_contents/site_instance.h"
16 #include "chrome/browser/tab_contents/tab_contents.h" 16 #include "chrome/browser/tab_contents/tab_contents.h"
17 #include "chrome/browser/tab_contents/tab_contents_delegate.h" 17 #include "chrome/browser/tab_contents/tab_contents_delegate.h"
18 #include "chrome/common/navigation_types.h" 18 #include "chrome/common/navigation_types.h"
19 #include "chrome/common/notification_service.h" 19 #include "chrome/common/notification_service.h"
20 #include "chrome/common/render_messages.h"
20 #include "chrome/common/resource_bundle.h" 21 #include "chrome/common/resource_bundle.h"
21 #include "webkit/glue/webkit_glue.h" 22 #include "webkit/glue/webkit_glue.h"
22 23
23 namespace { 24 namespace {
24 25
25 // Invoked when entries have been pruned, or removed. For example, if the 26 // Invoked when entries have been pruned, or removed. For example, if the
26 // current entries are [google, digg, yahoo], with the current entry google, 27 // current entries are [google, digg, yahoo], with the current entry google,
27 // and the user types in cnet, then digg and yahoo are pruned. 28 // and the user types in cnet, then digg and yahoo are pruned.
28 void NotifyPrunedEntries(NavigationController* nav_controller, 29 void NotifyPrunedEntries(NavigationController* nav_controller,
29 bool from_front, 30 bool from_front,
(...skipping 1182 matching lines...) Expand 10 before | Expand all | Expand 10 after
1212 return i; 1213 return i;
1213 } 1214 }
1214 return -1; 1215 return -1;
1215 } 1216 }
1216 1217
1217 NavigationEntry* NavigationController::GetTransientEntry() const { 1218 NavigationEntry* NavigationController::GetTransientEntry() const {
1218 if (transient_entry_index_ == -1) 1219 if (transient_entry_index_ == -1)
1219 return NULL; 1220 return NULL;
1220 return entries_[transient_entry_index_].get(); 1221 return entries_[transient_entry_index_].get();
1221 } 1222 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698