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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 const blink::WebURL& url); | 322 const blink::WebURL& url); |
322 virtual blink::WebString doNotTrackValue(blink::WebFrame* frame); | 323 virtual blink::WebString doNotTrackValue(blink::WebFrame* frame); |
323 virtual bool allowWebGL(blink::WebFrame* frame, bool default_value); | 324 virtual bool allowWebGL(blink::WebFrame* frame, bool default_value); |
324 virtual void didLoseWebGLContext(blink::WebFrame* frame, | 325 virtual void didLoseWebGLContext(blink::WebFrame* frame, |
325 int arb_robustness_status_code); | 326 int arb_robustness_status_code); |
326 virtual void forwardInputEvent(const blink::WebInputEvent* event); | 327 virtual void forwardInputEvent(const blink::WebInputEvent* event); |
327 | 328 |
328 // TODO(jam): move this to WebFrameClient | 329 // TODO(jam): move this to WebFrameClient |
329 virtual void showContextMenu(const blink::WebContextMenuData& data); | 330 virtual void showContextMenu(const blink::WebContextMenuData& data); |
330 | 331 |
| 332 // TODO(nasko): Make all tests in RenderViewImplTest friends and then move |
| 333 // this back to private member. |
| 334 void OnNavigate(const FrameMsg_Navigate_Params& params); |
| 335 |
331 protected: | 336 protected: |
332 RenderFrameImpl(RenderViewImpl* render_view, int32 routing_id); | 337 RenderFrameImpl(RenderViewImpl* render_view, int32 routing_id); |
333 | 338 |
334 private: | 339 private: |
335 friend class RenderFrameObserver; | 340 friend class RenderFrameObserver; |
336 FRIEND_TEST_ALL_PREFIXES(RenderFrameImplTest, | 341 FRIEND_TEST_ALL_PREFIXES(RenderFrameImplTest, |
337 ShouldUpdateSelectionTextFromContextMenuParams); | 342 ShouldUpdateSelectionTextFromContextMenuParams); |
338 | 343 |
339 typedef std::map<GURL, double> HostZoomLevels; | 344 typedef std::map<GURL, double> HostZoomLevels; |
340 | 345 |
(...skipping 57 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 | 403 // always respond properly to the request, so we don't have to worry so |
399 // much about leaks. | 404 // much about leaks. |
400 IDMap<ContextMenuClient, IDMapExternalPointer> pending_context_menus_; | 405 IDMap<ContextMenuClient, IDMapExternalPointer> pending_context_menus_; |
401 | 406 |
402 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 407 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
403 }; | 408 }; |
404 | 409 |
405 } // namespace content | 410 } // namespace content |
406 | 411 |
407 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 412 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |