OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |