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

Side by Side Diff: chrome/browser/net/chrome_extensions_network_delegate.h

Issue 734263003: Move data reduction proxy logic out of chrome and android webview network delegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test fix Created 6 years 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
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | chrome/browser/net/chrome_network_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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_
OLDNEW
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | chrome/browser/net/chrome_network_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698