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 BASE_ANDROID_APPLICATION_STATUS_LISTENER_H_ | 5 #ifndef BASE_ANDROID_APPLICATION_STATUS_LISTENER_H_ |
6 #define BASE_ANDROID_APPLICATION_STATUS_LISTENER_H_ | 6 #define BASE_ANDROID_APPLICATION_STATUS_LISTENER_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
11 #include "base/base_export.h" | 11 #include "base/base_export.h" |
12 #include "base/basictypes.h" | 12 #include "base/macros.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/singleton.h" | 14 #include "base/memory/singleton.h" |
15 #include "base/observer_list_threadsafe.h" | 15 #include "base/observer_list_threadsafe.h" |
16 | 16 |
17 namespace base { | 17 namespace base { |
18 namespace android { | 18 namespace android { |
19 | 19 |
20 // Define application state values like APPLICATION_STATE_VISIBLE in a | 20 // Define application state values like APPLICATION_STATE_VISIBLE in a |
21 // way that ensures they're always the same than their Java counterpart. | 21 // way that ensures they're always the same than their Java counterpart. |
22 // | 22 // |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 ApplicationStateChangeCallback callback_; | 83 ApplicationStateChangeCallback callback_; |
84 | 84 |
85 DISALLOW_COPY_AND_ASSIGN(ApplicationStatusListener); | 85 DISALLOW_COPY_AND_ASSIGN(ApplicationStatusListener); |
86 }; | 86 }; |
87 | 87 |
88 } // namespace android | 88 } // namespace android |
89 } // namespace base | 89 } // namespace base |
90 | 90 |
91 #endif // BASE_ANDROID_APPLICATION_STATUS_LISTENER_H_ | 91 #endif // BASE_ANDROID_APPLICATION_STATUS_LISTENER_H_ |
OLD | NEW |