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

Side by Side Diff: content/browser/frame_host/navigation_controller_impl.cc

Issue 252323006: Renamed namespaces in src/content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tue 04/29/2014 19:25:43.09 Created 6 years, 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/browser/frame_host/navigation_controller_impl.h" 5 #include "content/browser/frame_host/navigation_controller_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/strings/string_number_conversions.h" // Temporary 10 #include "base/strings/string_number_conversions.h" // Temporary
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 NavigationType navigation_type) { 108 NavigationType navigation_type) {
109 if (existing_url == new_url) 109 if (existing_url == new_url)
110 return renderer_says_in_page; 110 return renderer_says_in_page;
111 111
112 if (!new_url.has_ref()) { 112 if (!new_url.has_ref()) {
113 // When going back from the ref URL to the non ref one the navigation type 113 // When going back from the ref URL to the non ref one the navigation type
114 // is IN_PAGE. 114 // is IN_PAGE.
115 return navigation_type == NAVIGATION_TYPE_IN_PAGE; 115 return navigation_type == NAVIGATION_TYPE_IN_PAGE;
116 } 116 }
117 117
118 url_canon::Replacements<char> replacements; 118 url::Replacements<char> replacements;
119 replacements.ClearRef(); 119 replacements.ClearRef();
120 return existing_url.ReplaceComponents(replacements) == 120 return existing_url.ReplaceComponents(replacements) ==
121 new_url.ReplaceComponents(replacements); 121 new_url.ReplaceComponents(replacements);
122 } 122 }
123 123
124 // Determines whether or not we should be carrying over a user agent override 124 // Determines whether or not we should be carrying over a user agent override
125 // between two NavigationEntries. 125 // between two NavigationEntries.
126 bool ShouldKeepOverride(const NavigationEntry* last_entry) { 126 bool ShouldKeepOverride(const NavigationEntry* last_entry) {
127 return last_entry && last_entry->GetIsOverridingUserAgent(); 127 return last_entry && last_entry->GetIsOverridingUserAgent();
128 } 128 }
(...skipping 1611 matching lines...) Expand 10 before | Expand all | Expand 10 after
1740 } 1740 }
1741 } 1741 }
1742 } 1742 }
1743 1743
1744 void NavigationControllerImpl::SetGetTimestampCallbackForTest( 1744 void NavigationControllerImpl::SetGetTimestampCallbackForTest(
1745 const base::Callback<base::Time()>& get_timestamp_callback) { 1745 const base::Callback<base::Time()>& get_timestamp_callback) {
1746 get_timestamp_callback_ = get_timestamp_callback; 1746 get_timestamp_callback_ = get_timestamp_callback;
1747 } 1747 }
1748 1748
1749 } // namespace content 1749 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_url_handler_impl.cc ('k') | content/browser/geolocation/network_location_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698