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

Side by Side Diff: extensions/shell/browser/shell_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 | « content/shell/browser/shell_network_delegate.h ('k') | net/base/layered_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 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 "extensions/browser/info_map.h" 8 #include "extensions/browser/info_map.h"
9 #include "net/base/network_delegate.h" 9 #include "net/base/network_delegate_impl.h"
10 10
11 namespace extensions { 11 namespace extensions {
12 12
13 class InfoMap; 13 class InfoMap;
14 14
15 class ShellNetworkDelegate : public net::NetworkDelegate { 15 class ShellNetworkDelegate : public net::NetworkDelegateImpl {
16 public: 16 public:
17 ShellNetworkDelegate(void* browser_context, InfoMap* extension_info_map); 17 ShellNetworkDelegate(void* browser_context, InfoMap* extension_info_map);
18 ~ShellNetworkDelegate() override; 18 ~ShellNetworkDelegate() override;
19 19
20 static void SetAcceptAllCookies(bool accept); 20 static void SetAcceptAllCookies(bool accept);
21 21
22 private: 22 private:
23 // NetworkDelegate implementation. 23 // NetworkDelegate implementation.
24 int OnBeforeURLRequest(net::URLRequest* request, 24 int OnBeforeURLRequest(net::URLRequest* request,
25 const net::CompletionCallback& callback, 25 const net::CompletionCallback& callback,
(...skipping 23 matching lines...) Expand all
49 49
50 void* browser_context_; 50 void* browser_context_;
51 scoped_refptr<extensions::InfoMap> extension_info_map_; 51 scoped_refptr<extensions::InfoMap> extension_info_map_;
52 52
53 DISALLOW_COPY_AND_ASSIGN(ShellNetworkDelegate); 53 DISALLOW_COPY_AND_ASSIGN(ShellNetworkDelegate);
54 }; 54 };
55 55
56 } // namespace extensions 56 } // namespace extensions
57 57
58 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_NETNETWORK_DELEGATE_H_ 58 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_NETNETWORK_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/shell/browser/shell_network_delegate.h ('k') | net/base/layered_network_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698