| 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_RECENTLY_CLOSED_TABS_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_RECENTLY_CLOSED_TABS_BRIDGE_H_ |
| 6 #define CHROME_BROWSER_ANDROID_RECENTLY_CLOSED_TABS_BRIDGE_H_ | 6 #define CHROME_BROWSER_ANDROID_RECENTLY_CLOSED_TABS_BRIDGE_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/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/macros.h" |
| 12 #include "components/sessions/core/tab_restore_service_observer.h" | 13 #include "components/sessions/core/tab_restore_service_observer.h" |
| 13 | 14 |
| 14 class Profile; | 15 class Profile; |
| 15 | 16 |
| 16 // Provides the list of recently closed tabs to Java. | 17 // Provides the list of recently closed tabs to Java. |
| 17 class RecentlyClosedTabsBridge : public sessions::TabRestoreServiceObserver { | 18 class RecentlyClosedTabsBridge : public sessions::TabRestoreServiceObserver { |
| 18 public: | 19 public: |
| 19 explicit RecentlyClosedTabsBridge(Profile* profile); | 20 explicit RecentlyClosedTabsBridge(Profile* profile); |
| 20 | 21 |
| 21 void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj); | 22 void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 // The profile whose recently closed tabs are being monitored. | 62 // The profile whose recently closed tabs are being monitored. |
| 62 Profile* profile_; | 63 Profile* profile_; |
| 63 | 64 |
| 64 // TabRestoreService that we are observing. | 65 // TabRestoreService that we are observing. |
| 65 sessions::TabRestoreService* tab_restore_service_; | 66 sessions::TabRestoreService* tab_restore_service_; |
| 66 | 67 |
| 67 DISALLOW_COPY_AND_ASSIGN(RecentlyClosedTabsBridge); | 68 DISALLOW_COPY_AND_ASSIGN(RecentlyClosedTabsBridge); |
| 68 }; | 69 }; |
| 69 | 70 |
| 70 #endif // CHROME_BROWSER_ANDROID_RECENTLY_CLOSED_TABS_BRIDGE_H_ | 71 #endif // CHROME_BROWSER_ANDROID_RECENTLY_CLOSED_TABS_BRIDGE_H_ |
| OLD | NEW |