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 <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
15 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
16 #include "base/id_map.h" | 16 #include "base/id_map.h" |
17 #include "base/memory/linked_ptr.h" | 17 #include "base/memory/linked_ptr.h" |
18 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
19 #include "base/observer_list.h" | 19 #include "base/observer_list.h" |
20 #include "base/process/process.h" | 20 #include "base/process/process.h" |
21 #include "base/strings/string16.h" | 21 #include "base/strings/string16.h" |
22 #include "base/timer/timer.h" | 22 #include "base/timer/timer.h" |
23 #include "build/build_config.h" | 23 #include "build/build_config.h" |
24 #include "cc/input/top_controls_state.h" | 24 #include "cc/input/top_controls_state.h" |
25 #include "cc/resources/shared_bitmap.h" | 25 #include "cc/resources/shared_bitmap.h" |
26 #include "content/common/content_export.h" | 26 #include "content/common/content_export.h" |
27 #include "content/common/drag_event_source_info.h" | 27 #include "content/common/drag_event_source_info.h" |
28 #include "content/common/edit_command.h" | 28 #include "content/common/edit_command.h" |
| 29 #include "content/common/frame_message_enums.h" |
29 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 30 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
30 #include "content/common/navigation_gesture.h" | 31 #include "content/common/navigation_gesture.h" |
| 32 #include "content/common/navigation_params.h" |
31 #include "content/common/view_message_enums.h" | 33 #include "content/common/view_message_enums.h" |
32 #include "content/public/common/page_zoom.h" | 34 #include "content/public/common/page_zoom.h" |
33 #include "content/public/common/referrer.h" | 35 #include "content/public/common/referrer.h" |
34 #include "content/public/common/renderer_preferences.h" | 36 #include "content/public/common/renderer_preferences.h" |
35 #include "content/public/common/stop_find_action.h" | 37 #include "content/public/common/stop_find_action.h" |
36 #include "content/public/common/top_controls_state.h" | 38 #include "content/public/common/top_controls_state.h" |
37 #include "content/public/common/web_preferences.h" | 39 #include "content/public/common/web_preferences.h" |
38 #include "content/public/renderer/render_view.h" | 40 #include "content/public/renderer/render_view.h" |
39 #include "content/renderer/mouse_lock_dispatcher.h" | 41 #include "content/renderer/mouse_lock_dispatcher.h" |
40 #include "content/renderer/render_frame_impl.h" | 42 #include "content/renderer/render_frame_impl.h" |
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 // still live here and are called from RenderFrameImpl. These implementations | 628 // still live here and are called from RenderFrameImpl. These implementations |
627 // are to be moved to RenderFrameImpl <http://crbug.com/361761>. | 629 // are to be moved to RenderFrameImpl <http://crbug.com/361761>. |
628 | 630 |
629 void didCreateDataSource(blink::WebLocalFrame* frame, | 631 void didCreateDataSource(blink::WebLocalFrame* frame, |
630 blink::WebDataSource* datasource); | 632 blink::WebDataSource* datasource); |
631 void didClearWindowObject(blink::WebLocalFrame* frame); | 633 void didClearWindowObject(blink::WebLocalFrame* frame); |
632 void didChangeIcon(blink::WebLocalFrame*, blink::WebIconURL::Type); | 634 void didChangeIcon(blink::WebLocalFrame*, blink::WebIconURL::Type); |
633 void didUpdateCurrentHistoryItem(blink::WebLocalFrame* frame); | 635 void didUpdateCurrentHistoryItem(blink::WebLocalFrame* frame); |
634 void didChangeScrollOffset(blink::WebLocalFrame* frame); | 636 void didChangeScrollOffset(blink::WebLocalFrame* frame); |
635 | 637 |
636 static bool IsReload(const FrameMsg_Navigate_Params& params); | 638 static bool IsReload(FrameMsg_Navigate_Type::Value navigation_type); |
637 | 639 |
638 static Referrer GetReferrerFromRequest( | 640 static Referrer GetReferrerFromRequest( |
639 blink::WebFrame* frame, | 641 blink::WebFrame* frame, |
640 const blink::WebURLRequest& request); | 642 const blink::WebURLRequest& request); |
641 | 643 |
642 static WindowOpenDisposition NavigationPolicyToDisposition( | 644 static WindowOpenDisposition NavigationPolicyToDisposition( |
643 blink::WebNavigationPolicy policy); | 645 blink::WebNavigationPolicy policy); |
644 | 646 |
645 void UpdateSessionHistory(blink::WebFrame* frame); | 647 void UpdateSessionHistory(blink::WebFrame* frame); |
646 void SendUpdateState(HistoryEntry* entry); | 648 void SendUpdateState(HistoryEntry* entry); |
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1131 // use the Observer interface to filter IPC messages and receive frame change | 1133 // use the Observer interface to filter IPC messages and receive frame change |
1132 // notifications. | 1134 // notifications. |
1133 // --------------------------------------------------------------------------- | 1135 // --------------------------------------------------------------------------- |
1134 | 1136 |
1135 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1137 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1136 }; | 1138 }; |
1137 | 1139 |
1138 } // namespace content | 1140 } // namespace content |
1139 | 1141 |
1140 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1142 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |