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/shell/package_manager/package_manager_impl.h" | 5 #include "mojo/shell/package_manager/package_manager_impl.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "mojo/application/public/interfaces/content_handler.mojom.h" | |
13 #include "mojo/shell/application_manager.h" | 12 #include "mojo/shell/application_manager.h" |
14 #include "mojo/shell/connect_util.h" | 13 #include "mojo/shell/connect_util.h" |
15 #include "mojo/shell/fetcher/about_fetcher.h" | 14 #include "mojo/shell/fetcher/about_fetcher.h" |
16 #include "mojo/shell/fetcher/data_fetcher.h" | 15 #include "mojo/shell/fetcher/data_fetcher.h" |
17 #include "mojo/shell/fetcher/local_fetcher.h" | 16 #include "mojo/shell/fetcher/local_fetcher.h" |
18 #include "mojo/shell/fetcher/network_fetcher.h" | 17 #include "mojo/shell/fetcher/network_fetcher.h" |
19 #include "mojo/shell/fetcher/switches.h" | 18 #include "mojo/shell/fetcher/switches.h" |
20 #include "mojo/shell/package_manager/content_handler_connection.h" | 19 #include "mojo/shell/package_manager/content_handler_connection.h" |
| 20 #include "mojo/shell/public/interfaces/content_handler.mojom.h" |
21 #include "mojo/shell/query_util.h" | 21 #include "mojo/shell/query_util.h" |
22 #include "mojo/shell/switches.h" | 22 #include "mojo/shell/switches.h" |
23 #include "mojo/util/filename_util.h" | 23 #include "mojo/util/filename_util.h" |
24 #include "url/gurl.h" | 24 #include "url/gurl.h" |
25 | 25 |
26 namespace mojo { | 26 namespace mojo { |
27 namespace shell { | 27 namespace shell { |
28 | 28 |
29 PackageManagerImpl::PackageManagerImpl( | 29 PackageManagerImpl::PackageManagerImpl( |
30 const base::FilePath& shell_file_root, | 30 const base::FilePath& shell_file_root, |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 void PackageManagerImpl::OnContentHandlerConnectionClosed( | 218 void PackageManagerImpl::OnContentHandlerConnectionClosed( |
219 ContentHandlerConnection* connection) { | 219 ContentHandlerConnection* connection) { |
220 // Remove the mapping. | 220 // Remove the mapping. |
221 auto it = identity_to_content_handler_.find(connection->identity()); | 221 auto it = identity_to_content_handler_.find(connection->identity()); |
222 DCHECK(it != identity_to_content_handler_.end()); | 222 DCHECK(it != identity_to_content_handler_.end()); |
223 identity_to_content_handler_.erase(it); | 223 identity_to_content_handler_.erase(it); |
224 } | 224 } |
225 | 225 |
226 } // namespace shell | 226 } // namespace shell |
227 } // namespace mojo | 227 } // namespace mojo |
OLD | NEW |