| 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_PUBLIC_TEST_JAVASCRIPT_TEST_OBSERVER_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_JAVASCRIPT_TEST_OBSERVER_H_ |
| 6 #define CONTENT_PUBLIC_TEST_JAVASCRIPT_TEST_OBSERVER_H_ | 6 #define CONTENT_PUBLIC_TEST_JAVASCRIPT_TEST_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "content/public/browser/notification_observer.h" | 12 #include "content/public/browser/notification_observer.h" |
| 13 #include "content/public/browser/notification_registrar.h" | 13 #include "content/public/browser/notification_registrar.h" |
| 14 | 14 |
| 15 namespace base { | |
| 16 class DictionaryValue; | |
| 17 } | |
| 18 | |
| 19 namespace content { | 15 namespace content { |
| 20 class WebContents; | 16 class WebContents; |
| 21 | 17 |
| 22 // Base class for handling a stream of automation messages produced by a | 18 // Base class for handling a stream of automation messages produced by a |
| 23 // JavascriptTestObserver. | 19 // JavascriptTestObserver. |
| 24 class TestMessageHandler { | 20 class TestMessageHandler { |
| 25 public: | 21 public: |
| 26 enum MessageResponse { | 22 enum MessageResponse { |
| 27 // Reset the timeout and keep running. | 23 // Reset the timeout and keep running. |
| 28 CONTINUE, | 24 CONTINUE, |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 bool running_; | 85 bool running_; |
| 90 bool finished_; | 86 bool finished_; |
| 91 NotificationRegistrar registrar_; | 87 NotificationRegistrar registrar_; |
| 92 | 88 |
| 93 DISALLOW_COPY_AND_ASSIGN(JavascriptTestObserver); | 89 DISALLOW_COPY_AND_ASSIGN(JavascriptTestObserver); |
| 94 }; | 90 }; |
| 95 | 91 |
| 96 } // namespace content | 92 } // namespace content |
| 97 | 93 |
| 98 #endif // CONTENT_PUBLIC_TEST_JAVASCRIPT_TEST_OBSERVER_H_ | 94 #endif // CONTENT_PUBLIC_TEST_JAVASCRIPT_TEST_OBSERVER_H_ |
| OLD | NEW |