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> |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 class SkBitmap; | 85 class SkBitmap; |
86 class InputTagSpeechDispatcher; | 86 class InputTagSpeechDispatcher; |
87 class SpeechRecognitionDispatcher; | 87 class SpeechRecognitionDispatcher; |
88 struct ViewMsg_Navigate_Params; | 88 struct ViewMsg_Navigate_Params; |
89 struct ViewMsg_PostMessage_Params; | 89 struct ViewMsg_PostMessage_Params; |
90 struct ViewMsg_StopFinding_Params; | 90 struct ViewMsg_StopFinding_Params; |
91 struct ViewMsg_SwapOut_Params; | 91 struct ViewMsg_SwapOut_Params; |
92 struct WebDropData; | 92 struct WebDropData; |
93 class WebIntentsHost; | 93 class WebIntentsHost; |
94 class WebPluginDelegateProxy; | 94 class WebPluginDelegateProxy; |
95 class WebUIBindings; | |
96 | 95 |
97 namespace content { | 96 namespace content { |
98 class DocumentState; | 97 class DocumentState; |
99 class NavigationState; | 98 class NavigationState; |
100 class P2PSocketDispatcher; | 99 class P2PSocketDispatcher; |
101 class RenderViewObserver; | 100 class RenderViewObserver; |
102 class RenderViewTest; | 101 class RenderViewTest; |
103 class RendererAccessibility; | 102 class RendererAccessibility; |
104 class RendererPpapiHost; | 103 class RendererPpapiHost; |
105 struct CustomContextMenuContext; | 104 struct CustomContextMenuContext; |
(...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1081 | 1080 |
1082 // Locates a sub frame with given xpath | 1081 // Locates a sub frame with given xpath |
1083 WebKit::WebFrame* GetChildFrame(const string16& frame_xpath) const; | 1082 WebKit::WebFrame* GetChildFrame(const string16& frame_xpath) const; |
1084 | 1083 |
1085 // Returns the opener url if present, else an empty url. | 1084 // Returns the opener url if present, else an empty url. |
1086 GURL GetOpenerUrl() const; | 1085 GURL GetOpenerUrl() const; |
1087 | 1086 |
1088 // Returns the URL being loaded by the given frame's request. | 1087 // Returns the URL being loaded by the given frame's request. |
1089 GURL GetLoadingUrl(WebKit::WebFrame* frame) const; | 1088 GURL GetLoadingUrl(WebKit::WebFrame* frame) const; |
1090 | 1089 |
1091 WebUIBindings* GetWebUIBindings(); | |
1092 | |
1093 // Should only be called if this object wraps a PluginDocument. | 1090 // Should only be called if this object wraps a PluginDocument. |
1094 WebKit::WebPlugin* GetWebPluginFromPluginDocument(); | 1091 WebKit::WebPlugin* GetWebPluginFromPluginDocument(); |
1095 | 1092 |
1096 // Returns true if the |params| navigation is to an entry that has been | 1093 // Returns true if the |params| navigation is to an entry that has been |
1097 // cropped due to a recent navigation the browser did not know about. | 1094 // cropped due to a recent navigation the browser did not know about. |
1098 bool IsBackForwardToStaleEntry(const ViewMsg_Navigate_Params& params, | 1095 bool IsBackForwardToStaleEntry(const ViewMsg_Navigate_Params& params, |
1099 bool is_reload); | 1096 bool is_reload); |
1100 | 1097 |
1101 #if defined(OS_ANDROID) | 1098 #if defined(OS_ANDROID) |
1102 // Launch an Android content intent with the given URL. | 1099 // Launch an Android content intent with the given URL. |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1402 scoped_refptr<SharedRenderViewCounter> shared_popup_counter_; | 1399 scoped_refptr<SharedRenderViewCounter> shared_popup_counter_; |
1403 | 1400 |
1404 // Whether this is a top level window (instead of a popup). Top level windows | 1401 // Whether this is a top level window (instead of a popup). Top level windows |
1405 // shouldn't count against their own |shared_popup_counter_|. | 1402 // shouldn't count against their own |shared_popup_counter_|. |
1406 bool decrement_shared_popup_at_destruction_; | 1403 bool decrement_shared_popup_at_destruction_; |
1407 | 1404 |
1408 // Stores edit commands associated to the next key event. | 1405 // Stores edit commands associated to the next key event. |
1409 // Shall be cleared as soon as the next key event is processed. | 1406 // Shall be cleared as soon as the next key event is processed. |
1410 EditCommands edit_commands_; | 1407 EditCommands edit_commands_; |
1411 | 1408 |
1412 // Allows Web UI pages (new tab page, etc.) to talk to the browser. The JS | |
1413 // object is only exposed when Web UI bindings are enabled. | |
1414 scoped_ptr<WebUIBindings> web_ui_bindings_; | |
1415 | |
1416 // The external popup for the currently showing select popup. | 1409 // The external popup for the currently showing select popup. |
1417 scoped_ptr<ExternalPopupMenu> external_popup_menu_; | 1410 scoped_ptr<ExternalPopupMenu> external_popup_menu_; |
1418 | 1411 |
1419 // The node that the context menu was pressed over. | 1412 // The node that the context menu was pressed over. |
1420 WebKit::WebNode context_menu_node_; | 1413 WebKit::WebNode context_menu_node_; |
1421 | 1414 |
1422 // Reports load progress to the browser. | 1415 // Reports load progress to the browser. |
1423 scoped_ptr<LoadProgressTracker> load_progress_tracker_; | 1416 scoped_ptr<LoadProgressTracker> load_progress_tracker_; |
1424 | 1417 |
1425 // All the registered observers. We expect this list to be small, so vector | 1418 // All the registered observers. We expect this list to be small, so vector |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1482 // bunch of stuff, you should probably create a helper class and put your | 1475 // bunch of stuff, you should probably create a helper class and put your |
1483 // data and methods on that to avoid bloating RenderView more. You can | 1476 // data and methods on that to avoid bloating RenderView more. You can |
1484 // use the Observer interface to filter IPC messages and receive frame change | 1477 // use the Observer interface to filter IPC messages and receive frame change |
1485 // notifications. | 1478 // notifications. |
1486 // --------------------------------------------------------------------------- | 1479 // --------------------------------------------------------------------------- |
1487 | 1480 |
1488 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1481 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1489 }; | 1482 }; |
1490 | 1483 |
1491 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1484 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |