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

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

Issue 2406273002: [Cronet] Test the libcronet that's shipped, not libcronet_test (Closed)
Patch Set: fix perf test Created 4 years, 2 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
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 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 const base::android::JavaParamRef<jobject>& jcaller); 71 const base::android::JavaParamRef<jobject>& jcaller);
72 72
73 // Posts a task that might depend on the context being initialized 73 // Posts a task that might depend on the context being initialized
74 // to the network thread. 74 // to the network thread.
75 void PostTaskToNetworkThread(const tracked_objects::Location& posted_from, 75 void PostTaskToNetworkThread(const tracked_objects::Location& posted_from,
76 const base::Closure& callback); 76 const base::Closure& callback);
77 77
78 bool IsOnNetworkThread() const; 78 bool IsOnNetworkThread() const;
79 79
80 net::URLRequestContext* GetURLRequestContext(); 80 net::URLRequestContext* GetURLRequestContext();
81 jlong GetUrlRequestContextForTesting(
82 JNIEnv* env,
83 const base::android::JavaParamRef<jobject>& jcaller);
81 84
82 // Starts NetLog logging to file. This can be called on any thread. Returns 85 // Starts NetLog logging to file. This can be called on any thread. Returns
83 // false if it fails to open log file. 86 // false if it fails to open log file.
84 bool StartNetLogToFile(JNIEnv* env, 87 bool StartNetLogToFile(JNIEnv* env,
85 const base::android::JavaParamRef<jobject>& jcaller, 88 const base::android::JavaParamRef<jobject>& jcaller,
86 const base::android::JavaParamRef<jstring>& jfile_name, 89 const base::android::JavaParamRef<jstring>& jfile_name,
87 jboolean jlog_all); 90 jboolean jlog_all);
88 91
89 // Starts NetLog logging to disk with a bounded amount of disk space. This 92 // Starts NetLog logging to disk with a bounded amount of disk space. This
90 // can be called on any thread. 93 // can be called on any thread.
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 #if defined(DATA_REDUCTION_PROXY_SUPPORT) 240 #if defined(DATA_REDUCTION_PROXY_SUPPORT)
238 std::unique_ptr<CronetDataReductionProxy> data_reduction_proxy_; 241 std::unique_ptr<CronetDataReductionProxy> data_reduction_proxy_;
239 #endif 242 #endif
240 243
241 DISALLOW_COPY_AND_ASSIGN(CronetURLRequestContextAdapter); 244 DISALLOW_COPY_AND_ASSIGN(CronetURLRequestContextAdapter);
242 }; 245 };
243 246
244 } // namespace cronet 247 } // namespace cronet
245 248
246 #endif // COMPONENTS_CRONET_ANDROID_CRONET_URL_REQUEST_CONTEXT_ADAPTER_H_ 249 #endif // COMPONENTS_CRONET_ANDROID_CRONET_URL_REQUEST_CONTEXT_ADAPTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698