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

Unified Diff: ios/crnet/CrNet.h

Issue 2206283003: [Cronet] Add CrNet.setUserAgent method on iOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@crnetgn
Patch Set: Sync Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ios/crnet/CrNet.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/crnet/CrNet.h
diff --git a/ios/crnet/CrNet.h b/ios/crnet/CrNet.h
index 0be9b7769e0e9db2f12176e64cadb09e68e807a1..43c8f08fbc9caa5f28d900369c67371b4110a184 100644
--- a/ios/crnet/CrNet.h
+++ b/ios/crnet/CrNet.h
@@ -42,6 +42,12 @@ __attribute__((visibility("default")))
// This method only has any effect before |install| is called.
+ (void)setPartialUserAgent:(NSString *)userAgent;
+// |userAgent| is expected to be the complete user agent value sent to remote.
+// Example: Foo/3.0.0.0
droger 2016/08/31 08:52:23 This is the same example as setPartialUserAgent ab
mef 2016/08/31 14:49:57 Great suggestion! Done.
+//
+// This method only has any effect before |install| is called.
++ (void)setUserAgent:(NSString*)userAgent;
+
// Set the block used to determine whether or not CrNet should handle the
// request. If this is not set, CrNet will handle all requests.
// Must not be called while requests are in progress. This method can be called
« no previous file with comments | « no previous file | ios/crnet/CrNet.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698