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

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

Issue 2867693004: Snapshot of all changes to get jumbo in blink and content.
Patch Set: Exclude certain files from jumbo because of a Windows problem Created 3 years, 3 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_handle_impl.h" 5 #include "content/browser/frame_host/navigation_handle_impl.h"
6 6
7 #include <iterator> 7 #include <iterator>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/histogram_macros.h" 10 #include "base/metrics/histogram_macros.h"
(...skipping 28 matching lines...) Expand all
39 #include "net/url_request/redirect_info.h" 39 #include "net/url_request/redirect_info.h"
40 #include "url/gurl.h" 40 #include "url/gurl.h"
41 #include "url/url_constants.h" 41 #include "url/url_constants.h"
42 42
43 namespace content { 43 namespace content {
44 44
45 namespace { 45 namespace {
46 46
47 // Use this to get a new unique ID for a NavigationHandle during construction. 47 // Use this to get a new unique ID for a NavigationHandle during construction.
48 // The returned ID is guaranteed to be nonzero (zero is the "no ID" indicator). 48 // The returned ID is guaranteed to be nonzero (zero is the "no ID" indicator).
49 int64_t GetUniqueIDInConstructor() { 49 int64_t GetUniqueHandleIDInConstructor() {
50 static int64_t unique_id_counter = 0; 50 static int64_t unique_id_counter = 0;
51 return ++unique_id_counter; 51 return ++unique_id_counter;
52 } 52 }
53 53
54 void UpdateThrottleCheckResult( 54 void UpdateThrottleCheckResult(
55 NavigationThrottle::ThrottleCheckResult* to_update, 55 NavigationThrottle::ThrottleCheckResult* to_update,
56 NavigationThrottle::ThrottleCheckResult result) { 56 NavigationThrottle::ThrottleCheckResult result) {
57 *to_update = result; 57 *to_update = result;
58 } 58 }
59 59
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 original_url_(url), 111 original_url_(url),
112 state_(INITIAL), 112 state_(INITIAL),
113 is_transferring_(false), 113 is_transferring_(false),
114 frame_tree_node_(frame_tree_node), 114 frame_tree_node_(frame_tree_node),
115 next_index_(0), 115 next_index_(0),
116 navigation_start_(navigation_start), 116 navigation_start_(navigation_start),
117 pending_nav_entry_id_(pending_nav_entry_id), 117 pending_nav_entry_id_(pending_nav_entry_id),
118 request_context_type_(REQUEST_CONTEXT_TYPE_UNSPECIFIED), 118 request_context_type_(REQUEST_CONTEXT_TYPE_UNSPECIFIED),
119 mixed_content_context_type_( 119 mixed_content_context_type_(
120 blink::WebMixedContentContextType::kBlockable), 120 blink::WebMixedContentContextType::kBlockable),
121 navigation_id_(GetUniqueIDInConstructor()), 121 navigation_id_(GetUniqueHandleIDInConstructor()),
122 should_replace_current_entry_(false), 122 should_replace_current_entry_(false),
123 redirect_chain_(redirect_chain), 123 redirect_chain_(redirect_chain),
124 is_download_(false), 124 is_download_(false),
125 is_stream_(false), 125 is_stream_(false),
126 started_from_context_menu_(started_from_context_menu), 126 started_from_context_menu_(started_from_context_menu),
127 reload_type_(ReloadType::NONE), 127 reload_type_(ReloadType::NONE),
128 restore_type_(RestoreType::NONE), 128 restore_type_(RestoreType::NONE),
129 navigation_type_(NAVIGATION_TYPE_UNKNOWN), 129 navigation_type_(NAVIGATION_TYPE_UNKNOWN),
130 should_check_main_world_csp_(should_check_main_world_csp), 130 should_check_main_world_csp_(should_check_main_world_csp),
131 is_form_submission_(is_form_submission), 131 is_form_submission_(is_form_submission),
(...skipping 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after
1270 SetExpectedProcess(post_redirect_process); 1270 SetExpectedProcess(post_redirect_process);
1271 } 1271 }
1272 1272
1273 NavigationThrottle* NavigationHandleImpl::GetDeferringThrottle() const { 1273 NavigationThrottle* NavigationHandleImpl::GetDeferringThrottle() const {
1274 if (next_index_ == 0) 1274 if (next_index_ == 0)
1275 return nullptr; 1275 return nullptr;
1276 return throttles_[next_index_ - 1].get(); 1276 return throttles_[next_index_ - 1].get();
1277 } 1277 }
1278 1278
1279 } // namespace content 1279 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/fileapi/fileapi_message_filter.cc ('k') | content/browser/gpu/gpu_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698