OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CHROME_BROWSER_ANDROID_BACKGROUND_SYNC_LAUNCHER_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_BACKGROUND_SYNC_LAUNCHER_ANDROID_H_ |
6 #define CHROME_BROWSER_ANDROID_BACKGROUND_SYNC_LAUNCHER_ANDROID_H_ | 6 #define CHROME_BROWSER_ANDROID_BACKGROUND_SYNC_LAUNCHER_ANDROID_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <set> | 10 #include <set> |
(...skipping 13 matching lines...) Expand all Loading... |
24 static void LaunchBrowserIfStopped(bool launch_when_next_online, | 24 static void LaunchBrowserIfStopped(bool launch_when_next_online, |
25 int64_t min_delay_ms); | 25 int64_t min_delay_ms); |
26 | 26 |
27 static bool ShouldDisableBackgroundSync(); | 27 static bool ShouldDisableBackgroundSync(); |
28 | 28 |
29 // TODO(iclelland): Remove this once the bots have their play services package | 29 // TODO(iclelland): Remove this once the bots have their play services package |
30 // updated before every test run. (https://crbug.com/514449) | 30 // updated before every test run. (https://crbug.com/514449) |
31 static void SetPlayServicesVersionCheckDisabledForTests(bool disabled); | 31 static void SetPlayServicesVersionCheckDisabledForTests(bool disabled); |
32 | 32 |
33 private: | 33 private: |
34 friend struct base::DefaultLazyInstanceTraits<BackgroundSyncLauncherAndroid>; | 34 friend struct base::LazyInstanceTraitsBase<BackgroundSyncLauncherAndroid>; |
35 | 35 |
36 // Constructor and destructor marked private to enforce singleton | 36 // Constructor and destructor marked private to enforce singleton |
37 BackgroundSyncLauncherAndroid(); | 37 BackgroundSyncLauncherAndroid(); |
38 ~BackgroundSyncLauncherAndroid(); | 38 ~BackgroundSyncLauncherAndroid(); |
39 | 39 |
40 void LaunchBrowserIfStoppedImpl(bool launch_when_next_online, | 40 void LaunchBrowserIfStoppedImpl(bool launch_when_next_online, |
41 int64_t min_delay_ms); | 41 int64_t min_delay_ms); |
42 | 42 |
43 base::android::ScopedJavaGlobalRef<jobject> java_launcher_; | 43 base::android::ScopedJavaGlobalRef<jobject> java_launcher_; |
44 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncLauncherAndroid); | 44 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncLauncherAndroid); |
45 }; | 45 }; |
46 | 46 |
47 #endif // CHROME_BROWSER_ANDROID_BACKGROUND_SYNC_LAUNCHER_ANDROID_H_ | 47 #endif // CHROME_BROWSER_ANDROID_BACKGROUND_SYNC_LAUNCHER_ANDROID_H_ |
OLD | NEW |