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

Unified Diff: content/browser/content_resource_dispatcher_host.h

Issue 1960743002: Remove dependency of AsyncResourceLoader on content/browser/host_zoom_map_impl.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@devtoolsnetlog-loader
Patch Set: missed override Created 4 years, 7 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/browser_main_loop.cc ('k') | content/browser/content_resource_dispatcher_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/content_resource_dispatcher_host.h
diff --git a/content/browser/content_resource_dispatcher_host.h b/content/browser/content_resource_dispatcher_host.h
new file mode 100644
index 0000000000000000000000000000000000000000..039bfd8c8b7df188b67032dc26d164340d1914e3
--- /dev/null
+++ b/content/browser/content_resource_dispatcher_host.h
@@ -0,0 +1,41 @@
+// 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_CONTENT_RESOURCE_DISPATCHER_HOST_H_
+#define CONTENT_BROWSER_CONTENT_RESOURCE_DISPATCHER_HOST_H_
+
+#include "base/macros.h"
+#include "content/browser/content_resource_dispatcher_host_delegate.h"
+#include "content/public/browser/resource_dispatcher_host.h"
+
+namespace content {
+
+class ResourceDispatcherHostImpl;
+
+// Wrapper around ResourceDispatcherHostImpl that wraps a
+// ContentResourceDispatcherHostDelegate around the
+// ResourceDispatcherHostDelegate supplied by the content client.
+class ContentResourceDispatcherHost : public ResourceDispatcherHost {
+ public:
+ ContentResourceDispatcherHost();
+ ~ContentResourceDispatcherHost() override;
+
+ void SetChild(ResourceDispatcherHostImpl* child);
+
+ // ResourceDispatcherHost:
+ void SetDelegate(ResourceDispatcherHostDelegate* delegate) override;
+ void SetAllowCrossOriginAuthPrompt(bool value) override;
+ void ClearLoginDelegateForRequest(net::URLRequest* request) override;
+
+ private:
+ ResourceDispatcherHostImpl* child_;
+ std::unique_ptr<ContentResourceDispatcherHostDelegate>
+ content_resource_dispatcher_host_delegate_;
+
+ DISALLOW_COPY_AND_ASSIGN(ContentResourceDispatcherHost);
+};
+
+} // content
+
+#endif // CONTENT_BROWSER_CONTENT_RESOURCE_DISPATCHER_HOST_H_
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/browser/content_resource_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698