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

Side by Side Diff: ios/web/shell/shell_network_delegate.h

Issue 2262063002: Adjust callers and networking delegates in ios/ to modified APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@URLRequestRead
Patch Set: typo Created 4 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/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "net/base/network_delegate_impl.h" 10 #include "net/base/network_delegate_impl.h"
(...skipping 16 matching lines...) Expand all
27 void OnStartTransaction(net::URLRequest* request, 27 void OnStartTransaction(net::URLRequest* request,
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, int net_error) override;
38 void OnCompleted(net::URLRequest* request, bool started) override; 38 void OnCompleted(net::URLRequest* request,
39 bool started,
40 int net_error) override;
39 void OnURLRequestDestroyed(net::URLRequest* request) override; 41 void OnURLRequestDestroyed(net::URLRequest* request) override;
40 void OnPACScriptError(int line_number, const base::string16& error) override; 42 void OnPACScriptError(int line_number, const base::string16& error) override;
41 AuthRequiredResponse OnAuthRequired( 43 AuthRequiredResponse OnAuthRequired(
42 net::URLRequest* request, 44 net::URLRequest* request,
43 const net::AuthChallengeInfo& auth_info, 45 const net::AuthChallengeInfo& auth_info,
44 const AuthCallback& callback, 46 const AuthCallback& callback,
45 net::AuthCredentials* credentials) override; 47 net::AuthCredentials* credentials) override;
46 bool OnCanGetCookies(const net::URLRequest& request, 48 bool OnCanGetCookies(const net::URLRequest& request,
47 const net::CookieList& cookie_list) override; 49 const net::CookieList& cookie_list) override;
48 bool OnCanSetCookie(const net::URLRequest& request, 50 bool OnCanSetCookie(const net::URLRequest& request,
49 const std::string& cookie_line, 51 const std::string& cookie_line,
50 net::CookieOptions* options) override; 52 net::CookieOptions* options) override;
51 bool OnCanAccessFile(const net::URLRequest& request, 53 bool OnCanAccessFile(const net::URLRequest& request,
52 const base::FilePath& path) const override; 54 const base::FilePath& path) const override;
53 55
54 DISALLOW_COPY_AND_ASSIGN(ShellNetworkDelegate); 56 DISALLOW_COPY_AND_ASSIGN(ShellNetworkDelegate);
55 }; 57 };
56 58
57 } // namespace web 59 } // namespace web
58 60
59 #endif // IOS_WEB_SHELL_SHELL_NETWORK_DELEGATE_H_ 61 #endif // IOS_WEB_SHELL_SHELL_NETWORK_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698