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

Side by Side Diff: content/child/request_extra_data.cc

Issue 2032653003: Limit foreign fetch to only intercept requests made from secure contexts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: properly initialize new ResourceRequest member Created 4 years, 6 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
« no previous file with comments | « content/child/request_extra_data.h ('k') | content/child/resource_dispatcher.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/child/request_extra_data.h" 5 #include "content/child/request_extra_data.h"
6 6
7 #include "content/common/service_worker/service_worker_types.h" 7 #include "content/common/service_worker/service_worker_types.h"
8 #include "ipc/ipc_message.h" 8 #include "ipc/ipc_message.h"
9 9
10 using blink::WebString; 10 using blink::WebString;
11 11
12 namespace content { 12 namespace content {
13 13
14 RequestExtraData::RequestExtraData() 14 RequestExtraData::RequestExtraData()
15 : visibility_state_(blink::WebPageVisibilityStateVisible), 15 : visibility_state_(blink::WebPageVisibilityStateVisible),
16 render_frame_id_(MSG_ROUTING_NONE), 16 render_frame_id_(MSG_ROUTING_NONE),
17 is_main_frame_(false), 17 is_main_frame_(false),
18 parent_is_main_frame_(false), 18 parent_is_main_frame_(false),
19 parent_render_frame_id_(-1), 19 parent_render_frame_id_(-1),
20 allow_download_(true), 20 allow_download_(true),
21 transition_type_(ui::PAGE_TRANSITION_LINK), 21 transition_type_(ui::PAGE_TRANSITION_LINK),
22 should_replace_current_entry_(false), 22 should_replace_current_entry_(false),
23 transferred_request_child_id_(-1), 23 transferred_request_child_id_(-1),
24 transferred_request_request_id_(-1), 24 transferred_request_request_id_(-1),
25 service_worker_provider_id_(kInvalidServiceWorkerProviderId), 25 service_worker_provider_id_(kInvalidServiceWorkerProviderId),
26 originated_from_service_worker_(false), 26 originated_from_service_worker_(false),
27 lofi_state_(LOFI_UNSPECIFIED) { 27 lofi_state_(LOFI_UNSPECIFIED),
28 } 28 initiated_in_secure_context_(false) {}
29 29
30 RequestExtraData::~RequestExtraData() { 30 RequestExtraData::~RequestExtraData() {
31 } 31 }
32 32
33 } // namespace content 33 } // namespace content
OLDNEW
« no previous file with comments | « content/child/request_extra_data.h ('k') | content/child/resource_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698