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

Side by Side Diff: content/public/child/request_peer.h

Issue 264613006: Move first-party cookie URL logic to browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « content/common/resource_messages.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PUBLIC_CHILD_REQUEST_PEER_H_ 5 #ifndef CONTENT_PUBLIC_CHILD_REQUEST_PEER_H_
6 #define CONTENT_PUBLIC_CHILD_REQUEST_PEER_H_ 6 #define CONTENT_PUBLIC_CHILD_REQUEST_PEER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 19 matching lines...) Expand all
30 // conditions in which they will be called are identical. See url_request.h 30 // conditions in which they will be called are identical. See url_request.h
31 // for more information. 31 // for more information.
32 class CONTENT_EXPORT RequestPeer { 32 class CONTENT_EXPORT RequestPeer {
33 public: 33 public:
34 // Called as upload progress is made. 34 // Called as upload progress is made.
35 // note: only for requests with LOAD_ENABLE_UPLOAD_PROGRESS set 35 // note: only for requests with LOAD_ENABLE_UPLOAD_PROGRESS set
36 virtual void OnUploadProgress(uint64 position, uint64 size) = 0; 36 virtual void OnUploadProgress(uint64 position, uint64 size) = 0;
37 37
38 // Called when a redirect occurs. The implementation may return false to 38 // Called when a redirect occurs. The implementation may return false to
39 // suppress the redirect. The given ResponseInfo provides complete 39 // suppress the redirect. The given ResponseInfo provides complete
40 // information about the redirect, and new_url is the URL that will be 40 // information about the redirect, and new_url is the URL that will be loaded
41 // loaded if this method returns true. If this method returns true, the 41 // if this method returns true. new_first_party_for_cookies is the new
42 // output parameter *has_new_first_party_for_cookies indicates whether the 42 // first-party URL for cookies should that have changed.
43 // output parameter *new_first_party_for_cookies contains the new URL that 43 virtual bool OnReceivedRedirect(
44 // should be consulted for the third-party cookie blocking policy. 44 const GURL& new_url,
45 virtual bool OnReceivedRedirect(const GURL& new_url, 45 const GURL& new_first_party_for_cookies,
46 const webkit_glue::ResourceResponseInfo& info, 46 const webkit_glue::ResourceResponseInfo& info) = 0;
47 bool* has_new_first_party_for_cookies,
48 GURL* new_first_party_for_cookies) = 0;
49 47
50 // Called when response headers are available (after all redirects have 48 // Called when response headers are available (after all redirects have
51 // been followed). 49 // been followed).
52 virtual void OnReceivedResponse( 50 virtual void OnReceivedResponse(
53 const webkit_glue::ResourceResponseInfo& info) = 0; 51 const webkit_glue::ResourceResponseInfo& info) = 0;
54 52
55 // Called when a chunk of response data is downloaded. This method may be 53 // Called when a chunk of response data is downloaded. This method may be
56 // called multiple times or not at all if an error occurs. This method is 54 // called multiple times or not at all if an error occurs. This method is
57 // only called if RequestInfo::download_to_file was set to true, and in 55 // only called if RequestInfo::download_to_file was set to true, and in
58 // that case, OnReceivedData will not be called. 56 // that case, OnReceivedData will not be called.
(...skipping 24 matching lines...) Expand all
83 const base::TimeTicks& completion_time, 81 const base::TimeTicks& completion_time,
84 int64 total_transfer_size) = 0; 82 int64 total_transfer_size) = 0;
85 83
86 protected: 84 protected:
87 virtual ~RequestPeer() {} 85 virtual ~RequestPeer() {}
88 }; 86 };
89 87
90 } // namespace content 88 } // namespace content
91 89
92 #endif // CONTENT_PUBLIC_CHILD_REQUEST_PEER_H_ 90 #endif // CONTENT_PUBLIC_CHILD_REQUEST_PEER_H_
OLDNEW
« no previous file with comments | « content/common/resource_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698