| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_TEST_WEB_CONTENTS_OBSERVER_SANITY_CHECKER_H_ | 5 #ifndef CONTENT_TEST_WEB_CONTENTS_OBSERVER_SANITY_CHECKER_H_ |
| 6 #define CONTENT_TEST_WEB_CONTENTS_OBSERVER_SANITY_CHECKER_H_ | 6 #define CONTENT_TEST_WEB_CONTENTS_OBSERVER_SANITY_CHECKER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 void EnsureStableParentValue(RenderFrameHost* render_frame_host); | 101 void EnsureStableParentValue(RenderFrameHost* render_frame_host); |
| 102 bool HasAnyChildren(RenderFrameHost* render_frame_host); | 102 bool HasAnyChildren(RenderFrameHost* render_frame_host); |
| 103 | 103 |
| 104 std::set<GlobalRoutingID> current_hosts_; | 104 std::set<GlobalRoutingID> current_hosts_; |
| 105 std::set<GlobalRoutingID> live_routes_; | 105 std::set<GlobalRoutingID> live_routes_; |
| 106 std::set<GlobalRoutingID> deleted_routes_; | 106 std::set<GlobalRoutingID> deleted_routes_; |
| 107 | 107 |
| 108 std::set<NavigationHandle*> ongoing_navigations_; | 108 std::set<NavigationHandle*> ongoing_navigations_; |
| 109 std::vector<MediaPlayerId> active_media_players_; | 109 std::vector<MediaPlayerId> active_media_players_; |
| 110 | 110 |
| 111 base::hash_map<WebContents*, std::string> created_web_contents_; |
| 112 |
| 111 // Remembers parents to make sure RenderFrameHost::GetParent() never changes. | 113 // Remembers parents to make sure RenderFrameHost::GetParent() never changes. |
| 112 std::map<GlobalRoutingID, GlobalRoutingID> parent_ids_; | 114 std::map<GlobalRoutingID, GlobalRoutingID> parent_ids_; |
| 113 | 115 |
| 114 bool is_loading_; | 116 bool is_loading_; |
| 115 | 117 |
| 116 bool web_contents_destroyed_; | 118 bool web_contents_destroyed_; |
| 117 | 119 |
| 118 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverSanityChecker); | 120 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverSanityChecker); |
| 119 }; | 121 }; |
| 120 | 122 |
| 121 } // namespace content | 123 } // namespace content |
| 122 | 124 |
| 123 #endif // CONTENT_TEST_WEB_CONTENTS_OBSERVER_SANITY_CHECKER_H_ | 125 #endif // CONTENT_TEST_WEB_CONTENTS_OBSERVER_SANITY_CHECKER_H_ |
| OLD | NEW |