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/application_manager/application_manager.h" | 5 #include "shell/application_manager/application_manager.h" |
6 | 6 |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/stl_util.h" | 13 #include "base/stl_util.h" |
14 #include "mojo/application_manager/application_loader.h" | |
15 #include "mojo/public/cpp/application/connect.h" | 14 #include "mojo/public/cpp/application/connect.h" |
16 #include "mojo/public/cpp/bindings/binding.h" | 15 #include "mojo/public/cpp/bindings/binding.h" |
17 #include "mojo/public/cpp/bindings/error_handler.h" | 16 #include "mojo/public/cpp/bindings/error_handler.h" |
18 #include "mojo/public/interfaces/application/shell.mojom.h" | 17 #include "mojo/public/interfaces/application/shell.mojom.h" |
19 #include "mojo/services/content_handler/public/interfaces/content_handler.mojom.
h" | 18 #include "mojo/services/content_handler/public/interfaces/content_handler.mojom.
h" |
20 | 19 |
21 namespace mojo { | 20 namespace mojo { |
22 | 21 |
23 namespace { | 22 namespace { |
24 // Used by TestAPI. | 23 // Used by TestAPI. |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 return pipe.handle0.Pass(); | 266 return pipe.handle0.Pass(); |
268 } | 267 } |
269 | 268 |
270 Array<String> ApplicationManager::GetArgsForURL(const GURL& url) { | 269 Array<String> ApplicationManager::GetArgsForURL(const GURL& url) { |
271 URLToArgsMap::const_iterator args_it = url_to_args_.find(url); | 270 URLToArgsMap::const_iterator args_it = url_to_args_.find(url); |
272 if (args_it != url_to_args_.end()) | 271 if (args_it != url_to_args_.end()) |
273 return Array<String>::From(args_it->second); | 272 return Array<String>::From(args_it->second); |
274 return Array<String>(); | 273 return Array<String>(); |
275 } | 274 } |
276 } // namespace mojo | 275 } // namespace mojo |
OLD | NEW |