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_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "content/common/edit_command.h" | 21 #include "content/common/edit_command.h" |
22 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 22 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
23 #include "content/common/navigation_gesture.h" | 23 #include "content/common/navigation_gesture.h" |
24 #include "content/common/view_message_enums.h" | 24 #include "content/common/view_message_enums.h" |
25 #include "content/public/common/javascript_message_type.h" | 25 #include "content/public/common/javascript_message_type.h" |
26 #include "content/public/common/page_zoom.h" | 26 #include "content/public/common/page_zoom.h" |
27 #include "content/public/common/referrer.h" | 27 #include "content/public/common/referrer.h" |
28 #include "content/public/common/renderer_preferences.h" | 28 #include "content/public/common/renderer_preferences.h" |
29 #include "content/public/common/stop_find_action.h" | 29 #include "content/public/common/stop_find_action.h" |
30 #include "content/public/renderer/render_view.h" | 30 #include "content/public/renderer/render_view.h" |
31 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h" | 31 #include "content/renderer/mouse_lock_dispatcher.h" |
| 32 #include "content/renderer/plugin_delegate_helper.h" |
32 #include "content/renderer/render_widget.h" | 33 #include "content/renderer/render_widget.h" |
33 #include "content/renderer/renderer_webcookiejar_impl.h" | 34 #include "content/renderer/renderer_webcookiejar_impl.h" |
34 #include "ipc/ipc_platform_file.h" | 35 #include "ipc/ipc_platform_file.h" |
35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" | 36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" |
36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h" | 37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h" |
37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h" | 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h" |
38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIconURL.h" | 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIconURL.h" |
39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationType.h" | 41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationType.h" |
41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" | 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 struct WebDropData; | 74 struct WebDropData; |
74 | 75 |
75 namespace ui { | 76 namespace ui { |
76 struct SelectedFileInfo; | 77 struct SelectedFileInfo; |
77 } // namespace ui | 78 } // namespace ui |
78 | 79 |
79 namespace webkit { | 80 namespace webkit { |
80 | 81 |
81 namespace ppapi { | 82 namespace ppapi { |
82 class PluginInstance; | 83 class PluginInstance; |
83 class WebPluginImpl; | |
84 } // namespace ppapi | 84 } // namespace ppapi |
85 | 85 |
86 } // namespace webkit | 86 } // namespace webkit |
87 | 87 |
88 namespace webkit_glue { | 88 namespace webkit_glue { |
89 class ImageResourceFetcher; | 89 class ImageResourceFetcher; |
90 class ResourceFetcher; | 90 class ResourceFetcher; |
91 } | 91 } |
92 | 92 |
93 #if defined(OS_ANDROID) | 93 #if defined(OS_ANDROID) |
(...skipping 1441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1535 // If this render view is a swapped out "mirror" of an active render view in a | 1535 // If this render view is a swapped out "mirror" of an active render view in a |
1536 // different process, we record the process id and route id for the active RV. | 1536 // different process, we record the process id and route id for the active RV. |
1537 // For further details, see the comments on ViewHostMsg_FrameTreeUpdated. | 1537 // For further details, see the comments on ViewHostMsg_FrameTreeUpdated. |
1538 int target_process_id_; | 1538 int target_process_id_; |
1539 int target_routing_id_; | 1539 int target_routing_id_; |
1540 | 1540 |
1541 // A map of the current process's frame ids to ids in the remote active render | 1541 // A map of the current process's frame ids to ids in the remote active render |
1542 // view, if this is a swapped out render view. | 1542 // view, if this is a swapped out render view. |
1543 std::map<int, int> active_frame_id_map_; | 1543 std::map<int, int> active_frame_id_map_; |
1544 | 1544 |
1545 // NOTE: pepper_delegate_ should be last member because its constructor calls | |
1546 // AddObservers method of RenderViewImpl from c-tor. | |
1547 PepperPluginDelegateImpl pepper_delegate_; | |
1548 | |
1549 // This field stores drag/drop related info for the event that is currently | 1545 // This field stores drag/drop related info for the event that is currently |
1550 // being handled. If the current event results in starting a drag/drop | 1546 // being handled. If the current event results in starting a drag/drop |
1551 // session, this info is sent to the browser along with other drag/drop info. | 1547 // session, this info is sent to the browser along with other drag/drop info. |
1552 DragEventSourceInfo possible_drag_event_info_; | 1548 DragEventSourceInfo possible_drag_event_info_; |
1553 | 1549 |
| 1550 // NOTE: pepper_delegate_ should be last member because its constructor calls |
| 1551 // AddObservers method of RenderViewImpl from c-tor. |
| 1552 scoped_ptr<PluginDelegateHelper> pepper_delegate_; |
| 1553 |
1554 // --------------------------------------------------------------------------- | 1554 // --------------------------------------------------------------------------- |
1555 // ADDING NEW DATA? Please see if it fits appropriately in one of the above | 1555 // ADDING NEW DATA? Please see if it fits appropriately in one of the above |
1556 // sections rather than throwing it randomly at the end. If you're adding a | 1556 // sections rather than throwing it randomly at the end. If you're adding a |
1557 // bunch of stuff, you should probably create a helper class and put your | 1557 // bunch of stuff, you should probably create a helper class and put your |
1558 // data and methods on that to avoid bloating RenderView more. You can | 1558 // data and methods on that to avoid bloating RenderView more. You can |
1559 // use the Observer interface to filter IPC messages and receive frame change | 1559 // use the Observer interface to filter IPC messages and receive frame change |
1560 // notifications. | 1560 // notifications. |
1561 // --------------------------------------------------------------------------- | 1561 // --------------------------------------------------------------------------- |
1562 | 1562 |
1563 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1563 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1564 }; | 1564 }; |
1565 | 1565 |
1566 } // namespace content | 1566 } // namespace content |
1567 | 1567 |
1568 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1568 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |