OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_FRAME_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
13 #include "base/id_map.h" | 13 #include "base/id_map.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
16 #include "base/process/process_handle.h" | 16 #include "base/process/process_handle.h" |
17 #include "base/strings/string16.h" | 17 #include "base/strings/string16.h" |
18 #include "content/public/renderer/render_frame.h" | 18 #include "content/public/renderer/render_frame.h" |
19 #include "content/renderer/renderer_webcookiejar_impl.h" | 19 #include "content/renderer/renderer_webcookiejar_impl.h" |
20 #include "ipc/ipc_message.h" | 20 #include "ipc/ipc_message.h" |
21 #include "third_party/WebKit/public/web/WebDataSource.h" | 21 #include "third_party/WebKit/public/web/WebDataSource.h" |
22 #include "third_party/WebKit/public/web/WebFrameClient.h" | 22 #include "third_party/WebKit/public/web/WebFrameClient.h" |
23 | 23 |
24 class TransportDIB; | 24 class TransportDIB; |
25 struct FrameMsg_BuffersSwapped_Params; | 25 struct FrameMsg_BuffersSwapped_Params; |
26 struct FrameMsg_CompositorFrameSwapped_Params; | 26 struct FrameMsg_CompositorFrameSwapped_Params; |
| 27 struct FrameMsg_Navigate_Params; |
27 | 28 |
28 namespace blink { | 29 namespace blink { |
29 class WebInputEvent; | 30 class WebInputEvent; |
30 class WebMouseEvent; | 31 class WebMouseEvent; |
31 struct WebCompositionUnderline; | 32 struct WebCompositionUnderline; |
32 struct WebContextMenuData; | 33 struct WebContextMenuData; |
33 struct WebCursorInfo; | 34 struct WebCursorInfo; |
34 } | 35 } |
35 | 36 |
36 namespace gfx { | 37 namespace gfx { |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 // Functions to add and remove observers for this object. | 342 // Functions to add and remove observers for this object. |
342 void AddObserver(RenderFrameObserver* observer); | 343 void AddObserver(RenderFrameObserver* observer); |
343 void RemoveObserver(RenderFrameObserver* observer); | 344 void RemoveObserver(RenderFrameObserver* observer); |
344 | 345 |
345 void UpdateURL(blink::WebFrame* frame); | 346 void UpdateURL(blink::WebFrame* frame); |
346 | 347 |
347 // IPC message handlers ------------------------------------------------------ | 348 // IPC message handlers ------------------------------------------------------ |
348 // | 349 // |
349 // The documentation for these functions should be in | 350 // The documentation for these functions should be in |
350 // content/common/*_messages.h for the message that the function is handling. | 351 // content/common/*_messages.h for the message that the function is handling. |
| 352 void OnNavigate(const FrameMsg_Navigate_Params& params); |
351 void OnSwapOut(); | 353 void OnSwapOut(); |
352 void OnChildFrameProcessGone(); | 354 void OnChildFrameProcessGone(); |
353 void OnBuffersSwapped(const FrameMsg_BuffersSwapped_Params& params); | 355 void OnBuffersSwapped(const FrameMsg_BuffersSwapped_Params& params); |
354 void OnCompositorFrameSwapped(const IPC::Message& message); | 356 void OnCompositorFrameSwapped(const IPC::Message& message); |
355 void OnShowContextMenu(const gfx::Point& location); | 357 void OnShowContextMenu(const gfx::Point& location); |
356 void OnContextMenuClosed(const CustomContextMenuContext& custom_context); | 358 void OnContextMenuClosed(const CustomContextMenuContext& custom_context); |
357 void OnCustomContextMenuAction(const CustomContextMenuContext& custom_context, | 359 void OnCustomContextMenuAction(const CustomContextMenuContext& custom_context, |
358 unsigned action); | 360 unsigned action); |
359 | 361 |
360 // Returns whether |params.selection_text| should be synchronized to the | 362 // Returns whether |params.selection_text| should be synchronized to the |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 // always respond properly to the request, so we don't have to worry so | 400 // always respond properly to the request, so we don't have to worry so |
399 // much about leaks. | 401 // much about leaks. |
400 IDMap<ContextMenuClient, IDMapExternalPointer> pending_context_menus_; | 402 IDMap<ContextMenuClient, IDMapExternalPointer> pending_context_menus_; |
401 | 403 |
402 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 404 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
403 }; | 405 }; |
404 | 406 |
405 } // namespace content | 407 } // namespace content |
406 | 408 |
407 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 409 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |