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

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

Issue 885443002: Roll Chrome into Mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase to ToT mojo Created 5 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_IMPL_H_ 5 #ifndef MOJO_SERVICES_NETWORK_URL_LOADER_IMPL_H_
6 #define MOJO_SERVICES_NETWORK_URL_LOADER_IMPL_H_ 6 #define MOJO_SERVICES_NETWORK_URL_LOADER_IMPL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "mojo/common/handle_watcher.h" 10 #include "mojo/common/handle_watcher.h"
11 #include "mojo/services/network/public/interfaces/url_loader.mojom.h"
12 #include "net/base/net_errors.h"
13 #include "net/url_request/url_request.h"
11 #include "mojo/public/cpp/bindings/binding.h" 14 #include "mojo/public/cpp/bindings/binding.h"
12 #include "mojo/public/cpp/bindings/error_handler.h" 15 #include "mojo/public/cpp/bindings/error_handler.h"
13 #include "mojo/public/cpp/bindings/interface_impl.h" 16 #include "mojo/public/cpp/bindings/interface_impl.h"
14 #include "mojo/services/network/public/interfaces/url_loader.mojom.h"
15 #include "net/base/net_errors.h"
16 #include "net/url_request/url_request.h"
17 17
18 namespace mojo { 18 namespace mojo {
19 19
20 class NetworkContext; 20 class NetworkContext;
21 class NetToMojoPendingBuffer; 21 class NetToMojoPendingBuffer;
22 22
23 class URLLoaderImpl : public URLLoader, 23 class URLLoaderImpl : public URLLoader,
24 public ErrorHandler, 24 public ErrorHandler,
25 public net::URLRequest::Delegate { 25 public net::URLRequest::Delegate {
26 public: 26 public:
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 bool auto_follow_redirects_; 65 bool auto_follow_redirects_;
66 bool connected_; 66 bool connected_;
67 Binding<URLLoader> binding_; 67 Binding<URLLoader> binding_;
68 68
69 base::WeakPtrFactory<URLLoaderImpl> weak_ptr_factory_; 69 base::WeakPtrFactory<URLLoaderImpl> weak_ptr_factory_;
70 }; 70 };
71 71
72 } // namespace mojo 72 } // namespace mojo
73 73
74 #endif // MOJO_SERVICES_NETWORK_URL_LOADER_IMPL_H_ 74 #endif // MOJO_SERVICES_NETWORK_URL_LOADER_IMPL_H_
OLDNEW
« no previous file with comments | « mojo/services/network/upload_network_service.py ('k') | mojo/services/network/web_socket_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698