OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_RENDERER_RENDER_THREAD_H_ | 5 #ifndef CHROME_RENDERER_RENDER_THREAD_H_ |
6 #define CHROME_RENDERER_RENDER_THREAD_H_ | 6 #define CHROME_RENDERER_RENDER_THREAD_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/gfx/native_widget_types.h" | 10 #include "base/gfx/native_widget_types.h" |
11 #include "base/shared_memory.h" | 11 #include "base/shared_memory.h" |
12 #include "base/task.h" | 12 #include "base/task.h" |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
14 #include "chrome/common/child_thread.h" | 14 #include "chrome/common/child_thread.h" |
15 #include "chrome/renderer/renderer_histogram_snapshots.h" | 15 #include "chrome/renderer/renderer_histogram_snapshots.h" |
16 | 16 |
17 class FilePath; | 17 class FilePath; |
18 class NotificationService; | 18 class NotificationService; |
19 class RenderDnsMaster; | 19 class RenderDnsMaster; |
20 class RendererHistogram; | 20 class RendererHistogram; |
21 class SkBitmap; | 21 class SkBitmap; |
22 class UserScriptSlave; | 22 class UserScriptSlave; |
23 class VisitedLinkSlave; | 23 class VisitedLinkSlave; |
24 struct ModalDialogEvent; | 24 struct ModalDialogEvent; |
25 struct WebPreferences; | 25 struct WebPreferences; |
26 | 26 |
| 27 namespace webkit_glue { |
| 28 class WebKitClientImpl; |
| 29 } |
| 30 |
27 // The RenderThreadBase is the minimal interface that a RenderView/Widget | 31 // The RenderThreadBase is the minimal interface that a RenderView/Widget |
28 // expects from a render thread. The interface basically abstracts a way to send | 32 // expects from a render thread. The interface basically abstracts a way to send |
29 // and receive messages. | 33 // and receive messages. |
30 class RenderThreadBase { | 34 class RenderThreadBase { |
31 public: | 35 public: |
32 virtual ~RenderThreadBase() {} | 36 virtual ~RenderThreadBase() {} |
33 | 37 |
34 virtual bool Send(IPC::Message* msg) = 0; | 38 virtual bool Send(IPC::Message* msg) = 0; |
35 | 39 |
36 // Called to add or remove a listener for a particular message routing ID. | 40 // Called to add or remove a listener for a particular message routing ID. |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 UserScriptSlave* user_script_slave_; | 135 UserScriptSlave* user_script_slave_; |
132 | 136 |
133 scoped_ptr<RenderDnsMaster> render_dns_master_; | 137 scoped_ptr<RenderDnsMaster> render_dns_master_; |
134 | 138 |
135 scoped_ptr<RendererHistogramSnapshots> renderer_histogram_snapshots_; | 139 scoped_ptr<RendererHistogramSnapshots> renderer_histogram_snapshots_; |
136 | 140 |
137 scoped_ptr<ScopedRunnableMethodFactory<RenderThread> > cache_stats_factory_; | 141 scoped_ptr<ScopedRunnableMethodFactory<RenderThread> > cache_stats_factory_; |
138 | 142 |
139 scoped_ptr<NotificationService> notification_service_; | 143 scoped_ptr<NotificationService> notification_service_; |
140 | 144 |
| 145 scoped_ptr<webkit_glue::WebKitClientImpl> webkit_client_impl_; |
| 146 |
141 DISALLOW_COPY_AND_ASSIGN(RenderThread); | 147 DISALLOW_COPY_AND_ASSIGN(RenderThread); |
142 }; | 148 }; |
143 | 149 |
144 #endif // CHROME_RENDERER_RENDER_THREAD_H_ | 150 #endif // CHROME_RENDERER_RENDER_THREAD_H_ |
OLD | NEW |