| 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 |
| 11 #include "base/macros.h" |
| 11 #include "base/supports_user_data.h" | 12 #include "base/supports_user_data.h" |
| 12 #include "content/browser/loader/global_routing_id.h" | 13 #include "content/browser/loader/global_routing_id.h" |
| 13 #include "content/public/browser/web_contents_observer.h" | 14 #include "content/public/browser/web_contents_observer.h" |
| 14 | 15 |
| 15 namespace content { | 16 namespace content { |
| 16 | 17 |
| 17 // If your test framework enables a ContentBrowserSanityChecker, this sanity | 18 // If your test framework enables a ContentBrowserSanityChecker, this sanity |
| 18 // check is automatically installed on all WebContentses during your test. | 19 // check is automatically installed on all WebContentses during your test. |
| 19 // | 20 // |
| 20 // WebContentsObserverSanityChecker is a WebContentsObserver that sanity-checks | 21 // WebContentsObserverSanityChecker is a WebContentsObserver that sanity-checks |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 std::map<GlobalRoutingID, GlobalRoutingID> parent_ids_; | 113 std::map<GlobalRoutingID, GlobalRoutingID> parent_ids_; |
| 113 | 114 |
| 114 bool web_contents_destroyed_; | 115 bool web_contents_destroyed_; |
| 115 | 116 |
| 116 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverSanityChecker); | 117 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverSanityChecker); |
| 117 }; | 118 }; |
| 118 | 119 |
| 119 } // namespace content | 120 } // namespace content |
| 120 | 121 |
| 121 #endif // CONTENT_TEST_WEB_CONTENTS_OBSERVER_SANITY_CHECKER_H_ | 122 #endif // CONTENT_TEST_WEB_CONTENTS_OBSERVER_SANITY_CHECKER_H_ |
| OLD | NEW |