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

Side by Side Diff: mojo/system/embedder/platform_channel_pair.h

Issue 196383007: Updates comment for PlatformChannelPair::PassClientHandle (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | « no previous file | no next file » | 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 MOJO_SYSTEM_EMBEDDER_PLATFORM_CHANNEL_PAIR_H_ 5 #ifndef MOJO_SYSTEM_EMBEDDER_PLATFORM_CHANNEL_PAIR_H_
6 #define MOJO_SYSTEM_EMBEDDER_PLATFORM_CHANNEL_PAIR_H_ 6 #define MOJO_SYSTEM_EMBEDDER_PLATFORM_CHANNEL_PAIR_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/process/launch.h" 10 #include "base/process/launch.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // Note: |PlatformChannelPair()|, |PassClientHandleFromParentProcess()| and 43 // Note: |PlatformChannelPair()|, |PassClientHandleFromParentProcess()| and
44 // |PrepareToPassClientHandleToChildProcess()| have platform-specific 44 // |PrepareToPassClientHandleToChildProcess()| have platform-specific
45 // implementations. 45 // implementations.
46 class MOJO_SYSTEM_IMPL_EXPORT PlatformChannelPair { 46 class MOJO_SYSTEM_IMPL_EXPORT PlatformChannelPair {
47 public: 47 public:
48 PlatformChannelPair(); 48 PlatformChannelPair();
49 ~PlatformChannelPair(); 49 ~PlatformChannelPair();
50 50
51 ScopedPlatformHandle PassServerHandle(); 51 ScopedPlatformHandle PassServerHandle();
52 52
53 // For in-process use (e.g., in tests). 53 // For in-process use (e.g., in tests or to pass over another channel).
54 ScopedPlatformHandle PassClientHandle(); 54 ScopedPlatformHandle PassClientHandle();
55 55
56 // To be called in the child process, after the parent process called 56 // To be called in the child process, after the parent process called
57 // |PrepareToPassClientHandleToChildProcess()| and launched the child (using 57 // |PrepareToPassClientHandleToChildProcess()| and launched the child (using
58 // the provided data), to create a client handle connected to the server 58 // the provided data), to create a client handle connected to the server
59 // handle (in the parent process). 59 // handle (in the parent process).
60 static ScopedPlatformHandle PassClientHandleFromParentProcess( 60 static ScopedPlatformHandle PassClientHandleFromParentProcess(
61 const CommandLine& command_line); 61 const CommandLine& command_line);
62 62
63 // Prepares to pass the client channel to a new child process, to be launched 63 // Prepares to pass the client channel to a new child process, to be launched
(...skipping 14 matching lines...) Expand all
78 ScopedPlatformHandle server_handle_; 78 ScopedPlatformHandle server_handle_;
79 ScopedPlatformHandle client_handle_; 79 ScopedPlatformHandle client_handle_;
80 80
81 DISALLOW_COPY_AND_ASSIGN(PlatformChannelPair); 81 DISALLOW_COPY_AND_ASSIGN(PlatformChannelPair);
82 }; 82 };
83 83
84 } // namespace embedder 84 } // namespace embedder
85 } // namespace mojo 85 } // namespace mojo
86 86
87 #endif // MOJO_SYSTEM_EMBEDDER_PLATFORM_CHANNEL_PAIR_H_ 87 #endif // MOJO_SYSTEM_EMBEDDER_PLATFORM_CHANNEL_PAIR_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698