Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 "cronet_c_for_grpc.h" | 7 #include "cronet_c_for_grpc.h" |
| 8 | 8 |
| 9 // A block, that takes a request, and returns YES if the request should | 9 // A block, that takes a request, and returns YES if the request should |
| 10 // be handled. | 10 // be handled. |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 66 // This method must be called after |start|. | 66 // This method must be called after |start|. |
| 67 + (void)unregisterHttpProtocolHandler; | 67 + (void)unregisterHttpProtocolHandler; |
| 68 | 68 |
| 69 // Installs Cronet into NSURLSessionConfiguration so that all | 69 // Installs Cronet into NSURLSessionConfiguration so that all |
| 70 // NSURLSessions created with this configuration will use the Cronet stack. | 70 // NSURLSessions created with this configuration will use the Cronet stack. |
| 71 // Note that all Cronet settings are global and are shared between | 71 // Note that all Cronet settings are global and are shared between |
| 72 // all NSURLSessions & NSURLConnections that use the Cronet stack. | 72 // all NSURLSessions & NSURLConnections that use the Cronet stack. |
| 73 // This method must be called after |start|. | 73 // This method must be called after |start|. |
| 74 + (void)installIntoSessionConfiguration:(NSURLSessionConfiguration*)config; | 74 + (void)installIntoSessionConfiguration:(NSURLSessionConfiguration*)config; |
| 75 | 75 |
| 76 // Starts net-internals logging to a file named |fileName| in the application | 76 // Starts net-internals logging to a file named |fileName|. If |fileName| is |
| 77 // temporary directory. |fileName| must not be empty. Log level is determined | 77 // relative, it puts it in the application home directory. |fileName| must not |
|
kapishnikov
2016/11/18 22:17:27
Usually iOS documentation refers to 'documents' an
lilyhoughton
2016/11/22 20:48:42
Done.
| |
| 78 // by |logBytes| - if YES then LOG_ALL otherwise LOG_ALL_BUT_BYTES. If the file | 78 // be empty. Log level is determined by |logBytes| - if YES then LOG_ALL |
| 79 // exists it is truncated before starting. If actively logging the call is | 79 // otherwise LOG_ALL_BUT_BYTES. If the file exists it is truncated before |
|
kapishnikov
2016/11/18 22:17:27
It is not clear what LOG_ALL_BUT_BYTES mean here.
lilyhoughton
2016/11/22 20:48:42
It doesn't appear to refer to a constant used by t
| |
| 80 // ignored. | 80 // starting. If actively logging the call is ignored. |
| 81 + (void)startNetLogToFile:(NSString*)fileName logBytes:(BOOL)logBytes; | 81 + (BOOL)startNetLogToFile:(NSString*)fileName logBytes:(BOOL)logBytes; |
| 82 | 82 |
| 83 // Stop net-internals logging and flush file to disk. If a logging session is | 83 // Stop net-internals logging and flush file to disk. If a logging session is |
| 84 // not in progress this call is ignored. | 84 // not in progress this call is ignored. |
| 85 + (void)stopNetLog; | 85 + (void)stopNetLog; |
| 86 | 86 |
| 87 // Returns the full user-agent that the stack uses. | 87 // Returns the full user-agent that the stack uses. |
| 88 // This is the exact string servers will see. | 88 // This is the exact string servers will see. |
| 89 + (NSString*)getUserAgent; | 89 + (NSString*)getUserAgent; |
| 90 | 90 |
| 91 // Get a pointer to global instance of cronet_engine for GRPC C API. | 91 // Get a pointer to global instance of cronet_engine for GRPC C API. |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 102 | 102 |
| 103 // Sets Host Resolver Rules for testing. | 103 // Sets Host Resolver Rules for testing. |
| 104 // This method only has any effect before |start| is called. | 104 // This method only has any effect before |start| is called. |
| 105 + (void)setHostResolverRulesForTesting:(NSString*)hostResolverRulesForTesting; | 105 + (void)setHostResolverRulesForTesting:(NSString*)hostResolverRulesForTesting; |
| 106 | 106 |
| 107 // Enables TestCertVerifier which accepts all certificates for testing. | 107 // Enables TestCertVerifier which accepts all certificates for testing. |
| 108 // This method only has any effect before |start| is called. | 108 // This method only has any effect before |start| is called. |
| 109 + (void)enableTestCertVerifierForTesting; | 109 + (void)enableTestCertVerifierForTesting; |
| 110 | 110 |
| 111 @end | 111 @end |
| OLD | NEW |