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

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

Issue 2040383002: Use public handle API to transfer handle attachments. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-handle-attachment
Patch Set: Created 4 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/mojo/ipc_channel_mojo.cc ('k') | ipc/mojo/ipc_mojo_bootstrap.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_MOJO_IPC_MOJO_BOOTSTRAP_H_ 5 #ifndef IPC_MOJO_IPC_MOJO_BOOTSTRAP_H_
6 #define IPC_MOJO_IPC_MOJO_BOOTSTRAP_H_ 6 #define IPC_MOJO_IPC_MOJO_BOOTSTRAP_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/process/process_handle.h" 13 #include "base/process/process_handle.h"
14 #include "build/build_config.h" 14 #include "build/build_config.h"
15 #include "ipc/ipc_channel.h" 15 #include "ipc/ipc_channel.h"
16 #include "ipc/ipc_listener.h" 16 #include "ipc/ipc_listener.h"
17 #include "ipc/mojo/ipc.mojom.h" 17 #include "ipc/mojo/ipc.mojom.h"
18 #include "mojo/edk/embedder/scoped_platform_handle.h"
19 #include "mojo/public/cpp/system/message_pipe.h" 18 #include "mojo/public/cpp/system/message_pipe.h"
20 19
21 namespace IPC { 20 namespace IPC {
22 21
23 // MojoBootstrap establishes a pair of associated interfaces between two 22 // MojoBootstrap establishes a pair of associated interfaces between two
24 // processes in Chrome. 23 // processes in Chrome.
25 // 24 //
26 // Clients should implement MojoBootstrap::Delegate to get the associated pipes 25 // Clients should implement MojoBootstrap::Delegate to get the associated pipes
27 // from MojoBootstrap object. 26 // from MojoBootstrap object.
28 // 27 //
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 mojo::ScopedMessagePipeHandle handle_; 75 mojo::ScopedMessagePipeHandle handle_;
77 Delegate* delegate_; 76 Delegate* delegate_;
78 State state_; 77 State state_;
79 78
80 DISALLOW_COPY_AND_ASSIGN(MojoBootstrap); 79 DISALLOW_COPY_AND_ASSIGN(MojoBootstrap);
81 }; 80 };
82 81
83 } // namespace IPC 82 } // namespace IPC
84 83
85 #endif // IPC_MOJO_IPC_MOJO_BOOTSTRAP_H_ 84 #endif // IPC_MOJO_IPC_MOJO_BOOTSTRAP_H_
OLDNEW
« no previous file with comments | « ipc/mojo/ipc_channel_mojo.cc ('k') | ipc/mojo/ipc_mojo_bootstrap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698