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 CHROME_BROWSER_NET_CHROME_EXTENSIONS_NETWORK_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_NET_CHROME_EXTENSIONS_NETWORK_DELEGATE_H_ |
6 #define CHROME_BROWSER_NET_CHROME_EXTENSIONS_NETWORK_DELEGATE_H_ | 6 #define CHROME_BROWSER_NET_CHROME_EXTENSIONS_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 "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "extensions/features/features.h" |
11 #include "net/base/network_delegate_impl.h" | 12 #include "net/base/network_delegate_impl.h" |
12 | 13 |
13 namespace extensions { | 14 namespace extensions { |
14 class EventRouterForwarder; | 15 class EventRouterForwarder; |
15 class InfoMap; | 16 class InfoMap; |
16 } | 17 } |
17 | 18 |
18 // ChromeExtensionsNetworkDelegate is the extensions-only portion of | 19 // ChromeExtensionsNetworkDelegate is the extensions-only portion of |
19 // ChromeNetworkDelegate. When extensions are disabled, do nothing. | 20 // ChromeNetworkDelegate. When extensions are disabled, do nothing. |
20 class ChromeExtensionsNetworkDelegate : public net::NetworkDelegateImpl { | 21 class ChromeExtensionsNetworkDelegate : public net::NetworkDelegateImpl { |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 net::URLRequest* request, | 71 net::URLRequest* request, |
71 const net::AuthChallengeInfo& auth_info, | 72 const net::AuthChallengeInfo& auth_info, |
72 const AuthCallback& callback, | 73 const AuthCallback& callback, |
73 net::AuthCredentials* credentials) override; | 74 net::AuthCredentials* credentials) override; |
74 | 75 |
75 protected: | 76 protected: |
76 ChromeExtensionsNetworkDelegate(); | 77 ChromeExtensionsNetworkDelegate(); |
77 | 78 |
78 void* profile_; | 79 void* profile_; |
79 | 80 |
80 #if defined(ENABLE_EXTENSIONS) | 81 #if BUILDFLAG(ENABLE_EXTENSIONS) |
81 scoped_refptr<extensions::InfoMap> extension_info_map_; | 82 scoped_refptr<extensions::InfoMap> extension_info_map_; |
82 #endif | 83 #endif |
83 | 84 |
84 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsNetworkDelegate); | 85 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsNetworkDelegate); |
85 }; | 86 }; |
86 | 87 |
87 #endif // CHROME_BROWSER_NET_CHROME_EXTENSIONS_NETWORK_DELEGATE_H_ | 88 #endif // CHROME_BROWSER_NET_CHROME_EXTENSIONS_NETWORK_DELEGATE_H_ |
OLD | NEW |