| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_RENDER_THREAD_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 static RenderThreadImpl* current(); | 168 static RenderThreadImpl* current(); |
| 169 static mojom::RenderMessageFilter* current_render_message_filter(); | 169 static mojom::RenderMessageFilter* current_render_message_filter(); |
| 170 static const scoped_refptr<mojom::ThreadSafeRenderMessageFilterAssociatedPtr>& | 170 static const scoped_refptr<mojom::ThreadSafeRenderMessageFilterAssociatedPtr>& |
| 171 current_thread_safe_render_message_filter(); | 171 current_thread_safe_render_message_filter(); |
| 172 | 172 |
| 173 static void SetRenderMessageFilterForTesting( | 173 static void SetRenderMessageFilterForTesting( |
| 174 mojom::RenderMessageFilter* render_message_filter); | 174 mojom::RenderMessageFilter* render_message_filter); |
| 175 | 175 |
| 176 ~RenderThreadImpl() override; | 176 ~RenderThreadImpl() override; |
| 177 void Shutdown() override; | 177 void Shutdown() override; |
| 178 bool ShouldBeDestroyed() override; |
| 178 | 179 |
| 179 // When initializing WebKit, ensure that any schemes needed for the content | 180 // When initializing WebKit, ensure that any schemes needed for the content |
| 180 // module are registered properly. Static to allow sharing with tests. | 181 // module are registered properly. Static to allow sharing with tests. |
| 181 static void RegisterSchemes(); | 182 static void RegisterSchemes(); |
| 182 | 183 |
| 183 // RenderThread implementation: | 184 // RenderThread implementation: |
| 184 bool Send(IPC::Message* msg) override; | 185 bool Send(IPC::Message* msg) override; |
| 185 IPC::SyncChannel* GetChannel() override; | 186 IPC::SyncChannel* GetChannel() override; |
| 186 std::string GetLocale() override; | 187 std::string GetLocale() override; |
| 187 IPC::SyncMessageFilter* GetSyncMessageFilter() override; | 188 IPC::SyncMessageFilter* GetSyncMessageFilter() override; |
| (...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 759 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 760 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 760 }; | 761 }; |
| 761 | 762 |
| 762 #if defined(COMPILER_MSVC) | 763 #if defined(COMPILER_MSVC) |
| 763 #pragma warning(pop) | 764 #pragma warning(pop) |
| 764 #endif | 765 #endif |
| 765 | 766 |
| 766 } // namespace content | 767 } // namespace content |
| 767 | 768 |
| 768 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 769 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |