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

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

Issue 734263003: Move data reduction proxy logic out of chrome and android webview network delegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use SingleThreadTaskRunner instead of MessageLoopProxy Created 6 years 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
(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(
18 const GURL& url,
19 int load_flags,
20 const ProxyService& proxy_service,
21 ProxyInfo* result) {
22 }
23
24 void NetworkDelegateImpl::OnProxyFallback(const ProxyServer& bad_proxy,
25 int net_error) {
26 }
27
28 int NetworkDelegateImpl::OnBeforeSendHeaders(URLRequest* request,
29 const CompletionCallback& callback,
30 HttpRequestHeaders* headers) {
31 return OK;
32 }
33
34 void NetworkDelegateImpl::OnBeforeSendProxyHeaders(
35 URLRequest* request,
36 const ProxyInfo& proxy_info,
37 HttpRequestHeaders* headers) {
38 }
39
40 void NetworkDelegateImpl::OnSendHeaders(URLRequest* request,
41 const HttpRequestHeaders& headers) {
42 }
43
44 int NetworkDelegateImpl::OnHeadersReceived(
45 URLRequest* request,
46 const CompletionCallback& callback,
47 const HttpResponseHeaders* original_response_headers,
48 scoped_refptr<HttpResponseHeaders>* override_response_headers,
49 GURL* allowed_unsafe_redirect_url) {
50 return OK;
51 }
52
53 void NetworkDelegateImpl::OnBeforeRedirect(URLRequest* request,
54 const GURL& new_location) {
55 }
56
57 void NetworkDelegateImpl::OnResponseStarted(URLRequest* request) {
58 }
59
60 void NetworkDelegateImpl::OnRawBytesRead(const URLRequest& request,
61 int bytes_read) {
62 }
63
64 void NetworkDelegateImpl::OnCompleted(URLRequest* request, bool started) {
65 }
66
67 void NetworkDelegateImpl::OnURLRequestDestroyed(URLRequest* request) {
68 }
69
70 void NetworkDelegateImpl::OnPACScriptError(int line_number,
71 const base::string16& error) {
72 }
73
74 NetworkDelegate::AuthRequiredResponse NetworkDelegateImpl::OnAuthRequired(
75 URLRequest* request,
76 const AuthChallengeInfo& auth_info,
77 const AuthCallback& callback,
78 AuthCredentials* credentials) {
79 return AUTH_REQUIRED_RESPONSE_NO_ACTION;
80 }
81
82 bool NetworkDelegateImpl::OnCanGetCookies(const URLRequest& request,
83 const CookieList& cookie_list) {
84 return true;
85 }
86
87 bool NetworkDelegateImpl::OnCanSetCookie(const URLRequest& request,
88 const std::string& cookie_line,
89 CookieOptions* options) {
90 return true;
91 }
92
93 bool NetworkDelegateImpl::OnCanAccessFile(const URLRequest& request,
94 const base::FilePath& path) const {
95 return false;
96 }
97
98 bool NetworkDelegateImpl::OnCanThrottleRequest(
99 const URLRequest& request) const {
100 return false;
101 }
102
103 bool NetworkDelegateImpl::OnCanEnablePrivacyMode(
104 const GURL& url,
105 const GURL& first_party_for_cookies) const {
106 return false;
107 }
108
109 bool NetworkDelegateImpl::OnCancelURLRequestWithPolicyViolatingReferrerHeader(
110 const URLRequest& request,
111 const GURL& target_url,
112 const GURL& referrer_url) const {
113 return false;
114 }
115
116 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698