Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: mojo/application_manager/application_manager.cc

Issue 793243002: Restructure public side of content_handler service. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/application_manager/BUILD.gn ('k') | mojo/services/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "mojo/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" 14 #include "mojo/application_manager/application_loader.h"
15 #include "mojo/common/common_type_converters.h" 15 #include "mojo/common/common_type_converters.h"
16 #include "mojo/public/cpp/application/connect.h" 16 #include "mojo/public/cpp/application/connect.h"
17 #include "mojo/public/cpp/bindings/binding.h" 17 #include "mojo/public/cpp/bindings/binding.h"
18 #include "mojo/public/cpp/bindings/error_handler.h" 18 #include "mojo/public/cpp/bindings/error_handler.h"
19 #include "mojo/public/interfaces/application/application.mojom.h" 19 #include "mojo/public/interfaces/application/application.mojom.h"
20 #include "mojo/public/interfaces/application/shell.mojom.h" 20 #include "mojo/public/interfaces/application/shell.mojom.h"
21 #include "mojo/services/public/interfaces/content_handler/content_handler.mojom. h" 21 #include "mojo/services/content_handler/public/interfaces/content_handler.mojom. h"
22 22
23 namespace mojo { 23 namespace mojo {
24 24
25 namespace { 25 namespace {
26 // Used by TestAPI. 26 // Used by TestAPI.
27 bool has_created_instance = false; 27 bool has_created_instance = false;
28 28
29 class StubServiceProvider : public InterfaceImpl<ServiceProvider> { 29 class StubServiceProvider : public InterfaceImpl<ServiceProvider> {
30 public: 30 public:
31 ServiceProvider* GetRemoteServiceProvider() { return client(); } 31 ServiceProvider* GetRemoteServiceProvider() { return client(); }
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 return pipe.handle0.Pass(); 346 return pipe.handle0.Pass();
347 } 347 }
348 348
349 Array<String> ApplicationManager::GetArgsForURL(const GURL& url) { 349 Array<String> ApplicationManager::GetArgsForURL(const GURL& url) {
350 URLToArgsMap::const_iterator args_it = url_to_args_.find(url); 350 URLToArgsMap::const_iterator args_it = url_to_args_.find(url);
351 if (args_it != url_to_args_.end()) 351 if (args_it != url_to_args_.end())
352 return Array<String>::From(args_it->second); 352 return Array<String>::From(args_it->second);
353 return Array<String>(); 353 return Array<String>();
354 } 354 }
355 } // namespace mojo 355 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/application_manager/BUILD.gn ('k') | mojo/services/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698