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

Side by Side Diff: content/browser/mojo/mojo_application_host.cc

Issue 1831173002: Scaffolding for Android implementation of PaymentRequest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo
Patch Set: Register PaymentRequest with render process Created 4 years, 8 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 "content/browser/mojo/mojo_application_host.h" 5 #include "content/browser/mojo/mojo_application_host.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "content/common/mojo/mojo_messages.h" 10 #include "content/common/mojo/mojo_messages.h"
(...skipping 23 matching lines...) Expand all
34 service_registry_->BindRemoteServiceProvider(std::move(exposed_services)); 34 service_registry_->BindRemoteServiceProvider(std::move(exposed_services));
35 } 35 }
36 36
37 mojo::Binding<mojom::ApplicationSetup> binding_; 37 mojo::Binding<mojom::ApplicationSetup> binding_;
38 ServiceRegistryImpl* service_registry_; 38 ServiceRegistryImpl* service_registry_;
39 }; 39 };
40 40
41 } // namespace 41 } // namespace
42 42
43 MojoApplicationHost::MojoApplicationHost() : did_activate_(false) { 43 MojoApplicationHost::MojoApplicationHost() : did_activate_(false) {
44 #if defined(OS_ANDROID)
45 service_registry_android_.reset(
46 new ServiceRegistryAndroid(&service_registry_));
47 #endif
48 } 44 }
49 45
50 MojoApplicationHost::~MojoApplicationHost() { 46 MojoApplicationHost::~MojoApplicationHost() {
51 } 47 }
52 48
53 bool MojoApplicationHost::Init() { 49 bool MojoApplicationHost::Init() {
54 DCHECK(!client_handle_.is_valid()) << "Already initialized!"; 50 DCHECK(!client_handle_.is_valid()) << "Already initialized!";
55 51
56 mojo::edk::PlatformChannelPair channel_pair; 52 mojo::edk::PlatformChannelPair channel_pair;
57 53
(...skipping 26 matching lines...) Expand all
84 IPC::GetFileHandleForProcess(client_file, process_handle, true))); 80 IPC::GetFileHandleForProcess(client_file, process_handle, true)));
85 } 81 }
86 82
87 void MojoApplicationHost::OverrideIOTaskRunnerForTest( 83 void MojoApplicationHost::OverrideIOTaskRunnerForTest(
88 scoped_refptr<base::TaskRunner> io_task_runner) { 84 scoped_refptr<base::TaskRunner> io_task_runner) {
89 io_task_runner_override_ = io_task_runner; 85 io_task_runner_override_ = io_task_runner;
90 } 86 }
91 87
92 88
93 } // namespace content 89 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698