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

Side by Side Diff: chrome/browser/android/foreign_session_helper.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FOREIGN_SESSION_HELPER_H_ 5 #ifndef CHROME_BROWSER_ANDROID_FOREIGN_SESSION_HELPER_H_
6 #define CHROME_BROWSER_ANDROID_FOREIGN_SESSION_HELPER_H_ 6 #define CHROME_BROWSER_ANDROID_FOREIGN_SESSION_HELPER_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/scoped_observer.h" 12 #include "base/scoped_observer.h"
13 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
14 #include "components/sync/driver/sync_service_observer.h" 14 #include "components/sync/driver/sync_service_observer.h"
15 15
16 using base::android::ScopedJavaLocalRef; 16 using base::android::ScopedJavaLocalRef;
17 17
18 struct SessionWindow;
19
20 namespace browser_sync {
21 struct SyncedSession;
22 } // namespace browser_sync
23
24 namespace syncer { 18 namespace syncer {
25 class SyncService; 19 class SyncService;
26 } // namespace syncer 20 } // namespace syncer
27 21
28 class ForeignSessionHelper : public syncer::SyncServiceObserver { 22 class ForeignSessionHelper : public syncer::SyncServiceObserver {
29 public: 23 public:
30 explicit ForeignSessionHelper(Profile* profile); 24 explicit ForeignSessionHelper(Profile* profile);
31 void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj); 25 void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj);
32 jboolean IsTabSyncEnabled(JNIEnv* env, 26 jboolean IsTabSyncEnabled(JNIEnv* env,
33 const base::android::JavaParamRef<jobject>& obj); 27 const base::android::JavaParamRef<jobject>& obj);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 62
69 Profile* profile_; // weak 63 Profile* profile_; // weak
70 base::android::ScopedJavaGlobalRef<jobject> callback_; 64 base::android::ScopedJavaGlobalRef<jobject> callback_;
71 ScopedObserver<syncer::SyncService, syncer::SyncServiceObserver> 65 ScopedObserver<syncer::SyncService, syncer::SyncServiceObserver>
72 scoped_observer_; 66 scoped_observer_;
73 67
74 DISALLOW_COPY_AND_ASSIGN(ForeignSessionHelper); 68 DISALLOW_COPY_AND_ASSIGN(ForeignSessionHelper);
75 }; 69 };
76 70
77 #endif // CHROME_BROWSER_ANDROID_FOREIGN_SESSION_HELPER_H_ 71 #endif // CHROME_BROWSER_ANDROID_FOREIGN_SESSION_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698