OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_NESTED_MESSAGE_PUMP_ANDROID_ | 5 #ifndef CONTENT_PUBLIC_TEST_NESTED_MESSAGE_PUMP_ANDROID_H_ |
6 #define CONTENT_PUBLIC_TEST_NESTED_MESSAGE_PUMP_ANDROID_ | 6 #define CONTENT_PUBLIC_TEST_NESTED_MESSAGE_PUMP_ANDROID_H_ |
7 | 7 |
8 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/message_loop/message_pump_android.h" | 10 #include "base/message_loop/message_pump_android.h" |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 | 13 |
14 // A nested message pump to be used for content browsertests and layout tests | 14 // A nested message pump to be used for content browsertests and layout tests |
15 // on Android. It overrides the default UI message pump to allow nested loops. | 15 // on Android. It overrides the default UI message pump to allow nested loops. |
16 class NestedMessagePumpAndroid : public base::MessagePumpForUI { | 16 class NestedMessagePumpAndroid : public base::MessagePumpForUI { |
(...skipping 16 matching lines...) Expand all Loading... |
33 // separate between them in this structure type. | 33 // separate between them in this structure type. |
34 struct RunState; | 34 struct RunState; |
35 | 35 |
36 RunState* state_; | 36 RunState* state_; |
37 | 37 |
38 DISALLOW_COPY_AND_ASSIGN(NestedMessagePumpAndroid); | 38 DISALLOW_COPY_AND_ASSIGN(NestedMessagePumpAndroid); |
39 }; | 39 }; |
40 | 40 |
41 } // namespace content | 41 } // namespace content |
42 | 42 |
43 #endif // CONTENT_PUBLIC_TEST_NESTED_MESSAGE_PUMP_ANDROID_ | 43 #endif // CONTENT_PUBLIC_TEST_NESTED_MESSAGE_PUMP_ANDROID_H_ |
OLD | NEW |