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

Side by Side Diff: ipc/ipc_channel_factory.h

Issue 382333002: Introduce ChannelMojo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef IPC_IPC_CHANNEL_FACTORY_H_
6 #define IPC_IPC_CHANNEL_FACTORY_H_
7
8 #include <string>
9 #include <vector>
10
11 #include "base/memory/scoped_ptr.h"
12 #include "ipc/ipc_channel.h"
13
14 namespace IPC {
15
16 // Encapsulates how a Channel is created. A ChannelFactory can be
17 // passed to the constructor of ChannelProxy or SyncChannel to tell them
18 // how to create underlying channel.
19 class ChannelFactory {
20 public:
21 // Creates a factory for "native" channel built through
22 // IPC::Channel::Create().
23 static scoped_ptr<ChannelFactory> Create(
24 const ChannelHandle& handle, Channel::Mode mode);
25
26 virtual ~ChannelFactory() { }
27 virtual std::string GetName() const = 0;
28 virtual scoped_ptr<Channel> BuildChannel(Listener* listener) = 0;
29 };
30
31 } // namespace IPC
32
33 #endif // IPC_IPC_CHANNEL_FACTORY_H_
OLDNEW
« ipc/ipc_channel.h ('K') | « ipc/ipc_channel.h ('k') | ipc/ipc_channel_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698