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

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

Issue 2264973002: Adjust callers and networking delegates in extensions/ to modified APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@URLRequestRead
Patch Set: 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 EXTENSIONS_SHELL_BROWSER_SHELL_NETNETWORK_DELEGATE_H_ 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_NETNETWORK_DELEGATE_H_
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_NETNETWORK_DELEGATE_H_ 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_NETNETWORK_DELEGATE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "extensions/browser/info_map.h" 9 #include "extensions/browser/info_map.h"
10 #include "net/base/network_delegate_impl.h" 10 #include "net/base/network_delegate_impl.h"
(...skipping 20 matching lines...) Expand all
31 void OnStartTransaction(net::URLRequest* request, 31 void OnStartTransaction(net::URLRequest* request,
32 const net::HttpRequestHeaders& headers) override; 32 const net::HttpRequestHeaders& headers) override;
33 int OnHeadersReceived( 33 int OnHeadersReceived(
34 net::URLRequest* request, 34 net::URLRequest* request,
35 const net::CompletionCallback& callback, 35 const net::CompletionCallback& callback,
36 const net::HttpResponseHeaders* original_response_headers, 36 const net::HttpResponseHeaders* original_response_headers,
37 scoped_refptr<net::HttpResponseHeaders>* override_response_headers, 37 scoped_refptr<net::HttpResponseHeaders>* override_response_headers,
38 GURL* allowed_unsafe_redirect_url) override; 38 GURL* allowed_unsafe_redirect_url) override;
39 void OnBeforeRedirect(net::URLRequest* request, 39 void OnBeforeRedirect(net::URLRequest* request,
40 const GURL& new_location) override; 40 const GURL& new_location) override;
41 void OnResponseStarted(net::URLRequest* request) override; 41 void OnResponseStarted(net::URLRequest* request, int net_error) override;
42 void OnCompleted(net::URLRequest* request, bool started) override; 42 void OnCompleted(net::URLRequest* request,
43 bool started,
44 int net_error) override;
43 void OnURLRequestDestroyed(net::URLRequest* request) override; 45 void OnURLRequestDestroyed(net::URLRequest* request) override;
44 void OnPACScriptError(int line_number, const base::string16& error) override; 46 void OnPACScriptError(int line_number, const base::string16& error) override;
45 net::NetworkDelegate::AuthRequiredResponse OnAuthRequired( 47 net::NetworkDelegate::AuthRequiredResponse OnAuthRequired(
46 net::URLRequest* request, 48 net::URLRequest* request,
47 const net::AuthChallengeInfo& auth_info, 49 const net::AuthChallengeInfo& auth_info,
48 const AuthCallback& callback, 50 const AuthCallback& callback,
49 net::AuthCredentials* credentials) override; 51 net::AuthCredentials* credentials) override;
50 52
51 void* browser_context_; 53 void* browser_context_;
52 scoped_refptr<extensions::InfoMap> extension_info_map_; 54 scoped_refptr<extensions::InfoMap> extension_info_map_;
53 55
54 DISALLOW_COPY_AND_ASSIGN(ShellNetworkDelegate); 56 DISALLOW_COPY_AND_ASSIGN(ShellNetworkDelegate);
55 }; 57 };
56 58
57 } // namespace extensions 59 } // namespace extensions
58 60
59 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_NETNETWORK_DELEGATE_H_ 61 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_NETNETWORK_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698