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

Side by Side Diff: ipc/mojo/ipc_channel_mojo.h

Issue 1184523003: attachment broker wip (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor comments. Created 5 years, 6 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
« no previous file with comments | « ipc/ipc_test_base.cc ('k') | ipc/mojo/ipc_channel_mojo.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 #ifndef IPC_IPC_CHANNEL_MOJO_H_ 5 #ifndef IPC_IPC_CHANNEL_MOJO_H_
6 #define IPC_IPC_CHANNEL_MOJO_H_ 6 #define IPC_IPC_CHANNEL_MOJO_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // True if ChannelMojo should be used regardless of the flag. 67 // True if ChannelMojo should be used regardless of the flag.
68 static bool ShouldBeUsed(); 68 static bool ShouldBeUsed();
69 69
70 // Create ChannelMojo. A bootstrap channel is created as well. 70 // Create ChannelMojo. A bootstrap channel is created as well.
71 // |host| must not be null for server channels. 71 // |host| must not be null for server channels.
72 static scoped_ptr<ChannelMojo> Create( 72 static scoped_ptr<ChannelMojo> Create(
73 Delegate* delegate, 73 Delegate* delegate,
74 scoped_refptr<base::TaskRunner> io_runner, 74 scoped_refptr<base::TaskRunner> io_runner,
75 const ChannelHandle& channel_handle, 75 const ChannelHandle& channel_handle,
76 Mode mode, 76 Mode mode,
77 Listener* listener); 77 Listener* listener,
78 AttachmentBroker* broker);
78 79
79 // Create a factory object for ChannelMojo. 80 // Create a factory object for ChannelMojo.
80 // The factory is used to create Mojo-based ChannelProxy family. 81 // The factory is used to create Mojo-based ChannelProxy family.
81 // |host| must not be null. 82 // |host| must not be null.
82 static scoped_ptr<ChannelFactory> CreateServerFactory( 83 static scoped_ptr<ChannelFactory> CreateServerFactory(
83 Delegate* delegate, 84 Delegate* delegate,
84 scoped_refptr<base::TaskRunner> io_runner, 85 scoped_refptr<base::TaskRunner> io_runner,
85 const ChannelHandle& channel_handle); 86 const ChannelHandle& channel_handle,
87 AttachmentBroker* broker);
86 88
87 static scoped_ptr<ChannelFactory> CreateClientFactory( 89 static scoped_ptr<ChannelFactory> CreateClientFactory(
88 Delegate* delegate, 90 Delegate* delegate,
89 scoped_refptr<base::TaskRunner> io_runner, 91 scoped_refptr<base::TaskRunner> io_runner,
90 const ChannelHandle& channel_handle); 92 const ChannelHandle& channel_handle,
93 AttachmentBroker* broker);
91 94
92 ~ChannelMojo() override; 95 ~ChannelMojo() override;
93 96
94 // ChannelMojoHost tells the client handle using this API. 97 // ChannelMojoHost tells the client handle using this API.
95 void OnClientLaunched(base::ProcessHandle handle); 98 void OnClientLaunched(base::ProcessHandle handle);
96 99
97 // Channel implementation 100 // Channel implementation
98 bool Connect() override; 101 bool Connect() override;
99 void Close() override; 102 void Close() override;
100 bool Send(Message* message) override; 103 bool Send(Message* message) override;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 scoped_ptr<ScopedIPCSupport> ipc_support_; 187 scoped_ptr<ScopedIPCSupport> ipc_support_;
185 188
186 base::WeakPtrFactory<ChannelMojo> weak_factory_; 189 base::WeakPtrFactory<ChannelMojo> weak_factory_;
187 190
188 DISALLOW_COPY_AND_ASSIGN(ChannelMojo); 191 DISALLOW_COPY_AND_ASSIGN(ChannelMojo);
189 }; 192 };
190 193
191 } // namespace IPC 194 } // namespace IPC
192 195
193 #endif // IPC_IPC_CHANNEL_MOJO_H_ 196 #endif // IPC_IPC_CHANNEL_MOJO_H_
OLDNEW
« no previous file with comments | « ipc/ipc_test_base.cc ('k') | ipc/mojo/ipc_channel_mojo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698