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

Side by Side Diff: webkit/glue/resource_loader_bridge.h

Issue 8801006: Make the transfer request code path use full referrers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « content/common/resource_messages.h ('k') | webkit/glue/resource_loader_bridge.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // The intent of this file is to provide a type-neutral abstraction between 5 // The intent of this file is to provide a type-neutral abstraction between
6 // Chrome and WebKit for resource loading. This pure-virtual interface is 6 // Chrome and WebKit for resource loading. This pure-virtual interface is
7 // implemented by the embedder. 7 // implemented by the embedder.
8 // 8 //
9 // One of these objects will be created by WebKit for each request. WebKit 9 // One of these objects will be created by WebKit for each request. WebKit
10 // will own the pointer to the bridge, and will delete it when the request is 10 // will own the pointer to the bridge, and will delete it when the request is
(...skipping 15 matching lines...) Expand all
26 #include "base/file_path.h" 26 #include "base/file_path.h"
27 #include "base/memory/ref_counted.h" 27 #include "base/memory/ref_counted.h"
28 #include "base/memory/scoped_ptr.h" 28 #include "base/memory/scoped_ptr.h"
29 #include "base/platform_file.h" 29 #include "base/platform_file.h"
30 #include "base/time.h" 30 #include "base/time.h"
31 #include "base/values.h" 31 #include "base/values.h"
32 #include "googleurl/src/gurl.h" 32 #include "googleurl/src/gurl.h"
33 #include "net/base/host_port_pair.h" 33 #include "net/base/host_port_pair.h"
34 #include "net/url_request/url_request_status.h" 34 #include "net/url_request/url_request_status.h"
35 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLReques t.h" 35 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLReques t.h"
36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebReferrerPolicy.h"
36 #include "webkit/glue/resource_type.h" 37 #include "webkit/glue/resource_type.h"
37 #include "webkit/glue/webkit_glue_export.h" 38 #include "webkit/glue/webkit_glue_export.h"
38 39
39 namespace net { 40 namespace net {
40 class HttpResponseHeaders; 41 class HttpResponseHeaders;
41 } 42 }
42 43
43 namespace webkit_glue { 44 namespace webkit_glue {
44 45
45 // Structure containing timing information for the request. It addresses 46 // Structure containing timing information for the request. It addresses
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 GURL url; 211 GURL url;
211 212
212 // URL of the document in the top-level window, which may be checked by the 213 // URL of the document in the top-level window, which may be checked by the
213 // third-party cookie blocking policy. 214 // third-party cookie blocking policy.
214 GURL first_party_for_cookies; 215 GURL first_party_for_cookies;
215 216
216 // Optional parameter, a URL with similar constraints in how it must be 217 // Optional parameter, a URL with similar constraints in how it must be
217 // encoded as the url member. 218 // encoded as the url member.
218 GURL referrer; 219 GURL referrer;
219 220
221 // The referrer policy that applies to the referrer.
222 WebKit::WebReferrerPolicy referrer_policy;
223
220 // For HTTP(S) requests, the headers parameter can be a \r\n-delimited and 224 // For HTTP(S) requests, the headers parameter can be a \r\n-delimited and
221 // \r\n-terminated list of MIME headers. They should be ASCII-encoded using 225 // \r\n-terminated list of MIME headers. They should be ASCII-encoded using
222 // the standard MIME header encoding rules. The headers parameter can also 226 // the standard MIME header encoding rules. The headers parameter can also
223 // be null if no extra request headers need to be set. 227 // be null if no extra request headers need to be set.
224 std::string headers; 228 std::string headers;
225 229
226 // Composed of the values defined in url_request_load_flags.h. 230 // Composed of the values defined in url_request_load_flags.h.
227 int load_flags; 231 int load_flags;
228 232
229 // Process id of the process making the request. 233 // Process id of the process making the request.
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 // methods may be called to construct the body of the request. 399 // methods may be called to construct the body of the request.
396 WEBKIT_GLUE_EXPORT ResourceLoaderBridge(); 400 WEBKIT_GLUE_EXPORT ResourceLoaderBridge();
397 401
398 private: 402 private:
399 DISALLOW_COPY_AND_ASSIGN(ResourceLoaderBridge); 403 DISALLOW_COPY_AND_ASSIGN(ResourceLoaderBridge);
400 }; 404 };
401 405
402 } // namespace webkit_glue 406 } // namespace webkit_glue
403 407
404 #endif // WEBKIT_GLUE_RESOURCE_LOADER_BRIDGE_H_ 408 #endif // WEBKIT_GLUE_RESOURCE_LOADER_BRIDGE_H_
OLDNEW
« no previous file with comments | « content/common/resource_messages.h ('k') | webkit/glue/resource_loader_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698