OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_VIEW_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
11 #include <queue> | 11 #include <queue> |
12 #include <set> | 12 #include <set> |
13 #include <string> | 13 #include <string> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/basictypes.h" | 16 #include "base/basictypes.h" |
17 #include "base/gtest_prod_util.h" | 17 #include "base/gtest_prod_util.h" |
18 #include "base/id_map.h" | 18 #include "base/id_map.h" |
19 #include "base/memory/linked_ptr.h" | 19 #include "base/memory/linked_ptr.h" |
20 #include "base/memory/weak_ptr.h" | 20 #include "base/memory/weak_ptr.h" |
21 #include "base/observer_list.h" | 21 #include "base/observer_list.h" |
22 #include "base/timer.h" | 22 #include "base/timer.h" |
23 #include "build/build_config.h" | 23 #include "build/build_config.h" |
24 #include "content/renderer/renderer_webcookiejar_impl.h" | 24 #include "content/renderer/renderer_webcookiejar_impl.h" |
25 #include "content/common/edit_command.h" | 25 #include "content/common/edit_command.h" |
26 #include "content/common/navigation_gesture.h" | 26 #include "content/common/navigation_gesture.h" |
27 #include "content/common/page_zoom.h" | 27 #include "content/common/page_zoom.h" |
28 #include "content/common/renderer_preferences.h" | 28 #include "content/common/renderer_preferences.h" |
29 #include "content/renderer/media/audio_message_filter.h" | |
30 #include "content/renderer/media/audio_message_filter_creator.h" | |
29 #include "content/renderer/pepper_plugin_delegate_impl.h" | 31 #include "content/renderer/pepper_plugin_delegate_impl.h" |
30 #include "content/renderer/render_widget.h" | 32 #include "content/renderer/render_widget.h" |
31 #include "ipc/ipc_platform_file.h" | 33 #include "ipc/ipc_platform_file.h" |
32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityNotif ication.h" | 34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityNotif ication.h" |
33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" | 35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" |
34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystem.h" | 36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystem.h" |
35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h" | 37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h" |
36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIconURL.h" | 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIconURL.h" |
37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" | 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" |
38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat e.h" | 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat e.h" |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
202 WebKit::WebView* webview() const; | 204 WebKit::WebView* webview() const; |
203 | 205 |
204 // Called by a GraphicsContext associated with this view when swapbuffers | 206 // Called by a GraphicsContext associated with this view when swapbuffers |
205 // completes or is aborted. | 207 // completes or is aborted. |
206 void OnViewContextSwapBuffersComplete(); | 208 void OnViewContextSwapBuffersComplete(); |
207 void OnViewContextSwapBuffersAborted(); | 209 void OnViewContextSwapBuffersAborted(); |
208 | 210 |
209 int page_id() const { return page_id_; } | 211 int page_id() const { return page_id_; } |
210 PepperPluginDelegateImpl* pepper_delegate() { return &pepper_delegate_; } | 212 PepperPluginDelegateImpl* pepper_delegate() { return &pepper_delegate_; } |
211 | 213 |
212 AudioMessageFilter* audio_message_filter() { | 214 AudioMessageFilter* audio_message_filter() { |
scherkus (not reviewing)
2011/06/14 22:22:12
will you move this to RenderThread or get rid of t
henrika_dont_use
2011/06/15 15:16:39
Removed. Now uses singleton directly.
On 2011/06/
| |
213 return audio_message_filter_; | 215 AudioMessageFilter* audio_message_filter = |
216 AudioMessageFilterCreator::SharedFilter(); | |
217 return audio_message_filter; | |
214 } | 218 } |
215 | 219 |
216 const WebPreferences& webkit_preferences() const { | 220 const WebPreferences& webkit_preferences() const { |
217 return webkit_preferences_; | 221 return webkit_preferences_; |
218 } | 222 } |
219 | 223 |
220 bool content_state_immediately() { return send_content_state_immediately_; } | 224 bool content_state_immediately() { return send_content_state_immediately_; } |
221 int enabled_bindings() const { return enabled_bindings_; } | 225 int enabled_bindings() const { return enabled_bindings_; } |
222 void set_enabled_bindings(int b) { enabled_bindings_ = b; } | 226 void set_enabled_bindings(int b) { enabled_bindings_ = b; } |
223 void set_send_content_state_immediately(bool value) { | 227 void set_send_content_state_immediately(bool value) { |
(...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1159 // bunch of stuff, you should probably create a helper class and put your | 1163 // bunch of stuff, you should probably create a helper class and put your |
1160 // data and methods on that to avoid bloating RenderView more. You can use | 1164 // data and methods on that to avoid bloating RenderView more. You can use |
1161 // the Observer interface to filter IPC messages and receive frame change | 1165 // the Observer interface to filter IPC messages and receive frame change |
1162 // notifications. | 1166 // notifications. |
1163 // --------------------------------------------------------------------------- | 1167 // --------------------------------------------------------------------------- |
1164 | 1168 |
1165 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1169 DISALLOW_COPY_AND_ASSIGN(RenderView); |
1166 }; | 1170 }; |
1167 | 1171 |
1168 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ | 1172 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |