Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.h

Issue 10827078: Support frame tree propagation between renderers in the same browsing instance. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes based on more comments from Albert. Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 #endif 386 #endif
387 387
388 #if defined(OS_ANDROID) 388 #if defined(OS_ANDROID)
389 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices); 389 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices);
390 void DidCancelPopupMenu(); 390 void DidCancelPopupMenu();
391 #endif 391 #endif
392 392
393 // User rotated the screen. Calls the "onorientationchange" Javascript hook. 393 // User rotated the screen. Calls the "onorientationchange" Javascript hook.
394 void SendOrientationChangeEvent(int orientation); 394 void SendOrientationChangeEvent(int orientation);
395 395
396 const std::string& frame_tree() const {
397 return frame_tree_;
398 }
399
400 // Updates the frame tree for this RVH and sends an IPC down to the renderer
401 // process to keep them in sync.
awong 2012/08/22 22:25:47 Refer to comment in view_messages.h.
nasko 2012/08/23 21:55:53 Done.
402 void UpdateFrameTree(int process_id,
403 int route_id,
404 const std::string& frame_tree);
405
396 void set_save_accessibility_tree_for_testing(bool save) { 406 void set_save_accessibility_tree_for_testing(bool save) {
397 save_accessibility_tree_for_testing_ = save; 407 save_accessibility_tree_for_testing_ = save;
398 } 408 }
399 409
400 void set_send_accessibility_updated_notifications(bool send) { 410 void set_send_accessibility_updated_notifications(bool send) {
401 send_accessibility_updated_notifications_ = send; 411 send_accessibility_updated_notifications_ = send;
402 } 412 }
403 413
404 const AccessibilityNodeData& accessibility_tree_for_testing() { 414 const AccessibilityNodeData& accessibility_tree_for_testing() {
405 return accessibility_tree_; 415 return accessibility_tree_;
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 bool has_audio, 545 bool has_audio,
536 bool is_playing); 546 bool is_playing);
537 void OnRequestDesktopNotificationPermission(const GURL& origin, 547 void OnRequestDesktopNotificationPermission(const GURL& origin,
538 int callback_id); 548 int callback_id);
539 void OnShowDesktopNotification( 549 void OnShowDesktopNotification(
540 const ShowDesktopNotificationHostMsgParams& params); 550 const ShowDesktopNotificationHostMsgParams& params);
541 void OnCancelDesktopNotification(int notification_id); 551 void OnCancelDesktopNotification(int notification_id);
542 void OnRunFileChooser(const FileChooserParams& params); 552 void OnRunFileChooser(const FileChooserParams& params);
543 void OnDomOperationResponse(const std::string& json_string, 553 void OnDomOperationResponse(const std::string& json_string,
544 int automation_id); 554 int automation_id);
555 void OnFrameTreeUpdated(const std::string& frame_tree);
545 556
546 #if defined(OS_MACOSX) || defined(OS_ANDROID) 557 #if defined(OS_MACOSX) || defined(OS_ANDROID)
547 void OnMsgShowPopup(const ViewHostMsg_ShowPopup_Params& params); 558 void OnMsgShowPopup(const ViewHostMsg_ShowPopup_Params& params);
548 #endif 559 #endif
549 560
550 #if defined(OS_ANDROID) 561 #if defined(OS_ANDROID)
551 void OnStartContentIntent(const GURL& content_url); 562 void OnStartContentIntent(const GURL& content_url);
552 #endif 563 #endif
553 564
554 private: 565 private:
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 // The session storage namespace to be used by the associated render view. 641 // The session storage namespace to be used by the associated render view.
631 scoped_refptr<SessionStorageNamespaceImpl> session_storage_namespace_; 642 scoped_refptr<SessionStorageNamespaceImpl> session_storage_namespace_;
632 643
633 // Whether the accessibility tree should be saved, for unit testing. 644 // Whether the accessibility tree should be saved, for unit testing.
634 bool save_accessibility_tree_for_testing_; 645 bool save_accessibility_tree_for_testing_;
635 646
636 // Whether accessibility notifications are sent for all WebKit notifications 647 // Whether accessibility notifications are sent for all WebKit notifications
637 // for unit testing. 648 // for unit testing.
638 bool send_accessibility_updated_notifications_; 649 bool send_accessibility_updated_notifications_;
639 650
651 // A JSON serialized representation of the frame tree for the current document
652 // in the render view.
awong 2012/08/22 22:25:47 Refer to the comment in view_messages so people ca
nasko 2012/08/23 21:55:53 Done.
653 std::string frame_tree_;
654
640 // The most recently received accessibility tree - for unit testing only. 655 // The most recently received accessibility tree - for unit testing only.
641 AccessibilityNodeData accessibility_tree_; 656 AccessibilityNodeData accessibility_tree_;
642 657
643 // The termination status of the last render view that terminated. 658 // The termination status of the last render view that terminated.
644 base::TerminationStatus render_view_termination_status_; 659 base::TerminationStatus render_view_termination_status_;
645 660
646 // Holds PowerSaveBlockers for the media players in use. Key is the 661 // Holds PowerSaveBlockers for the media players in use. Key is the
647 // player_cookie passed to OnMediaNotification, value is the PowerSaveBlocker. 662 // player_cookie passed to OnMediaNotification, value is the PowerSaveBlocker.
648 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; 663 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap;
649 PowerSaveBlockerMap power_save_blockers_; 664 PowerSaveBlockerMap power_save_blockers_;
650 665
651 // A list of observers that filter messages. Weak references. 666 // A list of observers that filter messages. Weak references.
652 ObserverList<RenderViewHostObserver> observers_; 667 ObserverList<RenderViewHostObserver> observers_;
653 668
654 // When the last ShouldClose message was sent. 669 // When the last ShouldClose message was sent.
655 base::TimeTicks send_should_close_start_time_; 670 base::TimeTicks send_should_close_start_time_;
656 671
657 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 672 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
658 }; 673 };
659 674
660 #if defined(COMPILER_MSVC) 675 #if defined(COMPILER_MSVC)
661 #pragma warning(pop) 676 #pragma warning(pop)
662 #endif 677 #endif
663 678
664 } // namespace content 679 } // namespace content
665 680
666 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 681 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698