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

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

Issue 373873002: Fixes for re-enabling more MSVC level 4 warnings: content/browser/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/command_line.h" 8 #include "base/command_line.h"
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 28 matching lines...) Expand all
39 #include "content/public/common/content_constants.h" 39 #include "content/public/common/content_constants.h"
40 #include "net/base/escape.h" 40 #include "net/base/escape.h"
41 #include "net/base/mime_util.h" 41 #include "net/base/mime_util.h"
42 #include "net/base/net_util.h" 42 #include "net/base/net_util.h"
43 #include "skia/ext/platform_canvas.h" 43 #include "skia/ext/platform_canvas.h"
44 #include "url/url_constants.h" 44 #include "url/url_constants.h"
45 45
46 namespace content { 46 namespace content {
47 namespace { 47 namespace {
48 48
49 const int kInvalidateAll = 0xFFFFFFFF; 49 const unsigned kInvalidateAll = 0xFFFFFFFF;
50 50
51 // Invoked when entries have been pruned, or removed. For example, if the 51 // Invoked when entries have been pruned, or removed. For example, if the
52 // current entries are [google, digg, yahoo], with the current entry google, 52 // current entries are [google, digg, yahoo], with the current entry google,
53 // and the user types in cnet, then digg and yahoo are pruned. 53 // and the user types in cnet, then digg and yahoo are pruned.
54 void NotifyPrunedEntries(NavigationControllerImpl* nav_controller, 54 void NotifyPrunedEntries(NavigationControllerImpl* nav_controller,
55 bool from_front, 55 bool from_front,
56 int count) { 56 int count) {
57 PrunedDetails details; 57 PrunedDetails details;
58 details.from_front = from_front; 58 details.from_front = from_front;
59 details.count = count; 59 details.count = count;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 // Determines whether or not we should be carrying over a user agent override 133 // Determines whether or not we should be carrying over a user agent override
134 // between two NavigationEntries. 134 // between two NavigationEntries.
135 bool ShouldKeepOverride(const NavigationEntry* last_entry) { 135 bool ShouldKeepOverride(const NavigationEntry* last_entry) {
136 return last_entry && last_entry->GetIsOverridingUserAgent(); 136 return last_entry && last_entry->GetIsOverridingUserAgent();
137 } 137 }
138 138
139 } // namespace 139 } // namespace
140 140
141 // NavigationControllerImpl ---------------------------------------------------- 141 // NavigationControllerImpl ----------------------------------------------------
142 142
143 const size_t kMaxEntryCountForTestingNotSet = -1; 143 const size_t kMaxEntryCountForTestingNotSet = static_cast<size_t>(-1);
144 144
145 // static 145 // static
146 size_t NavigationControllerImpl::max_entry_count_for_testing_ = 146 size_t NavigationControllerImpl::max_entry_count_for_testing_ =
147 kMaxEntryCountForTestingNotSet; 147 kMaxEntryCountForTestingNotSet;
148 148
149 // Should Reload check for post data? The default is true, but is set to false 149 // Should Reload check for post data? The default is true, but is set to false
150 // when testing. 150 // when testing.
151 static bool g_check_for_repost = true; 151 static bool g_check_for_repost = true;
152 152
153 // static 153 // static
(...skipping 1621 matching lines...) Expand 10 before | Expand all | Expand 10 after
1775 } 1775 }
1776 } 1776 }
1777 } 1777 }
1778 1778
1779 void NavigationControllerImpl::SetGetTimestampCallbackForTest( 1779 void NavigationControllerImpl::SetGetTimestampCallbackForTest(
1780 const base::Callback<base::Time()>& get_timestamp_callback) { 1780 const base::Callback<base::Time()>& get_timestamp_callback) {
1781 get_timestamp_callback_ = get_timestamp_callback; 1781 get_timestamp_callback_ = get_timestamp_callback;
1782 } 1782 }
1783 1783
1784 } // namespace content 1784 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/fileapi/blob_url_request_job_unittest.cc ('k') | content/browser/geolocation/network_location_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698