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

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

Issue 1970693002: Use mojo for Chrome Loading, Part 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 4 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/url_loader_factory_holder.h
diff --git a/content/browser/loader/url_loader_factory_holder.h b/content/browser/loader/url_loader_factory_holder.h
new file mode 100644
index 0000000000000000000000000000000000000000..ef4b915898f96264fe841ccc636b8b9ccde67822
--- /dev/null
+++ b/content/browser/loader/url_loader_factory_holder.h
@@ -0,0 +1,43 @@
+// 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_URL_LOADER_FACTORY_HOLDER_H_
+#define CONTENT_BROWSER_LOADER_URL_LOADER_FACTORY_HOLDER_H_
+
+#include <memory>
+
+#include "base/macros.h"
+#include "base/memory/ref_counted.h"
+#include "content/common/content_export.h"
+#include "mojo/public/cpp/bindings/interface_request.h"
+
+namespace content {
+
+class ResourceMessageFilter;
+
+namespace mojom {
+class URLLoaderFactory;
+} // namespace mojom
+
+// A URLLoaderFactoryHolder holds a URLLoaderFactory bound to the IO thread. A
+// URLLoaderFactoryHolder instance itself is constrected and destructed
kinuko 2016/08/08 15:47:25 constrected -> constructed
yhirano 2016/08/09 06:35:48 Deleted
+// on the UI thread.
+class CONTENT_EXPORT URLLoaderFactoryHolder final {
+ public:
+ URLLoaderFactoryHolder(
+ scoped_refptr<ResourceMessageFilter> resource_message_filter,
+ mojo::InterfaceRequest<mojom::URLLoaderFactory> request);
+ ~URLLoaderFactoryHolder();
+
+ private:
+ class URLLoaderFactoryImpl;
+
+ std::unique_ptr<URLLoaderFactoryImpl> factory_;
+
+ DISALLOW_COPY_AND_ASSIGN(URLLoaderFactoryHolder);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_LOADER_URL_LOADER_FACTORY_HOLDER_H_

Powered by Google App Engine
This is Rietveld 408576698