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

Side by Side Diff: mojo/services/network/url_loader_factory_impl.h

Issue 1290323002: HTMLViewer no longer connects to NetworkService interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MOJO_SERVICES_NETWORK_URL_LOADER_FACTORY_IMPL_H_ 5 #ifndef MOJO_SERVICES_NETWORK_URL_LOADER_FACTORY_IMPL_H_
6 #define MOJO_SERVICES_NETWORK_URL_LOADER_FACTORY_IMPL_H_ 6 #define MOJO_SERVICES_NETWORK_URL_LOADER_FACTORY_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "mojo/application/public/cpp/app_lifetime_helper.h" 9 #include "mojo/application/public/cpp/app_lifetime_helper.h"
10 #include "mojo/services/network/public/interfaces/url_loader_factory.mojom.h" 10 #include "mojo/services/network/public/interfaces/url_loader_factory.mojom.h"
11 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h" 11 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
12 12
13 namespace mojo { 13 namespace mojo {
14 class ApplicationConnection;
15 class NetworkContext; 14 class NetworkContext;
16 15
17 class URLLoaderFactoryImpl : public URLLoaderFactory { 16 class URLLoaderFactoryImpl : public URLLoaderFactory {
18 public: 17 public:
19 URLLoaderFactoryImpl(ApplicationConnection* connection, 18 URLLoaderFactoryImpl(NetworkContext* context,
20 NetworkContext* context,
21 scoped_ptr<mojo::AppRefCount> app_refcount, 19 scoped_ptr<mojo::AppRefCount> app_refcount,
22 InterfaceRequest<URLLoaderFactory> request); 20 InterfaceRequest<URLLoaderFactory> request);
23 ~URLLoaderFactoryImpl() override; 21 ~URLLoaderFactoryImpl() override;
24 22
25 // URLLoaderFactory methods: 23 // URLLoaderFactory methods:
26 void CreateURLLoader(InterfaceRequest<URLLoader> loader) override; 24 void CreateURLLoader(InterfaceRequest<URLLoader> loader) override;
27 25
28 private: 26 private:
29 NetworkContext* context_; 27 NetworkContext* context_;
30 scoped_ptr<mojo::AppRefCount> app_refcount_; 28 scoped_ptr<mojo::AppRefCount> app_refcount_;
31 StrongBinding<URLLoaderFactory> binding_; 29 StrongBinding<URLLoaderFactory> binding_;
32 30
33 DISALLOW_COPY_AND_ASSIGN(URLLoaderFactoryImpl); 31 DISALLOW_COPY_AND_ASSIGN(URLLoaderFactoryImpl);
34 }; 32 };
35 33
36 } // namespace mojo 34 } // namespace mojo
37 35
38 #endif // MOJO_SERVICES_NETWORK_URL_LOADER_FACTORY_IMPL_H_ 36 #endif // MOJO_SERVICES_NETWORK_URL_LOADER_FACTORY_IMPL_H_
OLDNEW
« no previous file with comments | « mojo/services/network/public/interfaces/web_socket_factory.mojom ('k') | mojo/services/network/url_loader_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698