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_NETWORK_DELEGATE_H_ | 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_NETWORK_DELEGATE_H_ |
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_NETWORK_DELEGATE_H_ | 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_NETWORK_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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 void OnCompleted(net::URLRequest* request, | 42 void OnCompleted(net::URLRequest* request, |
43 bool started, | 43 bool started, |
44 int net_error) override; | 44 int net_error) override; |
45 void OnURLRequestDestroyed(net::URLRequest* request) override; | 45 void OnURLRequestDestroyed(net::URLRequest* request) override; |
46 void OnPACScriptError(int line_number, const base::string16& error) override; | 46 void OnPACScriptError(int line_number, const base::string16& error) override; |
47 net::NetworkDelegate::AuthRequiredResponse OnAuthRequired( | 47 net::NetworkDelegate::AuthRequiredResponse OnAuthRequired( |
48 net::URLRequest* request, | 48 net::URLRequest* request, |
49 const net::AuthChallengeInfo& auth_info, | 49 const net::AuthChallengeInfo& auth_info, |
50 const AuthCallback& callback, | 50 const AuthCallback& callback, |
51 net::AuthCredentials* credentials) override; | 51 net::AuthCredentials* credentials) override; |
| 52 bool OnCanAccessFile(const net::URLRequest& request, |
| 53 const base::FilePath& original_path, |
| 54 const base::FilePath& absolute_path) const override; |
52 | 55 |
53 void* browser_context_; | 56 void* browser_context_; |
54 scoped_refptr<extensions::InfoMap> extension_info_map_; | 57 scoped_refptr<extensions::InfoMap> extension_info_map_; |
55 | 58 |
56 DISALLOW_COPY_AND_ASSIGN(ShellNetworkDelegate); | 59 DISALLOW_COPY_AND_ASSIGN(ShellNetworkDelegate); |
57 }; | 60 }; |
58 | 61 |
59 } // namespace extensions | 62 } // namespace extensions |
60 | 63 |
61 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_NETWORK_DELEGATE_H_ | 64 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_NETWORK_DELEGATE_H_ |
OLD | NEW |