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

Unified Diff: content/browser/loader/resource_dispatcher_host_impl.h

Issue 2410333006: Implement ServiceWorkerFetchDispatcher::MaybeStartNavigationPreload(). (Closed)
Patch Set: add comment in sw_fetch_dispatcher.cc and split the media test change to 2427363004 Created 4 years, 2 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
Index: content/browser/loader/resource_dispatcher_host_impl.h
diff --git a/content/browser/loader/resource_dispatcher_host_impl.h b/content/browser/loader/resource_dispatcher_host_impl.h
index 006c5eed43ecf73138ebfab0b6ebe1c6b2ff8739..80c648dcb814a3df0ae8e8a1bb161aee79526dca 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.h
+++ b/content/browser/loader/resource_dispatcher_host_impl.h
@@ -337,6 +337,10 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl
bool is_shutdown() const { return is_shutdown_; }
+ // Creates a new request ID for browser initiated requests. See the comments
+ // of |request_id_| for the details.
+ int MakeRequestID() { return --request_id_; }
mmenke 2016/10/19 14:56:02 Could you make this DCHECK that we're on the IO th
horo 2016/10/19 15:18:53 Done.
+
private:
friend class ResourceDispatcherHostTest;

Powered by Google App Engine
This is Rietveld 408576698