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

Side by Side Diff: ipc/ipc_channel_factory.h

Issue 1354973006: ipc: Remove unnecessary attachment broker plumbing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile errors. Created 5 years, 2 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_channel_common.cc ('k') | ipc/ipc_channel_factory.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_FACTORY_H_ 5 #ifndef IPC_IPC_CHANNEL_FACTORY_H_
6 #define IPC_IPC_CHANNEL_FACTORY_H_ 6 #define IPC_IPC_CHANNEL_FACTORY_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "ipc/ipc_channel.h" 12 #include "ipc/ipc_channel.h"
13 13
14 namespace IPC { 14 namespace IPC {
15 15
16 class AttachmentBroker;
17
18 // Encapsulates how a Channel is created. A ChannelFactory can be 16 // Encapsulates how a Channel is created. A ChannelFactory can be
19 // passed to the constructor of ChannelProxy or SyncChannel to tell them 17 // passed to the constructor of ChannelProxy or SyncChannel to tell them
20 // how to create underlying channel. 18 // how to create underlying channel.
21 class IPC_EXPORT ChannelFactory { 19 class IPC_EXPORT ChannelFactory {
22 public: 20 public:
23 // Creates a factory for "native" channel built through 21 // Creates a factory for "native" channel built through
24 // IPC::Channel::Create(). 22 // IPC::Channel::Create().
25 static scoped_ptr<ChannelFactory> Create(const ChannelHandle& handle, 23 static scoped_ptr<ChannelFactory> Create(const ChannelHandle& handle,
26 Channel::Mode mode, 24 Channel::Mode mode);
27 AttachmentBroker* broker);
28 25
29 virtual ~ChannelFactory() { } 26 virtual ~ChannelFactory() { }
30 virtual std::string GetName() const = 0; 27 virtual std::string GetName() const = 0;
31 virtual scoped_ptr<Channel> BuildChannel(Listener* listener) = 0; 28 virtual scoped_ptr<Channel> BuildChannel(Listener* listener) = 0;
32 }; 29 };
33 30
34 } // namespace IPC 31 } // namespace IPC
35 32
36 #endif // IPC_IPC_CHANNEL_FACTORY_H_ 33 #endif // IPC_IPC_CHANNEL_FACTORY_H_
OLDNEW
« no previous file with comments | « ipc/ipc_channel_common.cc ('k') | ipc/ipc_channel_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698