| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 ~WebContentsObserverSanityChecker() override; | 84 ~WebContentsObserverSanityChecker() override; |
| 85 | 85 |
| 86 std::string Format(RenderFrameHost* render_frame_host); | 86 std::string Format(RenderFrameHost* render_frame_host); |
| 87 void AssertRenderFrameExists(RenderFrameHost* render_frame_host); | 87 void AssertRenderFrameExists(RenderFrameHost* render_frame_host); |
| 88 void AssertMainFrameExists(); | 88 void AssertMainFrameExists(); |
| 89 | 89 |
| 90 std::set<std::pair<int, int>> current_hosts_; | 90 std::set<std::pair<int, int>> current_hosts_; |
| 91 std::set<std::pair<int, int>> live_routes_; | 91 std::set<std::pair<int, int>> live_routes_; |
| 92 std::set<std::pair<int, int>> deleted_routes_; | 92 std::set<std::pair<int, int>> deleted_routes_; |
| 93 | 93 |
| 94 base::hash_map<std::pair<int, int>, std::string> render_frame_created_stacks_; |
| 95 base::hash_map<std::pair<int, int>, std::string> render_frame_deleted_stacks_; |
| 96 |
| 94 bool web_contents_destroyed_; | 97 bool web_contents_destroyed_; |
| 95 | 98 |
| 96 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverSanityChecker); | 99 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverSanityChecker); |
| 97 }; | 100 }; |
| 98 | 101 |
| 99 } // namespace content | 102 } // namespace content |
| 100 | 103 |
| 101 #endif // CONTENT_TEST_WEB_CONTENTS_OBSERVER_SANITY_CHECKER_H_ | 104 #endif // CONTENT_TEST_WEB_CONTENTS_OBSERVER_SANITY_CHECKER_H_ |
| OLD | NEW |