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

Side by Side Diff: content/shell/browser/shell_network_delegate.cc

Issue 1284993005: Notify NetworkDelegate when bytes have been received over the network. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed empty cronet OnRawBytesRead implementation Created 5 years, 4 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 | « content/shell/browser/shell_network_delegate.h ('k') | ios/web/shell/shell_network_delegate.h » ('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 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
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
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
OLDNEW
« no previous file with comments | « content/shell/browser/shell_network_delegate.h ('k') | ios/web/shell/shell_network_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698