OLD | NEW |
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; | 18 struct SessionWindow; |
19 | 19 |
20 namespace browser_sync { | 20 namespace browser_sync { |
21 struct SyncedSession; | 21 struct SyncedSession; |
22 } // namespace browser_sync | 22 } // namespace browser_sync |
23 | 23 |
24 namespace sync_driver { | 24 namespace sync_driver { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 Profile* profile_; // weak | 69 Profile* profile_; // weak |
70 base::android::ScopedJavaGlobalRef<jobject> callback_; | 70 base::android::ScopedJavaGlobalRef<jobject> callback_; |
71 ScopedObserver<sync_driver::SyncService, sync_driver::SyncServiceObserver> | 71 ScopedObserver<sync_driver::SyncService, sync_driver::SyncServiceObserver> |
72 scoped_observer_; | 72 scoped_observer_; |
73 | 73 |
74 DISALLOW_COPY_AND_ASSIGN(ForeignSessionHelper); | 74 DISALLOW_COPY_AND_ASSIGN(ForeignSessionHelper); |
75 }; | 75 }; |
76 | 76 |
77 #endif // CHROME_BROWSER_ANDROID_FOREIGN_SESSION_HELPER_H_ | 77 #endif // CHROME_BROWSER_ANDROID_FOREIGN_SESSION_HELPER_H_ |
OLD | NEW |