Chromium Code Reviews| 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 "content/public/common/javascript_message_type.h" | |
| 17 #include "content/public/common/referrer.h" | 18 #include "content/public/common/referrer.h" |
| 18 #include "content/public/renderer/render_frame.h" | 19 #include "content/public/renderer/render_frame.h" |
| 19 #include "content/renderer/renderer_webcookiejar_impl.h" | 20 #include "content/renderer/renderer_webcookiejar_impl.h" |
| 20 #include "ipc/ipc_message.h" | 21 #include "ipc/ipc_message.h" |
| 21 #include "third_party/WebKit/public/web/WebDataSource.h" | 22 #include "third_party/WebKit/public/web/WebDataSource.h" |
| 22 #include "third_party/WebKit/public/web/WebFrameClient.h" | 23 #include "third_party/WebKit/public/web/WebFrameClient.h" |
| 23 #include "third_party/WebKit/public/web/WebHistoryCommitType.h" | 24 #include "third_party/WebKit/public/web/WebHistoryCommitType.h" |
| 24 #include "ui/gfx/range/range.h" | 25 #include "ui/gfx/range/range.h" |
| 25 | 26 |
| 26 class TransportDIB; | 27 class TransportDIB; |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 275 const blink::WebURLError& error); | 276 const blink::WebURLError& error); |
| 276 virtual void didFinishLoad(blink::WebFrame* frame); | 277 virtual void didFinishLoad(blink::WebFrame* frame); |
| 277 virtual void didNavigateWithinPage(blink::WebFrame* frame, | 278 virtual void didNavigateWithinPage(blink::WebFrame* frame, |
| 278 const blink::WebHistoryItem& item, | 279 const blink::WebHistoryItem& item, |
| 279 blink::WebHistoryCommitType commit_type); | 280 blink::WebHistoryCommitType commit_type); |
| 280 // DEPRECATED | 281 // DEPRECATED |
| 281 virtual void didNavigateWithinPage(blink::WebLocalFrame* frame, | 282 virtual void didNavigateWithinPage(blink::WebLocalFrame* frame, |
| 282 bool is_new_navigation); | 283 bool is_new_navigation); |
| 283 virtual void didUpdateCurrentHistoryItem(blink::WebLocalFrame* frame); | 284 virtual void didUpdateCurrentHistoryItem(blink::WebLocalFrame* frame); |
| 284 virtual void didChangeSelection(bool is_empty_selection); | 285 virtual void didChangeSelection(bool is_empty_selection); |
| 286 virtual void runModalAlertDialog(blink::WebFrame* frame, | |
|
jam
2014/04/05 00:21:38
I'm guessing these methods are moving from WebView
Avi (use Gerrit)
2014/04/07 16:12:06
The problem is that RenderViewImpl is both a WebFr
| |
| 287 const blink::WebString& message); | |
| 288 virtual bool runModalConfirmDialog(blink::WebFrame* frame, | |
| 289 const blink::WebString& message); | |
| 290 virtual bool runModalPromptDialog(blink::WebFrame* frame, | |
| 291 const blink::WebString& message, | |
| 292 const blink::WebString& default_value, | |
| 293 blink::WebString* actual_value); | |
| 294 virtual bool runModalBeforeUnloadDialog(blink::WebFrame* frame, | |
| 295 bool is_reload, | |
| 296 const blink::WebString& message); | |
| 285 virtual void showContextMenu(const blink::WebContextMenuData& data); | 297 virtual void showContextMenu(const blink::WebContextMenuData& data); |
| 286 virtual void clearContextMenu(); | 298 virtual void clearContextMenu(); |
| 287 virtual void willRequestAfterPreconnect(blink::WebLocalFrame* frame, | 299 virtual void willRequestAfterPreconnect(blink::WebLocalFrame* frame, |
| 288 blink::WebURLRequest& request); | 300 blink::WebURLRequest& request); |
| 289 virtual void willSendRequest(blink::WebLocalFrame* frame, | 301 virtual void willSendRequest(blink::WebLocalFrame* frame, |
| 290 unsigned identifier, | 302 unsigned identifier, |
| 291 blink::WebURLRequest& request, | 303 blink::WebURLRequest& request, |
| 292 const blink::WebURLResponse& redirect_response); | 304 const blink::WebURLResponse& redirect_response); |
| 293 virtual void didReceiveResponse(blink::WebLocalFrame* frame, | 305 virtual void didReceiveResponse(blink::WebLocalFrame* frame, |
| 294 unsigned identifier, | 306 unsigned identifier, |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 438 void SyncSelectionIfRequired(); | 450 void SyncSelectionIfRequired(); |
| 439 | 451 |
| 440 // Returns whether |params.selection_text| should be synchronized to the | 452 // Returns whether |params.selection_text| should be synchronized to the |
| 441 // browser before bringing up the context menu. Static for testing. | 453 // browser before bringing up the context menu. Static for testing. |
| 442 static bool ShouldUpdateSelectionTextFromContextMenuParams( | 454 static bool ShouldUpdateSelectionTextFromContextMenuParams( |
| 443 const base::string16& selection_text, | 455 const base::string16& selection_text, |
| 444 size_t selection_text_offset, | 456 size_t selection_text_offset, |
| 445 const gfx::Range& selection_range, | 457 const gfx::Range& selection_range, |
| 446 const ContextMenuParams& params); | 458 const ContextMenuParams& params); |
| 447 | 459 |
| 460 bool RunJavaScriptMessage(JavaScriptMessageType type, | |
| 461 const base::string16& message, | |
| 462 const base::string16& default_value, | |
| 463 const GURL& frame_url, | |
| 464 base::string16* result); | |
| 465 | |
| 448 // Stores the WebLocalFrame we are associated with. | 466 // Stores the WebLocalFrame we are associated with. |
| 449 blink::WebLocalFrame* frame_; | 467 blink::WebLocalFrame* frame_; |
| 450 | 468 |
| 451 base::WeakPtr<RenderViewImpl> render_view_; | 469 base::WeakPtr<RenderViewImpl> render_view_; |
| 452 int routing_id_; | 470 int routing_id_; |
| 453 bool is_loading_; | 471 bool is_loading_; |
| 454 bool is_swapped_out_; | 472 bool is_swapped_out_; |
| 455 bool is_detaching_; | 473 bool is_detaching_; |
| 456 | 474 |
| 457 #if defined(ENABLE_PLUGINS) | 475 #if defined(ENABLE_PLUGINS) |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 497 // Used to inform didChangeSelection() when it is called in the context | 515 // Used to inform didChangeSelection() when it is called in the context |
| 498 // of handling a InputMsg_SelectRange IPC. | 516 // of handling a InputMsg_SelectRange IPC. |
| 499 bool handling_select_range_; | 517 bool handling_select_range_; |
| 500 | 518 |
| 501 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 519 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 502 }; | 520 }; |
| 503 | 521 |
| 504 } // namespace content | 522 } // namespace content |
| 505 | 523 |
| 506 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 524 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |