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

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

Issue 817653003: Update from https://crrev.com/309717 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « net/base/layered_network_delegate.h ('k') | net/base/sdch_manager_unittest.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_NETWORK_DELEGATE_IMPL_H_ 5 #ifndef NET_BASE_NETWORK_DELEGATE_IMPL_H_
6 #define NET_BASE_NETWORK_DELEGATE_IMPL_H_ 6 #define NET_BASE_NETWORK_DELEGATE_IMPL_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "net/base/completion_callback.h" 9 #include "net/base/completion_callback.h"
10 #include "net/base/network_delegate.h" 10 #include "net/base/network_delegate.h"
(...skipping 10 matching lines...) Expand all
21 class CookieOptions; 21 class CookieOptions;
22 class HttpRequestHeaders; 22 class HttpRequestHeaders;
23 class HttpResponseHeaders; 23 class HttpResponseHeaders;
24 class ProxyInfo; 24 class ProxyInfo;
25 class ProxyServer; 25 class ProxyServer;
26 class ProxyService; 26 class ProxyService;
27 class URLRequest; 27 class URLRequest;
28 28
29 class NET_EXPORT NetworkDelegateImpl : public NetworkDelegate { 29 class NET_EXPORT NetworkDelegateImpl : public NetworkDelegate {
30 public: 30 public:
31 virtual ~NetworkDelegateImpl() {} 31 ~NetworkDelegateImpl() override {}
32 32
33 private: 33 private:
34 // This is the interface for subclasses of NetworkDelegate to implement. These 34 // This is the interface for subclasses of NetworkDelegate to implement. These
35 // member functions will be called by the respective public notification 35 // member functions will be called by the respective public notification
36 // member function, which will perform basic sanity checking. 36 // member function, which will perform basic sanity checking.
37 37
38 // Called before a request is sent. Allows the delegate to rewrite the URL 38 // Called before a request is sent. Allows the delegate to rewrite the URL
39 // being fetched by modifying |new_url|. If set, the URL must be valid. The 39 // being fetched by modifying |new_url|. If set, the URL must be valid. The
40 // reference fragment from the original URL is not automatically appended to 40 // reference fragment from the original URL is not automatically appended to
41 // |new_url|; callers are responsible for copying the reference fragment if 41 // |new_url|; callers are responsible for copying the reference fragment if
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // header is stripped from the request. 191 // header is stripped from the request.
192 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( 192 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader(
193 const URLRequest& request, 193 const URLRequest& request,
194 const GURL& target_url, 194 const GURL& target_url,
195 const GURL& referrer_url) const override; 195 const GURL& referrer_url) const override;
196 }; 196 };
197 197
198 } // namespace net 198 } // namespace net
199 199
200 #endif // NET_BASE_NETWORK_DELEGATE_IMPL_H_ 200 #endif // NET_BASE_NETWORK_DELEGATE_IMPL_H_
OLDNEW
« no previous file with comments | « net/base/layered_network_delegate.h ('k') | net/base/sdch_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698