| 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 #include "mojo/shell/application_manager/application_manager.h" | 5 #include "mojo/shell/application_manager.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
| 12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
| 13 #include "base/trace_event/trace_event.h" | 13 #include "base/trace_event/trace_event.h" |
| 14 #include "mojo/public/cpp/bindings/binding.h" | 14 #include "mojo/public/cpp/bindings/binding.h" |
| 15 #include "mojo/public/cpp/bindings/error_handler.h" | 15 #include "mojo/public/cpp/bindings/error_handler.h" |
| 16 #include "mojo/shell/application_manager/fetcher.h" | 16 #include "mojo/shell/fetcher.h" |
| 17 #include "mojo/shell/application_manager/local_fetcher.h" | 17 #include "mojo/shell/local_fetcher.h" |
| 18 #include "mojo/shell/application_manager/network_fetcher.h" | 18 #include "mojo/shell/network_fetcher.h" |
| 19 #include "mojo/shell/application_manager/query_util.h" | 19 #include "mojo/shell/query_util.h" |
| 20 #include "mojo/shell/application_manager/shell_impl.h" | 20 #include "mojo/shell/shell_impl.h" |
| 21 #include "mojo/shell/switches.h" | 21 #include "mojo/shell/switches.h" |
| 22 #include "third_party/mojo_services/src/content_handler/public/interfaces/conten
t_handler.mojom.h" | 22 #include "third_party/mojo_services/src/content_handler/public/interfaces/conten
t_handler.mojom.h" |
| 23 | 23 |
| 24 namespace mojo { | 24 namespace mojo { |
| 25 namespace shell { | 25 namespace shell { |
| 26 | 26 |
| 27 namespace { | 27 namespace { |
| 28 | 28 |
| 29 // Used by TestAPI. | 29 // Used by TestAPI. |
| 30 bool has_created_instance = false; | 30 bool has_created_instance = false; |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 return pipe.handle0.Pass(); | 454 return pipe.handle0.Pass(); |
| 455 } | 455 } |
| 456 | 456 |
| 457 void ApplicationManager::CleanupRunner(NativeRunner* runner) { | 457 void ApplicationManager::CleanupRunner(NativeRunner* runner) { |
| 458 native_runners_.erase( | 458 native_runners_.erase( |
| 459 std::find(native_runners_.begin(), native_runners_.end(), runner)); | 459 std::find(native_runners_.begin(), native_runners_.end(), runner)); |
| 460 } | 460 } |
| 461 | 461 |
| 462 } // namespace shell | 462 } // namespace shell |
| 463 } // namespace mojo | 463 } // namespace mojo |
| OLD | NEW |