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

Side by Side Diff: components/cronet/android/cronet_url_request_context_adapter.h

Issue 1112513003: Put Data Reduction Proxy support in Cronet behind a gyp flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cronet
Patch Set: Addressed comments Created 5 years, 7 months 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 | « components/cronet.gypi ('k') | components/cronet/android/cronet_url_request_context_adapter.cc » ('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 COMPONENTS_CRONET_ANDROID_CRONET_URL_REQUEST_CONTEXT_ADAPTER_H_ 5 #ifndef COMPONENTS_CRONET_ANDROID_CRONET_URL_REQUEST_CONTEXT_ADAPTER_H_
6 #define COMPONENTS_CRONET_ANDROID_CRONET_URL_REQUEST_CONTEXT_ADAPTER_H_ 6 #define COMPONENTS_CRONET_ANDROID_CRONET_URL_REQUEST_CONTEXT_ADAPTER_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include <queue> 10 #include <queue>
(...skipping 12 matching lines...) Expand all
23 23
24 namespace net { 24 namespace net {
25 class WriteToFileNetLogObserver; 25 class WriteToFileNetLogObserver;
26 class URLRequestContext; 26 class URLRequestContext;
27 class ProxyConfigService; 27 class ProxyConfigService;
28 class SdchOwner; 28 class SdchOwner;
29 } // namespace net 29 } // namespace net
30 30
31 namespace cronet { 31 namespace cronet {
32 32
33 #if defined(DATA_REDUCTION_PROXY_SUPPORT)
33 class CronetDataReductionProxy; 34 class CronetDataReductionProxy;
35 #endif
36
34 struct URLRequestContextConfig; 37 struct URLRequestContextConfig;
35 38
36 bool CronetUrlRequestContextAdapterRegisterJni(JNIEnv* env); 39 bool CronetUrlRequestContextAdapterRegisterJni(JNIEnv* env);
37 40
38 // Adapter between Java CronetUrlRequestContext and net::URLRequestContext. 41 // Adapter between Java CronetUrlRequestContext and net::URLRequestContext.
39 class CronetURLRequestContextAdapter { 42 class CronetURLRequestContextAdapter {
40 public: 43 public:
41 explicit CronetURLRequestContextAdapter( 44 explicit CronetURLRequestContextAdapter(
42 scoped_ptr<URLRequestContextConfig> context_config); 45 scoped_ptr<URLRequestContextConfig> context_config);
43 46
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 scoped_ptr<net::ProxyConfigService> proxy_config_service_; 100 scoped_ptr<net::ProxyConfigService> proxy_config_service_;
98 scoped_ptr<net::SdchOwner> sdch_owner_; 101 scoped_ptr<net::SdchOwner> sdch_owner_;
99 102
100 // Context config is only valid untng context is initialized. 103 // Context config is only valid untng context is initialized.
101 scoped_ptr<URLRequestContextConfig> context_config_; 104 scoped_ptr<URLRequestContextConfig> context_config_;
102 105
103 // A queue of tasks that need to be run after context has been initialized. 106 // A queue of tasks that need to be run after context has been initialized.
104 std::queue<base::Closure> tasks_waiting_for_context_; 107 std::queue<base::Closure> tasks_waiting_for_context_;
105 bool is_context_initialized_; 108 bool is_context_initialized_;
106 int default_load_flags_; 109 int default_load_flags_;
110
111 #if defined(DATA_REDUCTION_PROXY_SUPPORT)
107 scoped_ptr<CronetDataReductionProxy> data_reduction_proxy_; 112 scoped_ptr<CronetDataReductionProxy> data_reduction_proxy_;
113 #endif
108 114
109 DISALLOW_COPY_AND_ASSIGN(CronetURLRequestContextAdapter); 115 DISALLOW_COPY_AND_ASSIGN(CronetURLRequestContextAdapter);
110 }; 116 };
111 117
112 } // namespace cronet 118 } // namespace cronet
113 119
114 #endif // COMPONENTS_CRONET_ANDROID_CRONET_URL_REQUEST_CONTEXT_ADAPTER_H_ 120 #endif // COMPONENTS_CRONET_ANDROID_CRONET_URL_REQUEST_CONTEXT_ADAPTER_H_
OLDNEW
« no previous file with comments | « components/cronet.gypi ('k') | components/cronet/android/cronet_url_request_context_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698