| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 } | 59 } |
| 60 | 60 |
| 61 namespace v8 { | 61 namespace v8 { |
| 62 class Extension; | 62 class Extension; |
| 63 } | 63 } |
| 64 | 64 |
| 65 // The RenderThreadImpl class represents a background thread where RenderView | 65 // The RenderThreadImpl class represents a background thread where RenderView |
| 66 // instances live. The RenderThread supports an API that is used by its | 66 // instances live. The RenderThread supports an API that is used by its |
| 67 // consumer to talk indirectly to the RenderViews and supporting objects. | 67 // consumer to talk indirectly to the RenderViews and supporting objects. |
| 68 // Likewise, it provides an API for the RenderViews to talk back to the main | 68 // Likewise, it provides an API for the RenderViews to talk back to the main |
| 69 // process (i.e., their corresponding TabContents). | 69 // process (i.e., their corresponding WebContentsImpl). |
| 70 // | 70 // |
| 71 // Most of the communication occurs in the form of IPC messages. They are | 71 // Most of the communication occurs in the form of IPC messages. They are |
| 72 // routed to the RenderThread according to the routing IDs of the messages. | 72 // routed to the RenderThread according to the routing IDs of the messages. |
| 73 // The routing IDs correspond to RenderView instances. | 73 // The routing IDs correspond to RenderView instances. |
| 74 class CONTENT_EXPORT RenderThreadImpl : public content::RenderThread, | 74 class CONTENT_EXPORT RenderThreadImpl : public content::RenderThread, |
| 75 public ChildThread, | 75 public ChildThread, |
| 76 public GpuChannelHostFactory { | 76 public GpuChannelHostFactory { |
| 77 public: | 77 public: |
| 78 static RenderThreadImpl* current(); | 78 static RenderThreadImpl* current(); |
| 79 | 79 |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 | 274 |
| 275 bool compositor_initialized_; | 275 bool compositor_initialized_; |
| 276 scoped_ptr<CompositorThread> compositor_thread_; | 276 scoped_ptr<CompositorThread> compositor_thread_; |
| 277 | 277 |
| 278 ObserverList<content::RenderProcessObserver> observers_; | 278 ObserverList<content::RenderProcessObserver> observers_; |
| 279 | 279 |
| 280 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 280 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 281 }; | 281 }; |
| 282 | 282 |
| 283 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 283 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |