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

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

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

Powered by Google App Engine
This is Rietveld 408576698