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

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

Issue 2098923002: Remove dependency of ResourceDispatcherHostImpl on RenderViewHostImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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 | « content/browser/loader/loader_delegate.h ('k') | content/browser/loader/resource_dispatcher_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d147a2824fa6046c08163b26f2a0269dc666aa8b..646fc2a3d940b313a2df00e41eee4180844df300 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.h
+++ b/content/browser/loader/resource_dispatcher_host_impl.h
@@ -60,6 +60,7 @@ class AppCacheService;
class AsyncRevalidationManager;
class CertStore;
class FrameTree;
+class LoaderDelegate;
class NavigationURLLoaderImplCore;
class RenderFrameHostImpl;
class ResourceContext;
@@ -306,6 +307,8 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl
// or experiment status. For unit tests only.
void EnableStaleWhileRevalidateForTesting();
+ void SetLoaderDelegate(LoaderDelegate* loader_delegate);
+
private:
friend class LoaderIOThreadNotifier;
friend class ResourceDispatcherHostTest;
@@ -438,10 +441,6 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl
// waiting for a host name to resolve implies being stuck.
static bool LoadInfoIsMoreInteresting(const LoadInfo& a, const LoadInfo& b);
- // Used to marshal calls to LoadStateChanged from the IO to UI threads. All
- // are done as a single callback to avoid spamming the UI thread.
- static void UpdateLoadInfoOnUIThread(std::unique_ptr<LoadInfoMap> info_map);
-
// Gets the most interesting LoadInfo for each GlobalRoutingID.
std::unique_ptr<LoadInfoMap> GetLoadInfoForAllRoutes();
@@ -633,6 +632,8 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl
ResourceDispatcherHostDelegate* delegate_;
+ LoaderDelegate* loader_delegate_;
+
bool allow_cross_origin_auth_prompt_;
// AsyncRevalidationManager is non-NULL if and only if
« no previous file with comments | « content/browser/loader/loader_delegate.h ('k') | content/browser/loader/resource_dispatcher_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698