OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "net/base/network_delegate_impl.h" | |
6 | |
7 #include "net/base/net_errors.h" | |
8 | |
9 namespace net { | |
10 | |
11 int NetworkDelegateImpl::OnBeforeURLRequest(URLRequest* request, | |
12 const CompletionCallback& callback, | |
13 GURL* new_url) { | |
14 return OK; | |
15 } | |
16 | |
17 void NetworkDelegateImpl::OnResolveProxy(const GURL& url, | |
18 int load_flags, | |
19 const ProxyService& proxy_service, | |
20 ProxyInfo* result) { | |
21 } | |
22 | |
23 void NetworkDelegateImpl::OnProxyFallback(const ProxyServer& bad_proxy, | |
24 int net_error) { | |
25 } | |
26 | |
27 int NetworkDelegateImpl::OnBeforeSendHeaders(URLRequest* request, | |
28 const CompletionCallback& callback, | |
29 HttpRequestHeaders* headers) { | |
30 return OK; | |
31 } | |
32 | |
33 void NetworkDelegateImpl::OnBeforeSendProxyHeaders( | |
34 URLRequest* request, | |
35 const ProxyInfo& proxy_info, | |
36 HttpRequestHeaders* headers) { | |
37 } | |
38 | |
39 void NetworkDelegateImpl::OnSendHeaders(URLRequest* request, | |
40 const HttpRequestHeaders& headers) { | |
41 } | |
42 | |
43 int NetworkDelegateImpl::OnHeadersReceived( | |
44 URLRequest* request, | |
45 const CompletionCallback& callback, | |
46 const HttpResponseHeaders* original_response_headers, | |
47 scoped_refptr<HttpResponseHeaders>* override_response_headers, | |
48 GURL* allowed_unsafe_redirect_url) { | |
49 return OK; | |
50 } | |
51 | |
52 void NetworkDelegateImpl::OnBeforeRedirect(URLRequest* request, | |
53 const GURL& new_location) { | |
54 } | |
55 | |
56 void NetworkDelegateImpl::OnResponseStarted(URLRequest* request) { | |
57 } | |
58 | |
59 void NetworkDelegateImpl::OnRawBytesRead(const URLRequest& request, | |
60 int bytes_read) { | |
61 } | |
62 | |
63 void NetworkDelegateImpl::OnCompleted(URLRequest* request, bool started) { | |
64 } | |
65 | |
66 void NetworkDelegateImpl::OnURLRequestDestroyed(URLRequest* request) { | |
67 } | |
68 | |
69 void NetworkDelegateImpl::OnPACScriptError(int line_number, | |
70 const base::string16& error) { | |
71 } | |
72 | |
73 NetworkDelegate::AuthRequiredResponse NetworkDelegateImpl::OnAuthRequired( | |
74 URLRequest* request, | |
75 const AuthChallengeInfo& auth_info, | |
76 const AuthCallback& callback, | |
77 AuthCredentials* credentials) { | |
78 return AUTH_REQUIRED_RESPONSE_NO_ACTION; | |
79 } | |
80 | |
81 bool NetworkDelegateImpl::OnCanGetCookies(const URLRequest& request, | |
82 const CookieList& cookie_list) { | |
83 return true; | |
84 } | |
85 | |
86 bool NetworkDelegateImpl::OnCanSetCookie(const URLRequest& request, | |
87 const std::string& cookie_line, | |
88 CookieOptions* options) { | |
89 return true; | |
90 } | |
91 | |
92 bool NetworkDelegateImpl::OnCanAccessFile(const URLRequest& request, | |
93 const base::FilePath& path) const { | |
94 return false; | |
95 } | |
96 | |
97 bool NetworkDelegateImpl::OnCanThrottleRequest( | |
98 const URLRequest& request) const { | |
99 return false; | |
100 } | |
101 | |
102 bool NetworkDelegateImpl::OnCanEnablePrivacyMode( | |
103 const GURL& url, | |
104 const GURL& first_party_for_cookies) const { | |
105 return false; | |
106 } | |
107 | |
108 bool NetworkDelegateImpl::OnCancelURLRequestWithPolicyViolatingReferrerHeader( | |
109 const URLRequest& request, | |
110 const GURL& target_url, | |
111 const GURL& referrer_url) const { | |
112 return false; | |
113 } | |
114 | |
115 } // namespace net | |
OLD | NEW |