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

Unified Diff: ios/net/crn_http_protocol_handler_proxy.h

Issue 1142383006: CrNet: add pauseable NSURLProtocol and switch to using it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: main.m -> main.mm & format Created 5 years, 6 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 | « ios/net/crn_http_protocol_handler.mm ('k') | ios/net/crn_http_protocol_handler_proxy_with_client_thread.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/net/crn_http_protocol_handler_proxy.h
diff --git a/ios/net/crn_http_protocol_handler_proxy.h b/ios/net/crn_http_protocol_handler_proxy.h
index 898db4ad448c1a170a70008273f9b85cbdd96e34..bd3a2ea23090cfeddcf11d13a35c49f4ad242aed 100644
--- a/ios/net/crn_http_protocol_handler_proxy.h
+++ b/ios/net/crn_http_protocol_handler_proxy.h
@@ -13,11 +13,19 @@
// NSURLProtocol and its client.
@protocol CRNHTTPProtocolHandlerProxy<CRNNetworkClientProtocol>
+// All of the methods defined below must be called on the client thread. Methods
+// defined by |CRNNetworkClientProtocol| can be called on any thread.
+
// Invalidates any reference to the protocol handler: the handler will never
// be called after this.
-// Called from the client thread.
- (void)invalidate;
+// Pauses notifications from this protocol handler.
+- (void)pause;
+
+// Resumes notifications from this protocol handler.
+- (void)resume;
+
@end
#endif // IOS_NET_CRN_HTTP_PROTOCOL_HANDLER_PROXY_H_
« no previous file with comments | « ios/net/crn_http_protocol_handler.mm ('k') | ios/net/crn_http_protocol_handler_proxy_with_client_thread.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698