| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 CONTENT_NETWORK_NETWORK_SERVICE_H_ | 5 #ifndef CONTENT_NETWORK_NETWORK_SERVICE_H_ |
| 6 #define CONTENT_NETWORK_NETWORK_SERVICE_H_ | 6 #define CONTENT_NETWORK_NETWORK_SERVICE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
| 12 #include "content/common/network_service.mojom.h" | 12 #include "content/public/common/network_service.mojom.h" |
| 13 #include "mojo/public/cpp/bindings/binding.h" | 13 #include "mojo/public/cpp/bindings/binding.h" |
| 14 #include "services/service_manager/public/cpp/binder_registry.h" | 14 #include "services/service_manager/public/cpp/binder_registry.h" |
| 15 #include "services/service_manager/public/cpp/service.h" | 15 #include "services/service_manager/public/cpp/service.h" |
| 16 | 16 |
| 17 namespace content { | 17 namespace content { |
| 18 | 18 |
| 19 class NetworkContext; | 19 class NetworkContext; |
| 20 | 20 |
| 21 class NetworkService : public service_manager::Service, | 21 class NetworkService : public service_manager::Service, |
| 22 public mojom::NetworkService { | 22 public mojom::NetworkService { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 // NetworkContexts share global state with the NetworkService, so must be | 61 // NetworkContexts share global state with the NetworkService, so must be |
| 62 // destroyed first. | 62 // destroyed first. |
| 63 std::set<NetworkContext*> network_contexts_; | 63 std::set<NetworkContext*> network_contexts_; |
| 64 | 64 |
| 65 DISALLOW_COPY_AND_ASSIGN(NetworkService); | 65 DISALLOW_COPY_AND_ASSIGN(NetworkService); |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 } // namespace content | 68 } // namespace content |
| 69 | 69 |
| 70 #endif // CONTENT_NETWORK_NETWORK_SERVICE_H_ | 70 #endif // CONTENT_NETWORK_NETWORK_SERVICE_H_ |
| OLD | NEW |