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

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

Issue 2465303002: [cronet] make startNetLogToFile write to correct file (Closed)
Patch Set: Sync Created 4 years 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 | « no previous file | components/cronet/ios/Cronet.mm » ('j') | components/cronet/ios/Cronet.mm » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // This method must be called after |start|. 68 // This method must be called after |start|.
69 + (void)unregisterHttpProtocolHandler; 69 + (void)unregisterHttpProtocolHandler;
70 70
71 // Installs Cronet into NSURLSessionConfiguration so that all 71 // Installs Cronet into NSURLSessionConfiguration so that all
72 // NSURLSessions created with this configuration will use the Cronet stack. 72 // NSURLSessions created with this configuration will use the Cronet stack.
73 // Note that all Cronet settings are global and are shared between 73 // Note that all Cronet settings are global and are shared between
74 // all NSURLSessions & NSURLConnections that use the Cronet stack. 74 // all NSURLSessions & NSURLConnections that use the Cronet stack.
75 // This method must be called after |start|. 75 // This method must be called after |start|.
76 + (void)installIntoSessionConfiguration:(NSURLSessionConfiguration*)config; 76 + (void)installIntoSessionConfiguration:(NSURLSessionConfiguration*)config;
77 77
78 // Starts net-internals logging to a file named |fileName| in the application 78 // Returns the absolute path that startNetLogToFile:fileName will actually
79 // temporary directory. |fileName| must not be empty. Log level is determined 79 // write to.
80 // by |logBytes| - if YES then LOG_ALL otherwise LOG_ALL_BUT_BYTES. If the file 80 + (NSString*)netLogPath:(NSString*)fileName;
mef 2016/12/09 18:30:40 maybe call it 'getNetLogPathForFile:'
lilyhoughton 2016/12/09 19:42:50 Done.
81 // exists it is truncated before starting. If actively logging the call is 81
82 // ignored. 82 // Starts net-internals logging to a file named |fileName|. Where fileName is
83 + (void)startNetLogToFile:(NSString*)fileName logBytes:(BOOL)logBytes; 83 // relative to the application documents directory. |fileName| must not be
84 // empty. Log level is determined by |logBytes| - if YES then LOG_ALL otherwise
85 // LOG_ALL_BUT_BYTES. If the file exists it is truncated before starting. If
86 // actively logging the call is ignored.
87 + (BOOL)startNetLogToFile:(NSString*)fileName logBytes:(BOOL)logBytes;
84 88
85 // Stop net-internals logging and flush file to disk. If a logging session is 89 // Stop net-internals logging and flush file to disk. If a logging session is
86 // not in progress this call is ignored. 90 // not in progress this call is ignored.
87 + (void)stopNetLog; 91 + (void)stopNetLog;
88 92
89 // Returns the full user-agent that the stack uses. 93 // Returns the full user-agent that the stack uses.
90 // This is the exact string servers will see. 94 // This is the exact string servers will see.
91 + (NSString*)getUserAgent; 95 + (NSString*)getUserAgent;
92 96
93 // Get a pointer to global instance of cronet_engine for GRPC C API. 97 // Get a pointer to global instance of cronet_engine for GRPC C API.
(...skipping 10 matching lines...) Expand all
104 108
105 // Sets Host Resolver Rules for testing. 109 // Sets Host Resolver Rules for testing.
106 // This method must be called after |start| has been called. 110 // This method must be called after |start| has been called.
107 + (void)setHostResolverRulesForTesting:(NSString*)hostResolverRulesForTesting; 111 + (void)setHostResolverRulesForTesting:(NSString*)hostResolverRulesForTesting;
108 112
109 // Enables TestCertVerifier which accepts all certificates for testing. 113 // Enables TestCertVerifier which accepts all certificates for testing.
110 // This method only has any effect before |start| is called. 114 // This method only has any effect before |start| is called.
111 + (void)enableTestCertVerifierForTesting; 115 + (void)enableTestCertVerifierForTesting;
112 116
113 @end 117 @end
OLDNEW
« no previous file with comments | « no previous file | components/cronet/ios/Cronet.mm » ('j') | components/cronet/ios/Cronet.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698