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

Side by Side Diff: ios/web/shell/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 2014 The Chromium Authors. All rights reserved. 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 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 IOS_WEB_SHELL_SHELL_NETWORK_DELEGATE_H_ 5 #ifndef IOS_WEB_SHELL_SHELL_NETWORK_DELEGATE_H_
6 #define IOS_WEB_SHELL_SHELL_NETWORK_DELEGATE_H_ 6 #define IOS_WEB_SHELL_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 17 matching lines...) Expand all
28 const net::HttpRequestHeaders& headers) override; 28 const net::HttpRequestHeaders& headers) override;
29 int OnHeadersReceived( 29 int OnHeadersReceived(
30 net::URLRequest* request, 30 net::URLRequest* request,
31 const net::CompletionCallback& callback, 31 const net::CompletionCallback& callback,
32 const net::HttpResponseHeaders* original_response_headers, 32 const net::HttpResponseHeaders* original_response_headers,
33 scoped_refptr<net::HttpResponseHeaders>* override_response_headers, 33 scoped_refptr<net::HttpResponseHeaders>* override_response_headers,
34 GURL* allowed_unsafe_redirect_url) override; 34 GURL* allowed_unsafe_redirect_url) override;
35 void OnBeforeRedirect(net::URLRequest* request, 35 void OnBeforeRedirect(net::URLRequest* request,
36 const GURL& new_location) override; 36 const GURL& new_location) override;
37 void OnResponseStarted(net::URLRequest* request) override; 37 void OnResponseStarted(net::URLRequest* request) override;
38 void OnRawBytesRead(const net::URLRequest& request, int bytes_read) override;
39 void OnCompleted(net::URLRequest* request, bool started) override; 38 void OnCompleted(net::URLRequest* request, bool started) override;
40 void OnURLRequestDestroyed(net::URLRequest* request) override; 39 void OnURLRequestDestroyed(net::URLRequest* request) override;
41 void OnPACScriptError(int line_number, const base::string16& error) override; 40 void OnPACScriptError(int line_number, const base::string16& error) override;
42 AuthRequiredResponse OnAuthRequired( 41 AuthRequiredResponse OnAuthRequired(
43 net::URLRequest* request, 42 net::URLRequest* request,
44 const net::AuthChallengeInfo& auth_info, 43 const net::AuthChallengeInfo& auth_info,
45 const AuthCallback& callback, 44 const AuthCallback& callback,
46 net::AuthCredentials* credentials) override; 45 net::AuthCredentials* credentials) override;
47 bool OnCanGetCookies(const net::URLRequest& request, 46 bool OnCanGetCookies(const net::URLRequest& request,
48 const net::CookieList& cookie_list) override; 47 const net::CookieList& cookie_list) override;
49 bool OnCanSetCookie(const net::URLRequest& request, 48 bool OnCanSetCookie(const net::URLRequest& request,
50 const std::string& cookie_line, 49 const std::string& cookie_line,
51 net::CookieOptions* options) override; 50 net::CookieOptions* options) override;
52 bool OnCanAccessFile(const net::URLRequest& request, 51 bool OnCanAccessFile(const net::URLRequest& request,
53 const base::FilePath& path) const override; 52 const base::FilePath& path) const override;
54 53
55 DISALLOW_COPY_AND_ASSIGN(ShellNetworkDelegate); 54 DISALLOW_COPY_AND_ASSIGN(ShellNetworkDelegate);
56 }; 55 };
57 56
58 } // namespace web 57 } // namespace web
59 58
60 #endif // IOS_WEB_SHELL_SHELL_NETWORK_DELEGATE_H_ 59 #endif // IOS_WEB_SHELL_SHELL_NETWORK_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/shell/browser/shell_network_delegate.cc ('k') | ios/web/shell/shell_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698