| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 COMPONENTS_SESSIONS_CORE_PERSISTENT_TAB_RESTORE_SERVICE_H_ | 5 #ifndef COMPONENTS_SESSIONS_CORE_PERSISTENT_TAB_RESTORE_SERVICE_H_ |
| 6 #define COMPONENTS_SESSIONS_CORE_PERSISTENT_TAB_RESTORE_SERVICE_H_ | 6 #define COMPONENTS_SESSIONS_CORE_PERSISTENT_TAB_RESTORE_SERVICE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "components/sessions/core/sessions_export.h" |
| 13 #include "components/sessions/core/tab_restore_service.h" | 14 #include "components/sessions/core/tab_restore_service.h" |
| 14 #include "components/sessions/core/tab_restore_service_client.h" | 15 #include "components/sessions/core/tab_restore_service_client.h" |
| 15 #include "components/sessions/core/tab_restore_service_helper.h" | 16 #include "components/sessions/core/tab_restore_service_helper.h" |
| 16 #include "components/sessions/sessions_export.h" | |
| 17 | 17 |
| 18 class PersistentTabRestoreServiceTest; | 18 class PersistentTabRestoreServiceTest; |
| 19 | 19 |
| 20 namespace sessions { | 20 namespace sessions { |
| 21 | 21 |
| 22 // Tab restore service that persists data on disk. | 22 // Tab restore service that persists data on disk. |
| 23 class SESSIONS_EXPORT PersistentTabRestoreService : public TabRestoreService { | 23 class SESSIONS_EXPORT PersistentTabRestoreService : public TabRestoreService { |
| 24 public: | 24 public: |
| 25 // Does not take ownership of |time_factory|. | 25 // Does not take ownership of |time_factory|. |
| 26 PersistentTabRestoreService(scoped_ptr<TabRestoreServiceClient> client, | 26 PersistentTabRestoreService(scoped_ptr<TabRestoreServiceClient> client, |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 scoped_ptr<TabRestoreServiceClient> client_; | 62 scoped_ptr<TabRestoreServiceClient> client_; |
| 63 scoped_ptr<Delegate> delegate_; | 63 scoped_ptr<Delegate> delegate_; |
| 64 TabRestoreServiceHelper helper_; | 64 TabRestoreServiceHelper helper_; |
| 65 | 65 |
| 66 DISALLOW_COPY_AND_ASSIGN(PersistentTabRestoreService); | 66 DISALLOW_COPY_AND_ASSIGN(PersistentTabRestoreService); |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace sessions | 69 } // namespace sessions |
| 70 | 70 |
| 71 #endif // COMPONENTS_SESSIONS_CORE_PERSISTENT_TAB_RESTORE_SERVICE_H_ | 71 #endif // COMPONENTS_SESSIONS_CORE_PERSISTENT_TAB_RESTORE_SERVICE_H_ |
| OLD | NEW |