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

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 2611183007: PlzNavigate: Fix for the http/tests/inspector/resource-har-conversion.html layout test failure. (Closed)
Patch Set: Created 3 years, 11 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 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/renderer/render_frame_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 #include "media/base/media_log.h" 150 #include "media/base/media_log.h"
151 #include "media/base/media_switches.h" 151 #include "media/base/media_switches.h"
152 #include "media/blink/url_index.h" 152 #include "media/blink/url_index.h"
153 #include "media/blink/webencryptedmediaclient_impl.h" 153 #include "media/blink/webencryptedmediaclient_impl.h"
154 #include "media/blink/webmediaplayer_impl.h" 154 #include "media/blink/webmediaplayer_impl.h"
155 #include "media/media_features.h" 155 #include "media/media_features.h"
156 #include "media/renderers/gpu_video_accelerator_factories.h" 156 #include "media/renderers/gpu_video_accelerator_factories.h"
157 #include "mojo/edk/js/core.h" 157 #include "mojo/edk/js/core.h"
158 #include "mojo/edk/js/support.h" 158 #include "mojo/edk/js/support.h"
159 #include "net/base/data_url.h" 159 #include "net/base/data_url.h"
160 #include "net/base/load_flags.h"
160 #include "net/base/net_errors.h" 161 #include "net/base/net_errors.h"
161 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" 162 #include "net/base/registry_controlled_domains/registry_controlled_domain.h"
162 #include "net/http/http_util.h" 163 #include "net/http/http_util.h"
163 #include "ppapi/features/features.h" 164 #include "ppapi/features/features.h"
164 #include "services/service_manager/public/cpp/interface_provider.h" 165 #include "services/service_manager/public/cpp/interface_provider.h"
165 #include "services/service_manager/public/cpp/interface_registry.h" 166 #include "services/service_manager/public/cpp/interface_registry.h"
166 #include "services/ui/public/cpp/gpu/context_provider_command_buffer.h" 167 #include "services/ui/public/cpp/gpu/context_provider_command_buffer.h"
167 #include "storage/common/data_element.h" 168 #include "storage/common/data_element.h"
168 #include "third_party/WebKit/public/platform/FilePathConversion.h" 169 #include "third_party/WebKit/public/platform/FilePathConversion.h"
169 #include "third_party/WebKit/public/platform/URLConversion.h" 170 #include "third_party/WebKit/public/platform/URLConversion.h"
170 #include "third_party/WebKit/public/platform/WebCachePolicy.h" 171 #include "third_party/WebKit/public/platform/WebCachePolicy.h"
171 #include "third_party/WebKit/public/platform/WebData.h" 172 #include "third_party/WebKit/public/platform/WebData.h"
172 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" 173 #include "third_party/WebKit/public/platform/WebMediaPlayer.h"
173 #include "third_party/WebKit/public/platform/WebMediaPlayerSource.h" 174 #include "third_party/WebKit/public/platform/WebMediaPlayerSource.h"
174 #include "third_party/WebKit/public/platform/WebPoint.h" 175 #include "third_party/WebKit/public/platform/WebPoint.h"
175 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" 176 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h"
176 #include "third_party/WebKit/public/platform/WebStorageQuotaCallbacks.h" 177 #include "third_party/WebKit/public/platform/WebStorageQuotaCallbacks.h"
177 #include "third_party/WebKit/public/platform/WebString.h" 178 #include "third_party/WebKit/public/platform/WebString.h"
178 #include "third_party/WebKit/public/platform/WebURL.h" 179 #include "third_party/WebKit/public/platform/WebURL.h"
179 #include "third_party/WebKit/public/platform/WebURLError.h" 180 #include "third_party/WebKit/public/platform/WebURLError.h"
180 #include "third_party/WebKit/public/platform/WebURLResponse.h" 181 #include "third_party/WebKit/public/platform/WebURLResponse.h"
181 #include "third_party/WebKit/public/platform/WebVector.h" 182 #include "third_party/WebKit/public/platform/WebVector.h"
182 #include "third_party/WebKit/public/platform/scheduler/renderer/renderer_schedul er.h" 183 #include "third_party/WebKit/public/platform/scheduler/renderer/renderer_schedul er.h"
183 #include "third_party/WebKit/public/web/WebColorSuggestion.h" 184 #include "third_party/WebKit/public/web/WebColorSuggestion.h"
184 #include "third_party/WebKit/public/web/WebConsoleMessage.h" 185 #include "third_party/WebKit/public/web/WebConsoleMessage.h"
186 #include "third_party/WebKit/public/web/WebDevToolsAgent.h"
185 #include "third_party/WebKit/public/web/WebDocument.h" 187 #include "third_party/WebKit/public/web/WebDocument.h"
186 #include "third_party/WebKit/public/web/WebFindOptions.h" 188 #include "third_party/WebKit/public/web/WebFindOptions.h"
187 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h" 189 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h"
188 #include "third_party/WebKit/public/web/WebFrameSerializer.h" 190 #include "third_party/WebKit/public/web/WebFrameSerializer.h"
189 #include "third_party/WebKit/public/web/WebFrameSerializerCacheControlPolicy.h" 191 #include "third_party/WebKit/public/web/WebFrameSerializerCacheControlPolicy.h"
190 #include "third_party/WebKit/public/web/WebFrameWidget.h" 192 #include "third_party/WebKit/public/web/WebFrameWidget.h"
191 #include "third_party/WebKit/public/web/WebKit.h" 193 #include "third_party/WebKit/public/web/WebKit.h"
192 #include "third_party/WebKit/public/web/WebLocalFrame.h" 194 #include "third_party/WebKit/public/web/WebLocalFrame.h"
193 #include "third_party/WebKit/public/web/WebMediaStreamRegistry.h" 195 #include "third_party/WebKit/public/web/WebMediaStreamRegistry.h"
194 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" 196 #include "third_party/WebKit/public/web/WebNavigationPolicy.h"
(...skipping 5998 matching lines...) Expand 10 before | Expand all | Expand 10 after
6193 GetRequestContextFrameTypeForWebURLRequest(info.urlRequest) == 6195 GetRequestContextFrameTypeForWebURLRequest(info.urlRequest) ==
6194 REQUEST_CONTEXT_FRAME_TYPE_TOP_LEVEL); 6196 REQUEST_CONTEXT_FRAME_TYPE_TOP_LEVEL);
6195 DCHECK(!frame_->parent() || 6197 DCHECK(!frame_->parent() ||
6196 GetRequestContextFrameTypeForWebURLRequest(info.urlRequest) == 6198 GetRequestContextFrameTypeForWebURLRequest(info.urlRequest) ==
6197 REQUEST_CONTEXT_FRAME_TYPE_NESTED); 6199 REQUEST_CONTEXT_FRAME_TYPE_NESTED);
6198 6200
6199 base::Optional<url::Origin> initiator_origin = 6201 base::Optional<url::Origin> initiator_origin =
6200 info.urlRequest.requestorOrigin().isNull() 6202 info.urlRequest.requestorOrigin().isNull()
6201 ? base::Optional<url::Origin>() 6203 ? base::Optional<url::Origin>()
6202 : base::Optional<url::Origin>(info.urlRequest.requestorOrigin()); 6204 : base::Optional<url::Origin>(info.urlRequest.requestorOrigin());
6205
6206 int load_flags = GetLoadFlagsForWebURLRequest(info.urlRequest);
6207
6208 // Requests initiated via devtools can have caching disabled.
6209 if (devtools_agent_ && devtools_agent_->GetWebAgent() &&
6210 devtools_agent_->GetWebAgent()->cacheDisabled()) {
6211 load_flags = net::LOAD_BYPASS_CACHE;
pfeldman 2017/01/09 16:40:41 You just overrode non-cache-related bits set in Ge
jam 2017/01/09 16:46:24 whops, thanks for catching that. Given that this
ananta 2017/01/10 01:20:09 Thanks for catching this. Fixed
6212 }
6203 BeginNavigationParams begin_navigation_params( 6213 BeginNavigationParams begin_navigation_params(
6204 GetWebURLRequestHeaders(info.urlRequest), 6214 GetWebURLRequestHeaders(info.urlRequest), load_flags,
6205 GetLoadFlagsForWebURLRequest(info.urlRequest),
6206 info.urlRequest.hasUserGesture(), 6215 info.urlRequest.hasUserGesture(),
6207 info.urlRequest.skipServiceWorker() != 6216 info.urlRequest.skipServiceWorker() !=
6208 blink::WebURLRequest::SkipServiceWorker::None, 6217 blink::WebURLRequest::SkipServiceWorker::None,
6209 GetRequestContextTypeForWebURLRequest(info.urlRequest), initiator_origin); 6218 GetRequestContextTypeForWebURLRequest(info.urlRequest), initiator_origin);
6210 6219
6211 if (!info.form.isNull()) { 6220 if (!info.form.isNull()) {
6212 WebSearchableFormData web_searchable_form_data(info.form); 6221 WebSearchableFormData web_searchable_form_data(info.form);
6213 begin_navigation_params.searchable_form_url = 6222 begin_navigation_params.searchable_form_url =
6214 web_searchable_form_data.url(); 6223 web_searchable_form_data.url();
6215 begin_navigation_params.searchable_form_encoding = 6224 begin_navigation_params.searchable_form_encoding =
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
6755 // event target. Potentially a Pepper plugin will receive the event. 6764 // event target. Potentially a Pepper plugin will receive the event.
6756 // In order to tell whether a plugin gets the last mouse event and which it 6765 // In order to tell whether a plugin gets the last mouse event and which it
6757 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6766 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6758 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6767 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6759 // |pepper_last_mouse_event_target_|. 6768 // |pepper_last_mouse_event_target_|.
6760 pepper_last_mouse_event_target_ = nullptr; 6769 pepper_last_mouse_event_target_ = nullptr;
6761 #endif 6770 #endif
6762 } 6771 }
6763 6772
6764 } // namespace content 6773 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698