| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "content/shell/browser/shell_network_delegate.h" | 5 #include "content/shell/browser/shell_network_delegate.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "content/public/common/content_switches.h" | 8 #include "content/public/common/content_switches.h" |
| 9 #include "net/base/net_errors.h" | 9 #include "net/base/net_errors.h" |
| 10 #include "net/base/static_cookie_policy.h" | 10 #include "net/base/static_cookie_policy.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 return net::OK; | 54 return net::OK; |
| 55 } | 55 } |
| 56 | 56 |
| 57 void ShellNetworkDelegate::OnBeforeRedirect(net::URLRequest* request, | 57 void ShellNetworkDelegate::OnBeforeRedirect(net::URLRequest* request, |
| 58 const GURL& new_location) { | 58 const GURL& new_location) { |
| 59 } | 59 } |
| 60 | 60 |
| 61 void ShellNetworkDelegate::OnResponseStarted(net::URLRequest* request) { | 61 void ShellNetworkDelegate::OnResponseStarted(net::URLRequest* request) { |
| 62 } | 62 } |
| 63 | 63 |
| 64 void ShellNetworkDelegate::OnRawBytesRead(const net::URLRequest& request, | |
| 65 int bytes_read) { | |
| 66 } | |
| 67 | |
| 68 void ShellNetworkDelegate::OnCompleted(net::URLRequest* request, bool started) { | 64 void ShellNetworkDelegate::OnCompleted(net::URLRequest* request, bool started) { |
| 69 } | 65 } |
| 70 | 66 |
| 71 void ShellNetworkDelegate::OnURLRequestDestroyed(net::URLRequest* request) { | 67 void ShellNetworkDelegate::OnURLRequestDestroyed(net::URLRequest* request) { |
| 72 } | 68 } |
| 73 | 69 |
| 74 void ShellNetworkDelegate::OnPACScriptError(int line_number, | 70 void ShellNetworkDelegate::OnPACScriptError(int line_number, |
| 75 const base::string16& error) { | 71 const base::string16& error) { |
| 76 } | 72 } |
| 77 | 73 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 const base::FilePath& path) const { | 106 const base::FilePath& path) const { |
| 111 return true; | 107 return true; |
| 112 } | 108 } |
| 113 | 109 |
| 114 bool ShellNetworkDelegate::OnFirstPartyOnlyCookieExperimentEnabled() const { | 110 bool ShellNetworkDelegate::OnFirstPartyOnlyCookieExperimentEnabled() const { |
| 115 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 111 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 116 switches::kEnableExperimentalWebPlatformFeatures); | 112 switches::kEnableExperimentalWebPlatformFeatures); |
| 117 } | 113 } |
| 118 | 114 |
| 119 } // namespace content | 115 } // namespace content |
| OLD | NEW |