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

Side by Side Diff: third_party/mojo/src/mojo/edk/embedder/embedder.h

Issue 1387963004: Create a broker interface for the new Mojo EDK so that the browser can create and duplicate messa... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: presubmit whitespace error Created 5 years 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
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 THIRD_PARTY_MOJO_SRC_MOJO_EDK_EMBEDDER_EMBEDDER_H_ 5 #ifndef THIRD_PARTY_MOJO_SRC_MOJO_EDK_EMBEDDER_EMBEDDER_H_
6 #define THIRD_PARTY_MOJO_SRC_MOJO_EDK_EMBEDDER_EMBEDDER_H_ 6 #define THIRD_PARTY_MOJO_SRC_MOJO_EDK_EMBEDDER_EMBEDDER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/task_runner.h" 13 #include "base/task_runner.h"
14 #include "mojo/public/cpp/system/message_pipe.h" 14 #include "mojo/public/cpp/system/message_pipe.h"
15 #include "third_party/mojo/src/mojo/edk/embedder/channel_info_forward.h" 15 #include "third_party/mojo/src/mojo/edk/embedder/channel_info_forward.h"
16 #include "third_party/mojo/src/mojo/edk/embedder/process_type.h" 16 #include "third_party/mojo/src/mojo/edk/embedder/process_type.h"
17 #include "third_party/mojo/src/mojo/edk/embedder/scoped_platform_handle.h" 17 #include "third_party/mojo/src/mojo/edk/embedder/scoped_platform_handle.h"
18 #include "third_party/mojo/src/mojo/edk/embedder/slave_info.h" 18 #include "third_party/mojo/src/mojo/edk/embedder/slave_info.h"
19 #include "third_party/mojo/src/mojo/edk/system/system_impl_export.h" 19 #include "third_party/mojo/src/mojo/edk/system/system_impl_export.h"
20 20
21 namespace mojo { 21 namespace mojo {
22 namespace edk {
23 class TokenSerializer;
24 }
25
22 namespace embedder { 26 namespace embedder {
23 27
24 class ProcessDelegate; 28 class ProcessDelegate;
25 29
30 #if defined(OS_WIN)
31 // Wrapper functions around the ones in src/mojo/edk for component builds.
32 MOJO_SYSTEM_IMPL_EXPORT void PreInitializeParentProcess();
33 MOJO_SYSTEM_IMPL_EXPORT void PreInitializeChildProcess();
34 MOJO_SYSTEM_IMPL_EXPORT HANDLE ChildProcessLaunched(HANDLE child_process);
35 MOJO_SYSTEM_IMPL_EXPORT void ChildProcessLaunched(HANDLE child_process,
36 HANDLE server_pipe);
37 MOJO_SYSTEM_IMPL_EXPORT void SetParentPipeHandle(HANDLE pipe);
38 #endif
39
26 // Basic configuration/initialization ------------------------------------------ 40 // Basic configuration/initialization ------------------------------------------
27 41
28 // |Init()| sets up the basic Mojo system environment, making the |Mojo...()| 42 // |Init()| sets up the basic Mojo system environment, making the |Mojo...()|
29 // functions available and functional. This is never shut down (except in tests 43 // functions available and functional. This is never shut down (except in tests
30 // -- see test_embedder.h). 44 // -- see test_embedder.h).
31 45
32 // Allows changing the default max message size. Must be called before Init. 46 // Allows changing the default max message size. Must be called before Init.
33 MOJO_SYSTEM_IMPL_EXPORT void SetMaxMessageSize(size_t bytes); 47 MOJO_SYSTEM_IMPL_EXPORT void SetMaxMessageSize(size_t bytes);
34 48
35 // Must be called first, or just after setting configuration parameters, to 49 // Must be called first, or just after setting configuration parameters, to
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 243
230 // Inform the channel that it will soon be destroyed (doing so is optional). 244 // Inform the channel that it will soon be destroyed (doing so is optional).
231 // This may be called from any thread, but the caller must ensure that this is 245 // This may be called from any thread, but the caller must ensure that this is
232 // called before |DestroyChannel()|. 246 // called before |DestroyChannel()|.
233 MOJO_SYSTEM_IMPL_EXPORT void WillDestroyChannelSoon(ChannelInfo* channel_info); 247 MOJO_SYSTEM_IMPL_EXPORT void WillDestroyChannelSoon(ChannelInfo* channel_info);
234 248
235 } // namespace embedder 249 } // namespace embedder
236 } // namespace mojo 250 } // namespace mojo
237 251
238 #endif // THIRD_PARTY_MOJO_SRC_MOJO_EDK_EMBEDDER_EMBEDDER_H_ 252 #endif // THIRD_PARTY_MOJO_SRC_MOJO_EDK_EMBEDDER_EMBEDDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698