| OLD | NEW |
| 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_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 637 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, UpdateTitle); | 637 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, UpdateTitle); |
| 638 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, FindOpenerRVHWhenPending); | 638 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, FindOpenerRVHWhenPending); |
| 639 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, | 639 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, |
| 640 CrossSiteCantPreemptAfterUnload); | 640 CrossSiteCantPreemptAfterUnload); |
| 641 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, PendingContents); | 641 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, PendingContents); |
| 642 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, FrameTreeShape); | 642 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, FrameTreeShape); |
| 643 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, GetLastActiveTime); | 643 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, GetLastActiveTime); |
| 644 FRIEND_TEST_ALL_PREFIXES(FormStructureBrowserTest, HTMLFiles); | 644 FRIEND_TEST_ALL_PREFIXES(FormStructureBrowserTest, HTMLFiles); |
| 645 FRIEND_TEST_ALL_PREFIXES(NavigationControllerTest, HistoryNavigate); | 645 FRIEND_TEST_ALL_PREFIXES(NavigationControllerTest, HistoryNavigate); |
| 646 FRIEND_TEST_ALL_PREFIXES(RenderFrameHostManagerTest, PageDoesBackAndReload); | 646 FRIEND_TEST_ALL_PREFIXES(RenderFrameHostManagerTest, PageDoesBackAndReload); |
| 647 FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest, CrossSiteIframe); |
| 647 | 648 |
| 648 // So InterstitialPageImpl can access SetIsLoading. | 649 // So InterstitialPageImpl can access SetIsLoading. |
| 649 friend class InterstitialPageImpl; | 650 friend class InterstitialPageImpl; |
| 650 | 651 |
| 651 // TODO(brettw) TestWebContents shouldn't exist! | 652 // TODO(brettw) TestWebContents shouldn't exist! |
| 652 friend class TestWebContents; | 653 friend class TestWebContents; |
| 653 | 654 |
| 654 class DestructionObserver; | 655 class DestructionObserver; |
| 655 | 656 |
| 656 // See WebContents::Create for a description of these parameters. | 657 // See WebContents::Create for a description of these parameters. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 667 void OnWebContentsDestroyed(WebContentsImpl* web_contents); | 668 void OnWebContentsDestroyed(WebContentsImpl* web_contents); |
| 668 | 669 |
| 669 // Creates and adds to the map a destruction observer watching |web_contents|. | 670 // Creates and adds to the map a destruction observer watching |web_contents|. |
| 670 // No-op if such an observer already exists. | 671 // No-op if such an observer already exists. |
| 671 void AddDestructionObserver(WebContentsImpl* web_contents); | 672 void AddDestructionObserver(WebContentsImpl* web_contents); |
| 672 | 673 |
| 673 // Deletes and removes from the map a destruction observer | 674 // Deletes and removes from the map a destruction observer |
| 674 // watching |web_contents|. No-op if there is no such observer. | 675 // watching |web_contents|. No-op if there is no such observer. |
| 675 void RemoveDestructionObserver(WebContentsImpl* web_contents); | 676 void RemoveDestructionObserver(WebContentsImpl* web_contents); |
| 676 | 677 |
| 678 // Traverses all the RenderFrameHosts in the FrameTree and creates a set |
| 679 // all the unique RenderWidgetHosts. |
| 680 std::set<RenderWidgetHostImpl*> GetRenderWidgetHostsInTree(); |
| 681 |
| 677 // Callback function when showing JavaScript dialogs. Takes in a routing ID | 682 // Callback function when showing JavaScript dialogs. Takes in a routing ID |
| 678 // pair to identify the RenderFrameHost that opened the dialog, because it's | 683 // pair to identify the RenderFrameHost that opened the dialog, because it's |
| 679 // possible for the RenderFrameHost to be deleted by the time this is called. | 684 // possible for the RenderFrameHost to be deleted by the time this is called. |
| 680 void OnDialogClosed(int render_process_id, | 685 void OnDialogClosed(int render_process_id, |
| 681 int render_frame_id, | 686 int render_frame_id, |
| 682 IPC::Message* reply_msg, | 687 IPC::Message* reply_msg, |
| 683 bool dialog_was_suppressed, | 688 bool dialog_was_suppressed, |
| 684 bool success, | 689 bool success, |
| 685 const base::string16& user_input); | 690 const base::string16& user_input); |
| 686 | 691 |
| (...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1130 bool last_dialog_suppressed_; | 1135 bool last_dialog_suppressed_; |
| 1131 | 1136 |
| 1132 scoped_ptr<GeolocationDispatcherHost> geolocation_dispatcher_host_; | 1137 scoped_ptr<GeolocationDispatcherHost> geolocation_dispatcher_host_; |
| 1133 | 1138 |
| 1134 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 1139 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
| 1135 }; | 1140 }; |
| 1136 | 1141 |
| 1137 } // namespace content | 1142 } // namespace content |
| 1138 | 1143 |
| 1139 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1144 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |