DescriptionAdd base/android/activity_status.cc
This patch adds a small thread-safe wrapper around the Java
org.chromium.base.ActivityStatus that can be used to listen
to activity state changes from native code.
This uses a base::ObserverListThreadSafe to guarantee that
listeners can be registered on any threads, and that their
OnActivityStateChange() method will always be called on the
thread that created them.
+ Ensure both C++ and Java always use the same constants
when it comes to ActivityState values.
R=felipeg@chromium.org, gavinp@chromium.org, pasko@google.com, pliard@chromium.org
BUG=233536
Patch Set 1 #Patch Set 2 : fix bug #
Total comments: 28
Patch Set 3 : Switch to callback-based interface. #Patch Set 4 : Add multi-threaded unit test #Patch Set 5 : formatting #
Total comments: 6
Patch Set 6 : remove RefCountedThreadSafe + ASSERT_* calls in subroutines #Patch Set 7 : Address Marcus' nits + formatting #
Total comments: 16
Patch Set 8 : Address nits #Patch Set 9 : formatting #
Total comments: 1
Patch Set 10 : rebase + comment updates #Patch Set 11 : Removed un-necessary RunLoop nesting in unit test. #
Total comments: 4
Messages
Total messages: 26 (0 generated)
|