| 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/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "net/base/network_delegate.h" | 11 #include "net/base/network_delegate_impl.h" |
| 12 | 12 |
| 13 namespace extensions { | 13 namespace extensions { |
| 14 class EventRouterForwarder; | 14 class EventRouterForwarder; |
| 15 class InfoMap; | 15 class InfoMap; |
| 16 } | 16 } |
| 17 | 17 |
| 18 // ChromeExtensionsNetworkDelegate is the extensions-only portion of | 18 // ChromeExtensionsNetworkDelegate is the extensions-only portion of |
| 19 // ChromeNetworkDelegate. When extensions are disabled, do nothing. | 19 // ChromeNetworkDelegate. When extensions are disabled, do nothing. |
| 20 class ChromeExtensionsNetworkDelegate : public net::NetworkDelegate { | 20 class ChromeExtensionsNetworkDelegate : public net::NetworkDelegateImpl { |
| 21 public: | 21 public: |
| 22 static ChromeExtensionsNetworkDelegate* Create( | 22 static ChromeExtensionsNetworkDelegate* Create( |
| 23 extensions::EventRouterForwarder* event_router); | 23 extensions::EventRouterForwarder* event_router); |
| 24 | 24 |
| 25 ~ChromeExtensionsNetworkDelegate() override; | 25 ~ChromeExtensionsNetworkDelegate() override; |
| 26 | 26 |
| 27 // Not inlined because we assign a scoped_refptr, which requires us to include | 27 // Not inlined because we assign a scoped_refptr, which requires us to include |
| 28 // the header file. | 28 // the header file. |
| 29 void set_extension_info_map(extensions::InfoMap* extension_info_map); | 29 void set_extension_info_map(extensions::InfoMap* extension_info_map); |
| 30 | 30 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 void* profile_; | 76 void* profile_; |
| 77 | 77 |
| 78 #if defined(ENABLE_EXTENSIONS) | 78 #if defined(ENABLE_EXTENSIONS) |
| 79 scoped_refptr<extensions::InfoMap> extension_info_map_; | 79 scoped_refptr<extensions::InfoMap> extension_info_map_; |
| 80 #endif | 80 #endif |
| 81 | 81 |
| 82 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsNetworkDelegate); | 82 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsNetworkDelegate); |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 #endif // CHROME_BROWSER_NET_CHROME_EXTENSIONS_NETWORK_DELEGATE_H_ | 85 #endif // CHROME_BROWSER_NET_CHROME_EXTENSIONS_NETWORK_DELEGATE_H_ |
| OLD | NEW |