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

Side by Side Diff: mojo/system/platform_channel.h

Issue 137273003: Mojo: Rename PlatformChannelHandle to PlatformHandle, etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 11 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 | « mojo/system/multiprocess_message_pipe_unittest.cc ('k') | mojo/system/platform_channel.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2013 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 MOJO_SYSTEM_PLATFORM_CHANNEL_H_
6 #define MOJO_SYSTEM_PLATFORM_CHANNEL_H_
7
8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "mojo/system/platform_channel_handle.h"
11 #include "mojo/system/system_impl_export.h"
12
13 namespace mojo {
14 namespace system {
15
16 class MOJO_SYSTEM_IMPL_EXPORT PlatformChannel {
17 public:
18 virtual ~PlatformChannel();
19
20 // Creates a channel if you already have the underlying handle for it, taking
21 // ownership of |handle|.
22 static scoped_ptr<PlatformChannel> CreateFromHandle(
23 const PlatformChannelHandle& handle);
24
25 // Returns the channel's handle, passing ownership.
26 PlatformChannelHandle PassHandle();
27
28 bool is_valid() const { return handle_.is_valid(); }
29
30 protected:
31 PlatformChannel();
32
33 PlatformChannelHandle* mutable_handle() { return &handle_; }
34
35 private:
36 PlatformChannelHandle handle_;
37
38 DISALLOW_COPY_AND_ASSIGN(PlatformChannel);
39 };
40
41 } // namespace system
42 } // namespace mojo
43
44 #endif // MOJO_SYSTEM_PLATFORM_CHANNEL_H_
OLDNEW
« no previous file with comments | « mojo/system/multiprocess_message_pipe_unittest.cc ('k') | mojo/system/platform_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698