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

Side by Side Diff: mojo/edk/embedder/embedder_internal.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 // This header contains internal details for the *implementation* of the 5 // This header contains internal details for the *implementation* of the
6 // embedder API. It should not be included by any public header (nor by users of 6 // embedder API. It should not be included by any public header (nor by users of
7 // the embedder API). 7 // the embedder API).
8 8
9 #ifndef MOJO_EDK_EMBEDDER_EMBEDDER_INTERNAL_H_ 9 #ifndef MOJO_EDK_EMBEDDER_EMBEDDER_INTERNAL_H_
10 #define MOJO_EDK_EMBEDDER_EMBEDDER_INTERNAL_H_ 10 #define MOJO_EDK_EMBEDDER_EMBEDDER_INTERNAL_H_
11 11
12 #include <stdint.h> 12 #include <stdint.h>
13 13
14 #include "mojo/edk/system/system_impl_export.h" 14 #include "mojo/edk/system/system_impl_export.h"
15 15
16 namespace base { 16 namespace base {
17 class TaskRunner; 17 class TaskRunner;
18 } 18 }
19 19
20 namespace mojo { 20 namespace mojo {
21 21
22 namespace edk { 22 namespace edk {
23 23
24 class Core; 24 class Core;
25 class PlatformSupport; 25 class PlatformSupport;
26 class ProcessDelegate; 26 class ProcessDelegate;
27 class TokenSerializer;
27 28
28 namespace internal { 29 namespace internal {
29 30
31 #if defined(OS_WIN)
32 // Instance of |TokenSerializer| to use.
33 extern TokenSerializer* g_token_serializer;
34 #endif
35
30 // Instance of |PlatformSupport| to use. 36 // Instance of |PlatformSupport| to use.
31 extern PlatformSupport* g_platform_support; 37 extern PlatformSupport* g_platform_support;
32 38
33 // Instance of |Core| used by the system functions (|Mojo...()|). 39 // Instance of |Core| used by the system functions (|Mojo...()|).
34 extern Core* g_core; 40 extern Core* g_core;
35 extern base::TaskRunner* g_delegate_thread_task_runner; 41 extern base::TaskRunner* g_delegate_thread_task_runner;
36 extern ProcessDelegate* g_process_delegate; 42 extern ProcessDelegate* g_process_delegate;
37 extern base::TaskRunner* g_io_thread_task_runner; 43 extern base::TaskRunner* g_io_thread_task_runner;
38 44
39 // TODO(use_chrome_edk): temporary until we have only one SDK. 45 // TODO(use_chrome_edk): temporary until we have only one SDK.
40 MOJO_SYSTEM_IMPL_EXPORT Core* GetCore(); 46 MOJO_SYSTEM_IMPL_EXPORT Core* GetCore();
41 47
42 // Called on the IO thread. 48 // Called on the IO thread.
43 void ChannelStarted(); 49 void ChannelStarted();
44 void ChannelShutdown(); 50 void ChannelShutdown();
45 } // namespace internal 51 } // namespace internal
46 52
47 } // namepace edk 53 } // namepace edk
48 54
49 } // namespace mojo 55 } // namespace mojo
50 56
51 #endif // MOJO_EDK_EMBEDDER_EMBEDDER_INTERNAL_H_ 57 #endif // MOJO_EDK_EMBEDDER_EMBEDDER_INTERNAL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698