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

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

Issue 1036003: Add chromium-side support for history.{push,replace}State. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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 | « no previous file | chrome/browser/tab_contents/navigation_controller.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #include <string> 10 #include <string>
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 GURL previous_url; 82 GURL previous_url;
83 83
84 // True when this load was non-user initated. This corresponds to a 84 // True when this load was non-user initated. This corresponds to a
85 // a NavigationGestureAuto call from WebKit (see webview_delegate.h). 85 // a NavigationGestureAuto call from WebKit (see webview_delegate.h).
86 // We also count reloads and meta-refreshes as "auto" to account for the 86 // We also count reloads and meta-refreshes as "auto" to account for the
87 // fact that WebKit doesn't always set the user gesture properly in these 87 // fact that WebKit doesn't always set the user gesture properly in these
88 // cases (see bug 1051891). 88 // cases (see bug 1051891).
89 bool is_auto; 89 bool is_auto;
90 90
91 // True if the committed entry has replaced the exisiting one. 91 // True if the committed entry has replaced the exisiting one.
92 // A non-user initiated redierct causes such replacement. 92 // A non-user initiated redirect causes such replacement.
93 // This is somewhat similiar to is_auto, but not exactly the same. 93 // This is somewhat similiar to is_auto, but not exactly the same.
94 bool did_replace_entry; 94 bool did_replace_entry;
95 95
96 // True if the navigation was in-page. This means that the active entry's 96 // True if the navigation was in-page. This means that the active entry's
97 // URL and the |previous_url| are the same except for reference fragments. 97 // URL and the |previous_url| are the same except for reference fragments.
98 bool is_in_page; 98 bool is_in_page;
99 99
100 // True when the main frame was navigated. False means the navigation was a 100 // True when the main frame was navigated. False means the navigation was a
101 // sub-frame. 101 // sub-frame.
102 bool is_main_frame; 102 bool is_main_frame;
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 // when testing. 554 // when testing.
555 static bool check_for_repost_; 555 static bool check_for_repost_;
556 556
557 // The maximum number of entries that a navigation controller can store. 557 // The maximum number of entries that a navigation controller can store.
558 static size_t max_entry_count_; 558 static size_t max_entry_count_;
559 559
560 DISALLOW_COPY_AND_ASSIGN(NavigationController); 560 DISALLOW_COPY_AND_ASSIGN(NavigationController);
561 }; 561 };
562 562
563 #endif // CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ 563 #endif // CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/tab_contents/navigation_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698