| 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_PUBLIC_RENDERER_RENDER_THREAD_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ |
| 6 #define CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ | 6 #define CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 // Returns the one render thread for this process. Note that this can only | 45 // Returns the one render thread for this process. Note that this can only |
| 46 // be accessed when running on the render thread itself. | 46 // be accessed when running on the render thread itself. |
| 47 static RenderThread* Get(); | 47 static RenderThread* Get(); |
| 48 | 48 |
| 49 RenderThread(); | 49 RenderThread(); |
| 50 ~RenderThread() override; | 50 ~RenderThread() override; |
| 51 | 51 |
| 52 virtual IPC::SyncChannel* GetChannel() = 0; | 52 virtual IPC::SyncChannel* GetChannel() = 0; |
| 53 virtual std::string GetLocale() = 0; | 53 virtual std::string GetLocale() = 0; |
| 54 virtual IPC::SyncMessageFilter* GetSyncMessageFilter() = 0; | 54 virtual IPC::SyncMessageFilter* GetSyncMessageFilter() = 0; |
| 55 virtual scoped_refptr<base::SingleThreadTaskRunner> GetIOTaskRunner() = 0; | |
| 56 | 55 |
| 57 // Called to add or remove a listener for a particular message routing ID. | 56 // Called to add or remove a listener for a particular message routing ID. |
| 58 // These methods normally get delegated to a MessageRouter. | 57 // These methods normally get delegated to a MessageRouter. |
| 59 virtual void AddRoute(int32_t routing_id, IPC::Listener* listener) = 0; | 58 virtual void AddRoute(int32_t routing_id, IPC::Listener* listener) = 0; |
| 60 virtual void RemoveRoute(int32_t routing_id) = 0; | 59 virtual void RemoveRoute(int32_t routing_id) = 0; |
| 61 virtual int GenerateRoutingID() = 0; | 60 virtual int GenerateRoutingID() = 0; |
| 62 | 61 |
| 63 // These map to IPC::ChannelProxy methods. | 62 // These map to IPC::ChannelProxy methods. |
| 64 virtual void AddFilter(IPC::MessageFilter* filter) = 0; | 63 virtual void AddFilter(IPC::MessageFilter* filter) = 0; |
| 65 virtual void RemoveFilter(IPC::MessageFilter* filter) = 0; | 64 virtual void RemoveFilter(IPC::MessageFilter* filter) = 0; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 GetLoadingTaskRunner() = 0; | 112 GetLoadingTaskRunner() = 0; |
| 114 | 113 |
| 115 // Tells the renderer that a field trial was activated. | 114 // Tells the renderer that a field trial was activated. |
| 116 virtual void SetFieldTrialGroup(const std::string& trial_name, | 115 virtual void SetFieldTrialGroup(const std::string& trial_name, |
| 117 const std::string& group_name) = 0; | 116 const std::string& group_name) = 0; |
| 118 }; | 117 }; |
| 119 | 118 |
| 120 } // namespace content | 119 } // namespace content |
| 121 | 120 |
| 122 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ | 121 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ |
| OLD | NEW |