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

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

Issue 280003003: Add SetClient method implementation to InterfaceImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/mojo/mojo_application_host.h ('k') | mojo/examples/launcher/launcher.cc » ('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 "content/browser/mojo/mojo_application_host.h" 5 #include "content/browser/mojo/mojo_application_host.h"
6 6
7 #include "content/common/mojo/mojo_messages.h" 7 #include "content/common/mojo/mojo_messages.h"
8 #include "content/public/browser/browser_thread.h" 8 #include "content/public/browser/browser_thread.h"
9 #include "ipc/ipc_sender.h" 9 #include "ipc/ipc_sender.h"
10 #include "mojo/embedder/platform_channel_pair.h" 10 #include "mojo/embedder/platform_channel_pair.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 DCHECK(!did_activate_); 52 DCHECK(!did_activate_);
53 DCHECK(client_handle_.is_valid()); 53 DCHECK(client_handle_.is_valid());
54 54
55 base::PlatformFile client_file = 55 base::PlatformFile client_file =
56 PlatformFileFromScopedPlatformHandle(client_handle_.Pass()); 56 PlatformFileFromScopedPlatformHandle(client_handle_.Pass());
57 did_activate_ = sender->Send(new MojoMsg_Activate( 57 did_activate_ = sender->Send(new MojoMsg_Activate(
58 IPC::GetFileHandleForProcess(client_file, process_handle, true))); 58 IPC::GetFileHandleForProcess(client_file, process_handle, true)));
59 return did_activate_; 59 return did_activate_;
60 } 60 }
61 61
62 void MojoApplicationHost::ShellImpl::SetClient(mojo::ShellClient* client) {
63 client_ = client;
64 }
65
66 void MojoApplicationHost::ShellImpl::Connect( 62 void MojoApplicationHost::ShellImpl::Connect(
67 const mojo::String& url, 63 const mojo::String& url,
68 mojo::ScopedMessagePipeHandle handle) { 64 mojo::ScopedMessagePipeHandle handle) {
69 // TODO(darin): Provide something meaningful here. 65 // TODO(darin): Provide something meaningful here.
70 } 66 }
71 67
72 } // namespace content 68 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/mojo/mojo_application_host.h ('k') | mojo/examples/launcher/launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698