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_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 // before and after the selection or caret. | 315 // before and after the selection or caret. |
316 void ExtendSelectionAndDelete(size_t before, size_t after); | 316 void ExtendSelectionAndDelete(size_t before, size_t after); |
317 | 317 |
318 // Notifies the RenderFrame that the JavaScript message that was shown was | 318 // Notifies the RenderFrame that the JavaScript message that was shown was |
319 // closed by the user. | 319 // closed by the user. |
320 void JavaScriptDialogClosed(IPC::Message* reply_msg, | 320 void JavaScriptDialogClosed(IPC::Message* reply_msg, |
321 bool success, | 321 bool success, |
322 const base::string16& user_input, | 322 const base::string16& user_input, |
323 bool dialog_was_suppressed); | 323 bool dialog_was_suppressed); |
324 | 324 |
325 // Called when an HTML5 notification is closed. | |
326 void NotificationClosed(int notification_id); | |
327 | |
328 // Clears any outstanding transition request. This is called when we hear the | 325 // Clears any outstanding transition request. This is called when we hear the |
329 // response or commit. | 326 // response or commit. |
330 void ClearPendingTransitionRequestData(); | 327 void ClearPendingTransitionRequestData(); |
331 | 328 |
332 // Send a message to the renderer process to change the accessibility mode. | 329 // Send a message to the renderer process to change the accessibility mode. |
333 void SetAccessibilityMode(AccessibilityMode AccessibilityMode); | 330 void SetAccessibilityMode(AccessibilityMode AccessibilityMode); |
334 | 331 |
335 // Turn on accessibility testing. The given callback will be run | 332 // Turn on accessibility testing. The given callback will be run |
336 // every time an accessibility notification is received from the | 333 // every time an accessibility notification is received from the |
337 // renderer process, and the accessibility tree it sent can be | 334 // renderer process, and the accessibility tree it sent can be |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 // messages from the renderer requesting DOM manipulation. | 529 // messages from the renderer requesting DOM manipulation. |
533 FrameTree* frame_tree_; | 530 FrameTree* frame_tree_; |
534 | 531 |
535 // The FrameTreeNode which this RenderFrameHostImpl is hosted in. | 532 // The FrameTreeNode which this RenderFrameHostImpl is hosted in. |
536 FrameTreeNode* frame_tree_node_; | 533 FrameTreeNode* frame_tree_node_; |
537 | 534 |
538 // The mapping of pending JavaScript calls created by | 535 // The mapping of pending JavaScript calls created by |
539 // ExecuteJavaScript and their corresponding callbacks. | 536 // ExecuteJavaScript and their corresponding callbacks. |
540 std::map<int, JavaScriptResultCallback> javascript_callbacks_; | 537 std::map<int, JavaScriptResultCallback> javascript_callbacks_; |
541 | 538 |
542 // Map from notification_id to a callback to cancel them. | |
543 std::map<int, base::Closure> cancel_notification_callbacks_; | |
544 | |
545 int routing_id_; | 539 int routing_id_; |
546 | 540 |
547 // The current state of this RenderFrameHost. | 541 // The current state of this RenderFrameHost. |
548 RenderFrameHostImplState rfh_state_; | 542 RenderFrameHostImplState rfh_state_; |
549 | 543 |
550 // Tracks whether the RenderFrame for this RenderFrameHost has been created in | 544 // Tracks whether the RenderFrame for this RenderFrameHost has been created in |
551 // the renderer process. Currently only used for subframes. | 545 // the renderer process. Currently only used for subframes. |
552 // TODO(creis): Use this for main frames as well when RVH goes away. | 546 // TODO(creis): Use this for main frames as well when RVH goes away. |
553 bool render_frame_created_; | 547 bool render_frame_created_; |
554 | 548 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
623 | 617 |
624 // NOTE: This must be the last member. | 618 // NOTE: This must be the last member. |
625 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 619 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
626 | 620 |
627 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 621 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
628 }; | 622 }; |
629 | 623 |
630 } // namespace content | 624 } // namespace content |
631 | 625 |
632 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 626 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |