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

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

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, 3 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
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 #ifndef CONTENT_SHELL_BROWSER_SHELL_NETWORK_DELEGATE_H_ 5 #ifndef CONTENT_SHELL_BROWSER_SHELL_NETWORK_DELEGATE_H_
6 #define CONTENT_SHELL_BROWSER_SHELL_NETWORK_DELEGATE_H_ 6 #define CONTENT_SHELL_BROWSER_SHELL_NETWORK_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "net/base/network_delegate_impl.h" 10 #include "net/base/network_delegate_impl.h"
(...skipping 19 matching lines...) Expand all
30 const net::HttpRequestHeaders& headers) override; 30 const net::HttpRequestHeaders& headers) override;
31 int OnHeadersReceived( 31 int OnHeadersReceived(
32 net::URLRequest* request, 32 net::URLRequest* request,
33 const net::CompletionCallback& callback, 33 const net::CompletionCallback& callback,
34 const net::HttpResponseHeaders* original_response_headers, 34 const net::HttpResponseHeaders* original_response_headers,
35 scoped_refptr<net::HttpResponseHeaders>* override_response_headers, 35 scoped_refptr<net::HttpResponseHeaders>* override_response_headers,
36 GURL* allowed_unsafe_redirect_url) override; 36 GURL* allowed_unsafe_redirect_url) override;
37 void OnBeforeRedirect(net::URLRequest* request, 37 void OnBeforeRedirect(net::URLRequest* request,
38 const GURL& new_location) override; 38 const GURL& new_location) override;
39 void OnResponseStarted(net::URLRequest* request) override; 39 void OnResponseStarted(net::URLRequest* request) override;
40 void OnRawBytesRead(const net::URLRequest& request, int bytes_read) override;
41 void OnCompleted(net::URLRequest* request, bool started) override; 40 void OnCompleted(net::URLRequest* request, bool started) override;
42 void OnURLRequestDestroyed(net::URLRequest* request) override; 41 void OnURLRequestDestroyed(net::URLRequest* request) override;
43 void OnPACScriptError(int line_number, const base::string16& error) override; 42 void OnPACScriptError(int line_number, const base::string16& error) override;
44 AuthRequiredResponse OnAuthRequired( 43 AuthRequiredResponse OnAuthRequired(
45 net::URLRequest* request, 44 net::URLRequest* request,
46 const net::AuthChallengeInfo& auth_info, 45 const net::AuthChallengeInfo& auth_info,
47 const AuthCallback& callback, 46 const AuthCallback& callback,
48 net::AuthCredentials* credentials) override; 47 net::AuthCredentials* credentials) override;
49 bool OnCanGetCookies(const net::URLRequest& request, 48 bool OnCanGetCookies(const net::URLRequest& request,
50 const net::CookieList& cookie_list) override; 49 const net::CookieList& cookie_list) override;
51 bool OnCanSetCookie(const net::URLRequest& request, 50 bool OnCanSetCookie(const net::URLRequest& request,
52 const std::string& cookie_line, 51 const std::string& cookie_line,
53 net::CookieOptions* options) override; 52 net::CookieOptions* options) override;
54 bool OnCanAccessFile(const net::URLRequest& request, 53 bool OnCanAccessFile(const net::URLRequest& request,
55 const base::FilePath& path) const override; 54 const base::FilePath& path) const override;
56 bool OnFirstPartyOnlyCookieExperimentEnabled() const override; 55 bool OnFirstPartyOnlyCookieExperimentEnabled() const override;
57 56
58 DISALLOW_COPY_AND_ASSIGN(ShellNetworkDelegate); 57 DISALLOW_COPY_AND_ASSIGN(ShellNetworkDelegate);
59 }; 58 };
60 59
61 } // namespace content 60 } // namespace content
62 61
63 #endif // CONTENT_SHELL_BROWSER_SHELL_NETWORK_DELEGATE_H_ 62 #endif // CONTENT_SHELL_BROWSER_SHELL_NETWORK_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/cronet/android/url_request_context_adapter.cc ('k') | content/shell/browser/shell_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698