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

Side by Side Diff: content/child/request_info.h

Issue 623663002: [ServiceWorker] pipe RequestContext and FrameType to ServiceWorker. [2/2 chromium] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: request_info.cc Created 6 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_CHILD_REQUEST_INFO_H_ 5 #ifndef CONTENT_CHILD_REQUEST_INFO_H_
6 #define CONTENT_CHILD_REQUEST_INFO_H_ 6 #define CONTENT_CHILD_REQUEST_INFO_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "content/common/service_worker/service_worker_types.h" 13 #include "content/common/service_worker/service_worker_types.h"
14 #include "content/public/common/request_context_frame_type.h"
15 #include "content/public/common/request_context_type.h"
14 #include "content/public/common/resource_type.h" 16 #include "content/public/common/resource_type.h"
15 #include "net/base/request_priority.h" 17 #include "net/base/request_priority.h"
16 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" 18 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
17 #include "third_party/WebKit/public/platform/WebURLRequest.h" 19 #include "third_party/WebKit/public/platform/WebURLRequest.h"
18 #include "url/gurl.h" 20 #include "url/gurl.h"
19 21
20 namespace content { 22 namespace content {
21 23
22 // Structure used when calling BlinkPlatformImpl::CreateResourceLoader(). 24 // Structure used when calling BlinkPlatformImpl::CreateResourceLoader().
23 struct CONTENT_EXPORT RequestInfo { 25 struct CONTENT_EXPORT RequestInfo {
(...skipping 25 matching lines...) Expand all
49 51
50 // Composed of the values defined in url_request_load_flags.h. 52 // Composed of the values defined in url_request_load_flags.h.
51 int load_flags; 53 int load_flags;
52 54
53 // Process id of the process making the request. 55 // Process id of the process making the request.
54 int requestor_pid; 56 int requestor_pid;
55 57
56 // Indicates if the current request is the main frame load, a sub-frame 58 // Indicates if the current request is the main frame load, a sub-frame
57 // load, or a sub objects load. 59 // load, or a sub objects load.
58 ResourceType request_type; 60 ResourceType request_type;
61 RequestContextType fetch_request_context_type;
62 RequestContextFrameType fetch_frame_type;
59 63
60 // Indicates the priority of this request, as determined by WebKit. 64 // Indicates the priority of this request, as determined by WebKit.
61 net::RequestPriority priority; 65 net::RequestPriority priority;
62 66
63 // Used for plugin to browser requests. 67 // Used for plugin to browser requests.
64 uint32_t request_context; 68 uint32_t request_context;
65 69
66 // Identifies what appcache host this request is associated with. 70 // Identifies what appcache host this request is associated with.
67 int appcache_host_id; 71 int appcache_host_id;
68 72
(...skipping 23 matching lines...) Expand all
92 // Extra data associated with this request. We do not own this pointer. 96 // Extra data associated with this request. We do not own this pointer.
93 blink::WebURLRequest::ExtraData* extra_data; 97 blink::WebURLRequest::ExtraData* extra_data;
94 98
95 private: 99 private:
96 DISALLOW_COPY_AND_ASSIGN(RequestInfo); 100 DISALLOW_COPY_AND_ASSIGN(RequestInfo);
97 }; 101 };
98 102
99 } // namespace content 103 } // namespace content
100 104
101 #endif // CONTENT_CHILD_REQUEST_INFO_H_ 105 #endif // CONTENT_CHILD_REQUEST_INFO_H_
OLDNEW
« no previous file with comments | « content/browser/service_worker/service_worker_url_request_job_unittest.cc ('k') | content/child/request_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698