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

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
« no previous file with comments | « content/browser/loader/DEPS ('k') | content/browser/loader/resource_dispatcher_host_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..d92e668dc46947f15997e03ff9bc368b8597224d
--- /dev/null
+++ b/content/browser/loader/loader_delegate.h
@@ -0,0 +1,39 @@
+// 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 "net/base/load_states.h"
+
+class GURL;
+
+namespace content {
+
+// Delegate from loader to the rest of content. Lives on the IO thread.
+//
+// This is used for breaking dependencies between content at-large and
+// content/browser/loader which will eventually be moved to a separate
+// networking service. All methods in this interface should be asynchronous,
+// since eventually this will be a Mojo interface. See https://crbug.com/622050
+// and https://crbug.com/598073.
+class LoaderDelegate {
+ public:
+ virtual ~LoaderDelegate() {}
+
+ // Notification that the load state for the route identified by child_id and
+ // route_id has changed.
+ virtual void LoadStateChanged(int child_id,
+ int route_id,
+ 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_
« no previous file with comments | « content/browser/loader/DEPS ('k') | content/browser/loader/resource_dispatcher_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698