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

Unified Diff: content/browser/loader/loader_delegate.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
Index: content/browser/loader/loader_delegate.h
diff --git a/content/browser/loader/loader_delegate.h b/content/browser/loader/loader_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..c76de48f254821a6175895eeb05f899cc9bf6b04
--- /dev/null
+++ b/content/browser/loader/loader_delegate.h
@@ -0,0 +1,31 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_BROWSER_LOADER_LOADER_DELEGATE_H_
+#define CONTENT_BROWSER_LOADER_LOADER_DELEGATE_H_
+
+#include <inttypes.h>
+
+#include "content/browser/loader/global_routing_id.h"
jam 2016/06/28 16:23:49 nit: how about just sending child_id and route_id
scottmg 2016/06/28 18:33:38 Done.
+#include "net/base/load_states.h"
+
+class GURL;
+
+namespace content {
+
+// Delegate from loader to the rest of content. Lives on the IO thread.
jam 2016/06/28 16:23:49 nit: to help others understand how this differs fr
scottmg 2016/06/28 18:33:38 Done.
+class LoaderDelegate {
+ public:
+ virtual ~LoaderDelegate() {}
+
+ virtual void LoadStateChanged(const GlobalRoutingID& routing_id,
jam 2016/06/28 16:23:49 nit: please document
scottmg 2016/06/28 18:33:38 Done.
+ const GURL& url,
+ const net::LoadStateWithParam& load_state,
+ uint64_t upload_position,
+ uint64_t upload_size) = 0;
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_LOADER_LOADER_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698