Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: chrome/browser/android/background_sync_launcher_android.h

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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>
11 11
12 #include "base/android/jni_android.h" 12 #include "base/android/jni_android.h"
13 #include "base/lazy_instance.h" 13 #include "base/lazy_instance.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 15
16 namespace content {
17
18 class BackgroundSyncManager;
19
20 }
21
22 // The BackgroundSyncLauncherAndroid singleton owns the Java 16 // The BackgroundSyncLauncherAndroid singleton owns the Java
23 // BackgroundSyncLauncher object and is used to register interest in starting 17 // BackgroundSyncLauncher object and is used to register interest in starting
24 // the browser the next time the device goes online. This class runs on the UI 18 // the browser the next time the device goes online. This class runs on the UI
25 // thread. 19 // thread.
26 class BackgroundSyncLauncherAndroid { 20 class BackgroundSyncLauncherAndroid {
27 public: 21 public:
28 static BackgroundSyncLauncherAndroid* Get(); 22 static BackgroundSyncLauncherAndroid* Get();
29 23
30 static void LaunchBrowserIfStopped(bool launch_when_next_online, 24 static void LaunchBrowserIfStopped(bool launch_when_next_online,
31 int64_t min_delay_ms); 25 int64_t min_delay_ms);
(...skipping 12 matching lines...) Expand all
44 ~BackgroundSyncLauncherAndroid(); 38 ~BackgroundSyncLauncherAndroid();
45 39
46 void LaunchBrowserIfStoppedImpl(bool launch_when_next_online, 40 void LaunchBrowserIfStoppedImpl(bool launch_when_next_online,
47 int64_t min_delay_ms); 41 int64_t min_delay_ms);
48 42
49 base::android::ScopedJavaGlobalRef<jobject> java_launcher_; 43 base::android::ScopedJavaGlobalRef<jobject> java_launcher_;
50 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncLauncherAndroid); 44 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncLauncherAndroid);
51 }; 45 };
52 46
53 #endif // CHROME_BROWSER_ANDROID_BACKGROUND_SYNC_LAUNCHER_ANDROID_H_ 47 #endif // CHROME_BROWSER_ANDROID_BACKGROUND_SYNC_LAUNCHER_ANDROID_H_
OLDNEW
« no previous file with comments | « chrome/app/chrome_crash_reporter_client.h ('k') | chrome/browser/android/bookmarks/partner_bookmarks_shim.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698