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

Side by Side Diff: net/base/layered_network_delegate.h

Issue 1032063002: Enable 'First-Party-Only' cookies by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Friend. Created 5 years, 8 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/shell/browser/shell_network_delegate.cc ('k') | net/base/layered_network_delegate.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 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 NET_BASE_LAYERED_NETWORK_DELEGATE_H_ 5 #ifndef NET_BASE_LAYERED_NETWORK_DELEGATE_H_
6 #define NET_BASE_LAYERED_NETWORK_DELEGATE_H_ 6 #define NET_BASE_LAYERED_NETWORK_DELEGATE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "net/base/completion_callback.h" 10 #include "net/base/completion_callback.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 bool OnCanGetCookies(const URLRequest& request, 73 bool OnCanGetCookies(const URLRequest& request,
74 const CookieList& cookie_list) final; 74 const CookieList& cookie_list) final;
75 bool OnCanSetCookie(const URLRequest& request, 75 bool OnCanSetCookie(const URLRequest& request,
76 const std::string& cookie_line, 76 const std::string& cookie_line,
77 CookieOptions* options) final; 77 CookieOptions* options) final;
78 bool OnCanAccessFile(const URLRequest& request, 78 bool OnCanAccessFile(const URLRequest& request,
79 const base::FilePath& path) const final; 79 const base::FilePath& path) const final;
80 bool OnCanThrottleRequest(const URLRequest& request) const final; 80 bool OnCanThrottleRequest(const URLRequest& request) const final;
81 bool OnCanEnablePrivacyMode(const GURL& url, 81 bool OnCanEnablePrivacyMode(const GURL& url,
82 const GURL& first_party_for_cookies) const final; 82 const GURL& first_party_for_cookies) const final;
83 bool OnFirstPartyOnlyCookieExperimentEnabled() const final;
84 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( 83 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader(
85 const URLRequest& request, 84 const URLRequest& request,
86 const GURL& target_url, 85 const GURL& target_url,
87 const GURL& referrer_url) const final; 86 const GURL& referrer_url) const final;
88 87
89 protected: 88 protected:
90 virtual void OnBeforeURLRequestInternal(URLRequest* request, 89 virtual void OnBeforeURLRequestInternal(URLRequest* request,
91 const CompletionCallback& callback, 90 const CompletionCallback& callback,
92 GURL* new_url); 91 GURL* new_url);
93 92
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 145
147 virtual void OnCanAccessFileInternal(const URLRequest& request, 146 virtual void OnCanAccessFileInternal(const URLRequest& request,
148 const base::FilePath& path) const; 147 const base::FilePath& path) const;
149 148
150 virtual void OnCanThrottleRequestInternal(const URLRequest& request) const; 149 virtual void OnCanThrottleRequestInternal(const URLRequest& request) const;
151 150
152 virtual void OnCanEnablePrivacyModeInternal( 151 virtual void OnCanEnablePrivacyModeInternal(
153 const GURL& url, 152 const GURL& url,
154 const GURL& first_party_for_cookies) const; 153 const GURL& first_party_for_cookies) const;
155 154
156 virtual void OnFirstPartyOnlyCookieExperimentEnabledInternal() const;
157
158 virtual void OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( 155 virtual void OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal(
159 const URLRequest& request, 156 const URLRequest& request,
160 const GURL& target_url, 157 const GURL& target_url,
161 const GURL& referrer_url) const; 158 const GURL& referrer_url) const;
162 159
163 private: 160 private:
164 scoped_ptr<NetworkDelegate> nested_network_delegate_; 161 scoped_ptr<NetworkDelegate> nested_network_delegate_;
165 }; 162 };
166 163
167 } // namespace net 164 } // namespace net
168 165
169 #endif // NET_BASE_LAYERED_NETWORK_DELEGATE_H_ 166 #endif // NET_BASE_LAYERED_NETWORK_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/shell/browser/shell_network_delegate.cc ('k') | net/base/layered_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698