OLD | NEW |
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 #include "mojo/services/network/network_service_delegate.h" | 5 #include "mojo/services/network/network_service_delegate.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/at_exit.h" | 9 #include "base/at_exit.h" |
10 #include "base/base_paths.h" | 10 #include "base/base_paths.h" |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
| 14 #include "base/macros.h" |
14 #include "base/message_loop/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
15 #include "base/path_service.h" | 16 #include "base/path_service.h" |
16 #include "mojo/application/public/cpp/application_connection.h" | 17 #include "mojo/application/public/cpp/application_connection.h" |
17 #include "mojo/message_pump/message_pump_mojo.h" | 18 #include "mojo/message_pump/message_pump_mojo.h" |
18 #include "mojo/services/network/cookie_store_impl.h" | 19 #include "mojo/services/network/cookie_store_impl.h" |
19 #include "mojo/services/network/network_service_delegate_observer.h" | 20 #include "mojo/services/network/network_service_delegate_observer.h" |
20 #include "mojo/services/network/network_service_impl.h" | 21 #include "mojo/services/network/network_service_impl.h" |
21 #include "mojo/services/network/url_loader_factory_impl.h" | 22 #include "mojo/services/network/url_loader_factory_impl.h" |
22 #include "mojo/services/network/web_socket_factory_impl.h" | 23 #include "mojo/services/network/web_socket_factory_impl.h" |
23 #include "mojo/util/capture_util.h" | 24 #include "mojo/util/capture_util.h" |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 FOR_EACH_OBSERVER(NetworkServiceDelegateObserver, observers_, | 198 FOR_EACH_OBSERVER(NetworkServiceDelegateObserver, observers_, |
198 OnIOWorkerThreadShutdown()); | 199 OnIOWorkerThreadShutdown()); |
199 | 200 |
200 // Destroy the io worker thread here so that we can commit any pending | 201 // Destroy the io worker thread here so that we can commit any pending |
201 // cookies here. | 202 // cookies here. |
202 io_worker_thread_.reset(); | 203 io_worker_thread_.reset(); |
203 } | 204 } |
204 } | 205 } |
205 | 206 |
206 } // namespace mojo | 207 } // namespace mojo |
OLD | NEW |