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

Side by Side Diff: content/browser/loader/url_loader_factory_impl.h

Issue 1970693002: Use mojo for Chrome Loading, Part 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_LOADER_URL_LOADER_FACTORY_IMPL_H_
6 #define CONTENT_BROWSER_LOADER_URL_LOADER_FACTORY_IMPL_H_
7
8 #include "base/memory/ref_counted.h"
9 #include "content/common/content_export.h"
10 #include "content/common/url_loader_factory.mojom.h"
11 #include "mojo/public/cpp/bindings/binding.h"
12 #include "mojo/public/cpp/bindings/interface_request.h"
13
14 namespace content {
15
16 class ResourceMessageFilter;
17
18 // This class is an implementation of mojom::URLLoaderFactory that creates
19 // a mojom::URLLoader.
20 class CONTENT_EXPORT URLLoaderFactoryImpl final
21 : public mojom::URLLoaderFactory {
22 public:
23 URLLoaderFactoryImpl(
24 scoped_refptr<ResourceMessageFilter> resource_message_filter,
25 mojo::InterfaceRequest<mojom::URLLoaderFactory> request);
26 ~URLLoaderFactoryImpl() override;
27
28 void CreateURLLoader(mojom::URLLoaderRequest request) override;
29
30 private:
31 scoped_refptr<ResourceMessageFilter> resource_message_filter_;
32 mojo::Binding<mojom::URLLoaderFactory> binding_;
33 };
34
35 } // namespace content
36
37 #endif // CONTENT_BROWSER_LOADER_URL_LOADER_FACTORY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698