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

Side by Side Diff: content/public/common/resource_request.h

Issue 2976323002: Hook up ProfileIOData's URLRequestContext to a NetworkService. (Closed)
Patch Set: Response to comments Created 3 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
« no previous file with comments | « content/public/browser/storage_partition.h ('k') | content/public/common/resource_request.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef CONTENT_PUBLIC_COMMON_RESOURCE_REQUEST_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_RESOURCE_REQUEST_H_
6 #define CONTENT_PUBLIC_COMMON_RESOURCE_REQUEST_H_ 6 #define CONTENT_PUBLIC_COMMON_RESOURCE_REQUEST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string> 9 #include <string>
10 10
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/optional.h" 12 #include "base/optional.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "content/public/common/appcache_info.h"
15 #include "content/public/common/previews_state.h" 14 #include "content/public/common/previews_state.h"
16 #include "content/public/common/request_context_frame_type.h" 15 #include "content/public/common/request_context_frame_type.h"
17 #include "content/public/common/request_context_type.h" 16 #include "content/public/common/request_context_type.h"
18 #include "content/public/common/resource_request_body.h" 17 #include "content/public/common/resource_request_body.h"
19 #include "content/public/common/resource_type.h" 18 #include "content/public/common/resource_type.h"
20 #include "content/public/common/service_worker_modes.h" 19 #include "content/public/common/service_worker_modes.h"
21 #include "net/base/request_priority.h" 20 #include "net/base/request_priority.h"
22 #include "third_party/WebKit/public/platform/WebMixedContentContextType.h" 21 #include "third_party/WebKit/public/platform/WebMixedContentContextType.h"
23 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" 22 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
24 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" 23 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 ResourceType resource_type = RESOURCE_TYPE_MAIN_FRAME; 80 ResourceType resource_type = RESOURCE_TYPE_MAIN_FRAME;
82 81
83 // The priority of this request determined by Blink. 82 // The priority of this request determined by Blink.
84 net::RequestPriority priority = net::IDLE; 83 net::RequestPriority priority = net::IDLE;
85 84
86 // Used by plugin->browser requests to get the correct net::URLRequestContext. 85 // Used by plugin->browser requests to get the correct net::URLRequestContext.
87 uint32_t request_context = 0; 86 uint32_t request_context = 0;
88 87
89 // Indicates which frame (or worker context) the request is being loaded into, 88 // Indicates which frame (or worker context) the request is being loaded into,
90 // or kAppCacheNoHostId. 89 // or kAppCacheNoHostId.
91 int appcache_host_id = kAppCacheNoHostId; 90 int appcache_host_id;
92 91
93 // True if corresponding AppCache group should be resetted. 92 // True if corresponding AppCache group should be resetted.
94 bool should_reset_appcache = false; 93 bool should_reset_appcache = false;
95 94
96 // Indicates which frame (or worker context) the request is being loaded into, 95 // Indicates which frame (or worker context) the request is being loaded into,
97 // or kInvalidServiceWorkerProviderId. 96 // or kInvalidServiceWorkerProviderId.
98 int service_worker_provider_id = kInvalidServiceWorkerProviderId; 97 int service_worker_provider_id = kInvalidServiceWorkerProviderId;
99 98
100 // True if the request originated from a Service Worker, e.g. due to a 99 // True if the request originated from a Service Worker, e.g. due to a
101 // fetch() in the Service Worker script. 100 // fetch() in the Service Worker script.
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 bool initiated_in_secure_context = false; 195 bool initiated_in_secure_context = false;
197 196
198 // The response should be downloaded and stored in the network cache, but not 197 // The response should be downloaded and stored in the network cache, but not
199 // sent back to the renderer. 198 // sent back to the renderer.
200 bool download_to_network_cache_only = false; 199 bool download_to_network_cache_only = false;
201 }; 200 };
202 201
203 } // namespace content 202 } // namespace content
204 203
205 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_REQUEST_H_ 204 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_REQUEST_H_
OLDNEW
« no previous file with comments | « content/public/browser/storage_partition.h ('k') | content/public/common/resource_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698