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

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

Issue 1692503002: Functionality to allow blacklist and whitelist of custom schemes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another variable set as const Created 4 years, 9 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 bool OnCanAccessFile(const URLRequest& request, 82 bool OnCanAccessFile(const URLRequest& request,
83 const base::FilePath& path) const final; 83 const base::FilePath& path) const final;
84 bool OnCanEnablePrivacyMode(const GURL& url, 84 bool OnCanEnablePrivacyMode(const GURL& url,
85 const GURL& first_party_for_cookies) const final; 85 const GURL& first_party_for_cookies) const final;
86 bool OnAreExperimentalCookieFeaturesEnabled() const final; 86 bool OnAreExperimentalCookieFeaturesEnabled() const final;
87 bool OnAreStrictSecureCookiesEnabled() const final; 87 bool OnAreStrictSecureCookiesEnabled() 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 URLBlacklistState GetURLBlacklistState(const GURL& url) const final;
92 93
93 protected: 94 protected:
94 virtual void OnBeforeURLRequestInternal(URLRequest* request, 95 virtual void OnBeforeURLRequestInternal(URLRequest* request,
95 const CompletionCallback& callback, 96 const CompletionCallback& callback,
96 GURL* new_url); 97 GURL* new_url);
97 98
98 virtual void OnResolveProxyInternal(const GURL& url, 99 virtual void OnResolveProxyInternal(const GURL& url,
99 int load_flags, 100 int load_flags,
100 const ProxyService& proxy_service, 101 const ProxyService& proxy_service,
101 ProxyInfo* result); 102 ProxyInfo* result);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 const GURL& target_url, 167 const GURL& target_url,
167 const GURL& referrer_url) const; 168 const GURL& referrer_url) const;
168 169
169 private: 170 private:
170 scoped_ptr<NetworkDelegate> nested_network_delegate_; 171 scoped_ptr<NetworkDelegate> nested_network_delegate_;
171 }; 172 };
172 173
173 } // namespace net 174 } // namespace net
174 175
175 #endif // NET_BASE_LAYERED_NETWORK_DELEGATE_H_ 176 #endif // NET_BASE_LAYERED_NETWORK_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698