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 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
617 // still live here and are called from RenderFrameImpl. These implementations | 619 // still live here and are called from RenderFrameImpl. These implementations |
618 // are to be moved to RenderFrameImpl <http://crbug.com/361761>. | 620 // are to be moved to RenderFrameImpl <http://crbug.com/361761>. |
619 | 621 |
620 void didCreateDataSource(blink::WebLocalFrame* frame, | 622 void didCreateDataSource(blink::WebLocalFrame* frame, |
621 blink::WebDataSource* datasource); | 623 blink::WebDataSource* datasource); |
622 void didClearWindowObject(blink::WebLocalFrame* frame); | 624 void didClearWindowObject(blink::WebLocalFrame* frame); |
623 void didChangeIcon(blink::WebLocalFrame*, blink::WebIconURL::Type); | 625 void didChangeIcon(blink::WebLocalFrame*, blink::WebIconURL::Type); |
624 void didUpdateCurrentHistoryItem(blink::WebLocalFrame* frame); | 626 void didUpdateCurrentHistoryItem(blink::WebLocalFrame* frame); |
625 void didChangeScrollOffset(blink::WebLocalFrame* frame); | 627 void didChangeScrollOffset(blink::WebLocalFrame* frame); |
626 | 628 |
627 static bool IsReload(const FrameMsg_Navigate_Params& params); | 629 static bool IsReload(FrameMsg_Navigate_Type::Value navigation_type); |
628 | 630 |
629 static Referrer GetReferrerFromRequest( | 631 static Referrer GetReferrerFromRequest( |
630 blink::WebFrame* frame, | 632 blink::WebFrame* frame, |
631 const blink::WebURLRequest& request); | 633 const blink::WebURLRequest& request); |
632 | 634 |
633 static WindowOpenDisposition NavigationPolicyToDisposition( | 635 static WindowOpenDisposition NavigationPolicyToDisposition( |
634 blink::WebNavigationPolicy policy); | 636 blink::WebNavigationPolicy policy); |
635 | 637 |
636 void UpdateSessionHistory(blink::WebFrame* frame); | 638 void UpdateSessionHistory(blink::WebFrame* frame); |
637 void SendUpdateState(HistoryEntry* entry); | 639 void SendUpdateState(HistoryEntry* entry); |
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1108 // use the Observer interface to filter IPC messages and receive frame change | 1110 // use the Observer interface to filter IPC messages and receive frame change |
1109 // notifications. | 1111 // notifications. |
1110 // --------------------------------------------------------------------------- | 1112 // --------------------------------------------------------------------------- |
1111 | 1113 |
1112 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1114 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1113 }; | 1115 }; |
1114 | 1116 |
1115 } // namespace content | 1117 } // namespace content |
1116 | 1118 |
1117 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1119 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |