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

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

Issue 1393193005: Implement $Secure- cookie prefix (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add another test Created 5 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 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 AuthCredentials* credentials) final; 77 AuthCredentials* credentials) final;
78 bool OnCanGetCookies(const URLRequest& request, 78 bool OnCanGetCookies(const URLRequest& request,
79 const CookieList& cookie_list) final; 79 const CookieList& cookie_list) final;
80 bool OnCanSetCookie(const URLRequest& request, 80 bool OnCanSetCookie(const URLRequest& request,
81 const std::string& cookie_line, 81 const std::string& cookie_line,
82 CookieOptions* options) final; 82 CookieOptions* options) final;
83 bool OnCanAccessFile(const URLRequest& request, 83 bool OnCanAccessFile(const URLRequest& request,
84 const base::FilePath& path) const final; 84 const base::FilePath& path) const final;
85 bool OnCanEnablePrivacyMode(const GURL& url, 85 bool OnCanEnablePrivacyMode(const GURL& url,
86 const GURL& first_party_for_cookies) const final; 86 const GURL& first_party_for_cookies) const final;
87 bool OnFirstPartyOnlyCookieExperimentEnabled() const final; 87 bool OnExperimentalFeaturesEnabled() const final;
88 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( 88 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader(
89 const URLRequest& request, 89 const URLRequest& request,
90 const GURL& target_url, 90 const GURL& target_url,
91 const GURL& referrer_url) const final; 91 const GURL& referrer_url) const final;
92 92
93 protected: 93 protected:
94 virtual void OnBeforeURLRequestInternal(URLRequest* request, 94 virtual void OnBeforeURLRequestInternal(URLRequest* request,
95 const CompletionCallback& callback, 95 const CompletionCallback& callback,
96 GURL* new_url); 96 GURL* new_url);
97 97
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 const AuthCallback& callback, 151 const AuthCallback& callback,
152 AuthCredentials* credentials); 152 AuthCredentials* credentials);
153 153
154 virtual void OnCanAccessFileInternal(const URLRequest& request, 154 virtual void OnCanAccessFileInternal(const URLRequest& request,
155 const base::FilePath& path) const; 155 const base::FilePath& path) const;
156 156
157 virtual void OnCanEnablePrivacyModeInternal( 157 virtual void OnCanEnablePrivacyModeInternal(
158 const GURL& url, 158 const GURL& url,
159 const GURL& first_party_for_cookies) const; 159 const GURL& first_party_for_cookies) const;
160 160
161 virtual void OnFirstPartyOnlyCookieExperimentEnabledInternal() const; 161 virtual void OnExperimentalFeaturesEnabledInternal() const;
162 162
163 virtual void OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( 163 virtual void OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal(
164 const URLRequest& request, 164 const URLRequest& request,
165 const GURL& target_url, 165 const GURL& target_url,
166 const GURL& referrer_url) const; 166 const GURL& referrer_url) const;
167 167
168 private: 168 private:
169 scoped_ptr<NetworkDelegate> nested_network_delegate_; 169 scoped_ptr<NetworkDelegate> nested_network_delegate_;
170 }; 170 };
171 171
172 } // namespace net 172 } // namespace net
173 173
174 #endif // NET_BASE_LAYERED_NETWORK_DELEGATE_H_ 174 #endif // NET_BASE_LAYERED_NETWORK_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698