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

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

Issue 1858483002: Cronet for iOS with C API for GRPC support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@small
Patch Set: Make cronet_environment a cc. Created 4 years, 8 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #import <Foundation/Foundation.h>
6
7 #include "cronet_c_for_grpc.h"
8
9 // Interface for installing CronetEngine.
10 @interface CronetEngine : NSObject
kapishnikov 2016/04/06 17:33:25 Should we consider making all CronetEngine methods
mef 2016/04/08 15:13:01 Yes. For the purpose of this CL I kept it close to
11
12 // Sets whether HTTP/2 should be supported by CronetEngine. This method only has
13 // any effect before |install| is called.
14 + (void)setHttp2Enabled:(BOOL)http2Enabled;
15
16 // Sets whether QUIC should be supported by CronetEngine. This method only has
17 // any effect before |install| is called.
18 + (void)setQuicEnabled:(BOOL)quicEnabled;
19
20 // |userAgent| is expected to be of the form Product/Version.
21 // Example: Foo/3.0.0.0
22 //
23 // This method only has any effect before |install| is called.
24 + (void)setPartialUserAgent:(NSString*)userAgent;
25
26 // Sets SSLKEYLogFileName to export SSL key for Wireshark decryption of packet
27 // captures. This method only has any effect before |install| is called.
28 + (void)setSslKeyLogFileName:(NSString*)sslKeyLogFileName;
29
30 // Installs CronetEngine.
31 + (void)install;
kapishnikov 2016/04/06 17:33:25 In CrNet we use install() method to install NSUrlC
mef 2016/04/08 15:13:01 Done.
32
33 // Starts net-internals logging to a file named |fileName| in the application
34 // temporary directory. |fileName| must not be empty. Log level is determined
35 // by |logBytes| - if YES then LOG_ALL otherwise LOG_ALL_BUT_BYTES. If the file
36 // exists it is truncated before starting. If actively logging the call is
37 // ignored.
38 + (void)startNetLogToFile:(NSString*)fileName logBytes:(BOOL)logBytes;
39
40 // Stop net-internals logging and flush file to disk. If a logging session is
41 // not in progress this call is ignored.
42 + (void)stopNetLog;
43
44 // Returns the full user-agent that the stack uses.
45 // This is the exact string servers will see.
46 + (NSString*)userAgent;
kapishnikov 2016/04/06 17:33:25 This can be an Objective C property. Otherwise, I
mef 2016/04/08 15:13:01 Done.
47
48 // Get a pointer to global instance of cronet_engine for GRPC C API.
49 + (cronet_engine*)getGlobalEngine;
50
51 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698