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

Side by Side Diff: android_webview/browser/net/aw_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
« no previous file with comments | « no previous file | android_webview/browser/net/aw_network_delegate.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 ANDROID_WEBVIEW_BROWSER_NET_AW_NETWORK_DELEGATE_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_NET_AW_NETWORK_DELEGATE_H_
6 #define ANDROID_WEBVIEW_BROWSER_NET_AW_NETWORK_DELEGATE_H_ 6 #define ANDROID_WEBVIEW_BROWSER_NET_AW_NETWORK_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "net/base/network_delegate_impl.h" 9 #include "net/base/network_delegate_impl.h"
10 10
(...skipping 22 matching lines...) Expand all
33 const net::HttpRequestHeaders& headers) override; 33 const net::HttpRequestHeaders& headers) override;
34 int OnHeadersReceived( 34 int OnHeadersReceived(
35 net::URLRequest* request, 35 net::URLRequest* request,
36 const net::CompletionCallback& callback, 36 const net::CompletionCallback& callback,
37 const net::HttpResponseHeaders* original_response_headers, 37 const net::HttpResponseHeaders* original_response_headers,
38 scoped_refptr<net::HttpResponseHeaders>* override_response_headers, 38 scoped_refptr<net::HttpResponseHeaders>* override_response_headers,
39 GURL* allowed_unsafe_redirect_url) override; 39 GURL* allowed_unsafe_redirect_url) override;
40 void OnBeforeRedirect(net::URLRequest* request, 40 void OnBeforeRedirect(net::URLRequest* request,
41 const GURL& new_location) override; 41 const GURL& new_location) override;
42 void OnResponseStarted(net::URLRequest* request) override; 42 void OnResponseStarted(net::URLRequest* request) override;
43 void OnRawBytesRead(const net::URLRequest& request, int bytes_read) override;
44 void OnCompleted(net::URLRequest* request, bool started) override; 43 void OnCompleted(net::URLRequest* request, bool started) override;
45 void OnURLRequestDestroyed(net::URLRequest* request) override; 44 void OnURLRequestDestroyed(net::URLRequest* request) override;
46 void OnPACScriptError(int line_number, const base::string16& error) override; 45 void OnPACScriptError(int line_number, const base::string16& error) override;
47 net::NetworkDelegate::AuthRequiredResponse OnAuthRequired( 46 net::NetworkDelegate::AuthRequiredResponse OnAuthRequired(
48 net::URLRequest* request, 47 net::URLRequest* request,
49 const net::AuthChallengeInfo& auth_info, 48 const net::AuthChallengeInfo& auth_info,
50 const AuthCallback& callback, 49 const AuthCallback& callback,
51 net::AuthCredentials* credentials) override; 50 net::AuthCredentials* credentials) override;
52 bool OnCanGetCookies(const net::URLRequest& request, 51 bool OnCanGetCookies(const net::URLRequest& request,
53 const net::CookieList& cookie_list) override; 52 const net::CookieList& cookie_list) override;
54 bool OnCanSetCookie(const net::URLRequest& request, 53 bool OnCanSetCookie(const net::URLRequest& request,
55 const std::string& cookie_line, 54 const std::string& cookie_line,
56 net::CookieOptions* options) override; 55 net::CookieOptions* options) override;
57 bool OnCanAccessFile(const net::URLRequest& request, 56 bool OnCanAccessFile(const net::URLRequest& request,
58 const base::FilePath& path) const override; 57 const base::FilePath& path) const override;
59 58
60 DISALLOW_COPY_AND_ASSIGN(AwNetworkDelegate); 59 DISALLOW_COPY_AND_ASSIGN(AwNetworkDelegate);
61 }; 60 };
62 61
63 } // namespace android_webview 62 } // namespace android_webview
64 63
65 #endif // ANDROID_WEBVIEW_BROWSER_NET_AW_NETWORK_DELEGATE_H_ 64 #endif // ANDROID_WEBVIEW_BROWSER_NET_AW_NETWORK_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/net/aw_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698