Chromium Code Reviews| Index: chrome/browser/android/background_sync_launcher_android.h |
| diff --git a/content/browser/android/background_sync_launcher_android.h b/chrome/browser/android/background_sync_launcher_android.h |
| similarity index 72% |
| rename from content/browser/android/background_sync_launcher_android.h |
| rename to chrome/browser/android/background_sync_launcher_android.h |
| index 77018f44c07faa7396b1e8563542c80335b7c223..e3f68ba81c3d1d6094ef0237d991abbb6e1ca7eb 100644 |
| --- a/content/browser/android/background_sync_launcher_android.h |
| +++ b/chrome/browser/android/background_sync_launcher_android.h |
| @@ -2,25 +2,28 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -#ifndef CONTENT_BROWSER_ANDROID_BACKGROUND_SYNC_LAUNCHER_ANDROID_H_ |
| -#define CONTENT_BROWSER_ANDROID_BACKGROUND_SYNC_LAUNCHER_ANDROID_H_ |
| +#ifndef CHROME_BROWSER_ANDROID_BACKGROUND_SYNC_LAUNCHER_ANDROID_H_ |
| +#define CHROME_BROWSER_ANDROID_BACKGROUND_SYNC_LAUNCHER_ANDROID_H_ |
| #include <set> |
| #include "base/android/jni_android.h" |
| #include "base/lazy_instance.h" |
| #include "base/macros.h" |
| -#include "content/common/content_export.h" |
| namespace content { |
| class BackgroundSyncManager; |
| +}; |
|
jkarlin
2015/10/14 18:30:28
remove semicolon
iclelland
2015/10/14 19:31:24
Done.
|
| + |
| +namespace chrome { |
| +namespace android { |
|
jkarlin
2015/10/14 18:30:28
Should be in top level namespace
iclelland
2015/10/14 19:31:24
Done.
|
| // The BackgroundSyncLauncherAndroid singleton owns the Java |
| // BackgroundSyncLauncher object and is used to register interest in starting |
| // the browser the next time the device goes online. This class runs on the UI |
| // thread. |
| -class CONTENT_EXPORT BackgroundSyncLauncherAndroid { |
| +class BackgroundSyncLauncherAndroid { |
| public: |
| static BackgroundSyncLauncherAndroid* Get(); |
| @@ -32,7 +35,7 @@ class CONTENT_EXPORT BackgroundSyncLauncherAndroid { |
| // created (browser restart). The caller can remove interest in launching the |
| // browser by calling with |launch_when_next_online| set to false. |
| static void LaunchBrowserWhenNextOnline( |
| - const BackgroundSyncManager* registrant, |
| + const content::BackgroundSyncManager* registrant, |
| bool launch_when_next_online); |
| static bool RegisterLauncher(JNIEnv* env); |
| @@ -44,14 +47,17 @@ class CONTENT_EXPORT BackgroundSyncLauncherAndroid { |
| BackgroundSyncLauncherAndroid(); |
| ~BackgroundSyncLauncherAndroid(); |
| - void LaunchBrowserWhenNextOnlineImpl(const BackgroundSyncManager* registrant, |
| - bool launch_when_next_online); |
| + void LaunchBrowserWhenNextOnlineImpl( |
| + const content::BackgroundSyncManager* registrant, |
| + bool launch_when_next_online); |
| - std::set<const BackgroundSyncManager*> launch_when_next_online_registrants_; |
| + std::set<const content::BackgroundSyncManager*> |
| + launch_when_next_online_registrants_; |
| base::android::ScopedJavaGlobalRef<jobject> java_launcher_; |
| DISALLOW_COPY_AND_ASSIGN(BackgroundSyncLauncherAndroid); |
| }; |
| -} // namespace content |
| +} // namespace android |
| +} // namespace chrome |
| -#endif // CONTENT_BROWSER_ANDROID_BACKGROUND_SYNC_LAUNCHER_ANDROID_H_ |
| +#endif // CHROME_BROWSER_ANDROID_BACKGROUND_SYNC_LAUNCHER_ANDROID_H_ |