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

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

Issue 858103002: Remove [Client=] annotation from ServiceProvider (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: rebase for trybots (no code changes from ps2) Created 5 years, 11 months 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
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 "shell/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/public/cpp/application/connect.h" 14 #include "mojo/public/cpp/application/connect.h"
15 #include "mojo/public/cpp/bindings/binding.h" 15 #include "mojo/public/cpp/bindings/binding.h"
16 #include "mojo/public/cpp/bindings/error_handler.h" 16 #include "mojo/public/cpp/bindings/error_handler.h"
17 #include "mojo/public/interfaces/application/shell.mojom.h" 17 #include "mojo/public/interfaces/application/shell.mojom.h"
18 #include "mojo/services/content_handler/public/interfaces/content_handler.mojom. h" 18 #include "mojo/services/content_handler/public/interfaces/content_handler.mojom. h"
19 19
20 namespace mojo { 20 namespace mojo {
21 21
22 namespace { 22 namespace {
23 // Used by TestAPI. 23 // Used by TestAPI.
24 bool has_created_instance = false; 24 bool has_created_instance = false;
25
26 class StubServiceProvider : public InterfaceImpl<ServiceProvider> {
27 public:
28 ServiceProvider* GetRemoteServiceProvider() { return client(); }
29
30 private:
31 void ConnectToService(const String& service_name,
32 ScopedMessagePipeHandle client_handle) override {}
33 };
34
35 } // namespace 25 } // namespace
36 26
37 27
38 ApplicationManager::Delegate::~Delegate() { 28 ApplicationManager::Delegate::~Delegate() {
39 } 29 }
40 30
41 void ApplicationManager::Delegate::OnApplicationError(const GURL& url) { 31 void ApplicationManager::Delegate::OnApplicationError(const GURL& url) {
42 LOG(ERROR) << "Communication error with application: " << url.spec(); 32 LOG(ERROR) << "Communication error with application: " << url.spec();
43 } 33 }
44 34
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 return pipe.handle0.Pass(); 261 return pipe.handle0.Pass();
272 } 262 }
273 263
274 Array<String> ApplicationManager::GetArgsForURL(const GURL& url) { 264 Array<String> ApplicationManager::GetArgsForURL(const GURL& url) {
275 URLToArgsMap::const_iterator args_it = url_to_args_.find(url); 265 URLToArgsMap::const_iterator args_it = url_to_args_.find(url);
276 if (args_it != url_to_args_.end()) 266 if (args_it != url_to_args_.end())
277 return Array<String>::From(args_it->second); 267 return Array<String>::From(args_it->second);
278 return Array<String>(); 268 return Array<String>();
279 } 269 }
280 } // namespace mojo 270 } // namespace mojo
OLDNEW
« no previous file with comments | « services/window_manager/window_manager_impl.cc ('k') | sky/engine/v8_inspector/inspector_backend_mojo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698