| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CONTENT_PUBLIC_CHILD_CHILD_THREAD_H_ | 5 #ifndef CONTENT_PUBLIC_CHILD_CHILD_THREAD_H_ |
| 6 #define CONTENT_PUBLIC_CHILD_CHILD_THREAD_H_ | 6 #define CONTENT_PUBLIC_CHILD_CHILD_THREAD_H_ |
| 7 | 7 |
| 8 #include <memory> | |
| 9 #include <string> | 8 #include <string> |
| 10 | 9 |
| 11 #include "base/logging.h" | 10 #include "base/logging.h" |
| 12 #include "build/build_config.h" | 11 #include "build/build_config.h" |
| 13 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
| 14 #include "ipc/ipc_sender.h" | 13 #include "ipc/ipc_sender.h" |
| 15 | 14 |
| 16 #if defined(OS_WIN) | 15 #if defined(OS_WIN) |
| 17 #include <windows.h> | 16 #include <windows.h> |
| 18 #endif | 17 #endif |
| 19 | 18 |
| 20 namespace base { | 19 namespace base { |
| 21 struct UserMetricsAction; | 20 struct UserMetricsAction; |
| 22 } | 21 } |
| 23 | 22 |
| 24 namespace shell { | 23 namespace shell { |
| 25 class InterfaceProvider; | 24 class InterfaceProvider; |
| 26 class InterfaceRegistry; | 25 class InterfaceRegistry; |
| 27 } | 26 } |
| 28 | 27 |
| 29 namespace content { | 28 namespace content { |
| 30 | 29 |
| 31 class ConnectionFilter; | 30 class MojoShellConnection; |
| 32 class MojoShellConnection; | |
| 33 | 31 |
| 34 // An abstract base class that contains logic shared between most child | 32 // An abstract base class that contains logic shared between most child |
| 35 // processes of the embedder. | 33 // processes of the embedder. |
| 36 class CONTENT_EXPORT ChildThread : public IPC::Sender { | 34 class CONTENT_EXPORT ChildThread : public IPC::Sender { |
| 37 public: | 35 public: |
| 38 // Returns the one child thread for this process. Note that this can only be | 36 // Returns the one child thread for this process. Note that this can only be |
| 39 // accessed when running on the child thread itself. | 37 // accessed when running on the child thread itself. |
| 40 static ChildThread* Get(); | 38 static ChildThread* Get(); |
| 41 | 39 |
| 42 ~ChildThread() override {} | 40 ~ChildThread() override {} |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 virtual shell::InterfaceRegistry* GetInterfaceRegistry() = 0; | 76 virtual shell::InterfaceRegistry* GetInterfaceRegistry() = 0; |
| 79 | 77 |
| 80 // Returns the InterfaceProvider that this process can use to bind | 78 // Returns the InterfaceProvider that this process can use to bind |
| 81 // interfaces exposed to it by the browser. | 79 // interfaces exposed to it by the browser. |
| 82 virtual shell::InterfaceProvider* GetRemoteInterfaces() = 0; | 80 virtual shell::InterfaceProvider* GetRemoteInterfaces() = 0; |
| 83 }; | 81 }; |
| 84 | 82 |
| 85 } // namespace content | 83 } // namespace content |
| 86 | 84 |
| 87 #endif // CONTENT_PUBLIC_CHILD_CHILD_THREAD_H_ | 85 #endif // CONTENT_PUBLIC_CHILD_CHILD_THREAD_H_ |
| OLD | NEW |