OLD | NEW |
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/message_pump/handle_watcher.h" |
11 #include "mojo/services/network/interfaces/url_loader.mojom.h" | 11 #include "mojo/services/network/interfaces/url_loader.mojom.h" |
12 #include "mojo/services/network/interfaces/network_service.mojom.h" | 12 #include "mojo/services/network/interfaces/network_service.mojom.h" |
13 #include "net/base/net_errors.h" | 13 #include "net/base/net_errors.h" |
14 #include "net/url_request/url_request.h" | 14 #include "net/url_request/url_request.h" |
15 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h" | 15 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h" |
16 | 16 |
17 namespace mojo { | 17 namespace mojo { |
18 | 18 |
19 class NetworkContext; | 19 class NetworkContext; |
20 class NetToMojoPendingBuffer; | 20 class NetToMojoPendingBuffer; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 bool auto_follow_redirects_; | 66 bool auto_follow_redirects_; |
67 std::vector<std::unique_ptr<BodyFetcher>> body_fetchers_; | 67 std::vector<std::unique_ptr<BodyFetcher>> body_fetchers_; |
68 uint32_t current_fetcher_id_; | 68 uint32_t current_fetcher_id_; |
69 URLLoaderStatusPtr last_status_; | 69 URLLoaderStatusPtr last_status_; |
70 Binding<URLLoader> binding_; | 70 Binding<URLLoader> binding_; |
71 }; | 71 }; |
72 | 72 |
73 } // namespace mojo | 73 } // namespace mojo |
74 | 74 |
75 #endif // MOJO_SERVICES_NETWORK_URL_LOADER_IMPL_H_ | 75 #endif // MOJO_SERVICES_NETWORK_URL_LOADER_IMPL_H_ |
OLD | NEW |