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

Side by Side Diff: components/cronet/ios/Cronet.h

Issue 2760073002: [cronet] Expose API to set experimental options (Closed)
Patch Set: Created 3 years, 9 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #import <Foundation/Foundation.h> 5 #import <Foundation/Foundation.h>
6 6
7 #include "bidirectional_stream_c.h" 7 #include "bidirectional_stream_c.h"
8 8
9 // TODO(mef): Remove this header after transition to bidirectional_stream_c.h 9 // TODO(mef): Remove this header after transition to bidirectional_stream_c.h
10 // See crbug.com/650462 for details. 10 // See crbug.com/650462 for details.
(...skipping 30 matching lines...) Expand all
41 41
42 // Set HTTP Cache type to be used by CronetEngine. This method only has any 42 // Set HTTP Cache type to be used by CronetEngine. This method only has any
43 // effect before |start| is called. See HttpCacheType enum for available 43 // effect before |start| is called. See HttpCacheType enum for available
44 // options. 44 // options.
45 + (void)setHttpCacheType:(CRNHttpCacheType)httpCacheType; 45 + (void)setHttpCacheType:(CRNHttpCacheType)httpCacheType;
46 46
47 // Adds hint that host supports QUIC on altPort. This method only has any effect 47 // Adds hint that host supports QUIC on altPort. This method only has any effect
48 // before |start| is called. 48 // before |start| is called.
49 + (void)addQuicHint:(NSString*)host port:(int)port altPort:(int)altPort; 49 + (void)addQuicHint:(NSString*)host port:(int)port altPort:(int)altPort;
50 50
51 // Set experimental Cronet options. Argument is a JSON string; see
52 // |URLRequestContextConfig| for more details. This method only has
53 // any effect before |start| is called.
54 + (void)setExperimentalOptions:(NSString*)experimentalOptions;
55
51 // Sets the User-Agent request header string to be sent with all requests. 56 // Sets the User-Agent request header string to be sent with all requests.
52 // If |partial| is set to YES, then actual user agent value is based on device 57 // If |partial| is set to YES, then actual user agent value is based on device
53 // model, OS version, and |userAgent| argument. For example "Foo/3.0.0.0" is 58 // model, OS version, and |userAgent| argument. For example "Foo/3.0.0.0" is
54 // sent as "Mozilla/5.0 (iPhone; CPU iPhone OS 9_3 like Mac OS X) 59 // sent as "Mozilla/5.0 (iPhone; CPU iPhone OS 9_3 like Mac OS X)
55 // AppleWebKit/601.1 (KHTML, like Gecko) Foo/3.0.0.0 Mobile/15G31 60 // AppleWebKit/601.1 (KHTML, like Gecko) Foo/3.0.0.0 Mobile/15G31
56 // Safari/601.1.46". 61 // Safari/601.1.46".
57 // If |partial| is set to NO, then |userAgent| value is complete value sent to 62 // If |partial| is set to NO, then |userAgent| value is complete value sent to
58 // the remote. For Example: "Foo/3.0.0.0" is sent as "Foo/3.0.0.0". 63 // the remote. For Example: "Foo/3.0.0.0" is sent as "Foo/3.0.0.0".
59 // 64 //
60 // This method only has any effect before |start| is called. 65 // This method only has any effect before |start| is called.
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 133
129 // Sets Host Resolver Rules for testing. 134 // Sets Host Resolver Rules for testing.
130 // This method must be called after |start| has been called. 135 // This method must be called after |start| has been called.
131 + (void)setHostResolverRulesForTesting:(NSString*)hostResolverRulesForTesting; 136 + (void)setHostResolverRulesForTesting:(NSString*)hostResolverRulesForTesting;
132 137
133 // Enables TestCertVerifier which accepts all certificates for testing. 138 // Enables TestCertVerifier which accepts all certificates for testing.
134 // This method only has any effect before |start| is called. 139 // This method only has any effect before |start| is called.
135 + (void)enableTestCertVerifierForTesting; 140 + (void)enableTestCertVerifierForTesting;
136 141
137 @end 142 @end
OLDNEW
« no previous file with comments | « no previous file | components/cronet/ios/Cronet.mm » ('j') | components/cronet/ios/cronet_environment.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698