| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_IMPL_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_IMPL_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_IMPL_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 class GURL; | 37 class GURL; |
| 38 namespace base { | 38 namespace base { |
| 39 class Clock; | 39 class Clock; |
| 40 class SequencedTaskRunner; | 40 class SequencedTaskRunner; |
| 41 class TimeDelta; | 41 class TimeDelta; |
| 42 class TimeTicks; | 42 class TimeTicks; |
| 43 } // namespace base | 43 } // namespace base |
| 44 | 44 |
| 45 namespace offline_pages { | 45 namespace offline_pages { |
| 46 | 46 |
| 47 static const int64_t kInvalidOfflineId = 0; | |
| 48 | |
| 49 struct ClientId; | 47 struct ClientId; |
| 50 struct OfflinePageItem; | 48 struct OfflinePageItem; |
| 51 | 49 |
| 52 class ArchiveManager; | 50 class ArchiveManager; |
| 53 class ClientPolicyController; | 51 class ClientPolicyController; |
| 54 class OfflinePageStorageManager; | 52 class OfflinePageStorageManager; |
| 55 | 53 |
| 56 // Implementation of service for saving pages offline, storing the offline | 54 // Implementation of service for saving pages offline, storing the offline |
| 57 // copy and metadata, and retrieving them upon request. | 55 // copy and metadata, and retrieving them upon request. |
| 58 class OfflinePageModelImpl : public OfflinePageModel, public KeyedService { | 56 class OfflinePageModelImpl : public OfflinePageModel, public KeyedService { |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 base::Clock* testing_clock_; | 282 base::Clock* testing_clock_; |
| 285 | 283 |
| 286 base::WeakPtrFactory<OfflinePageModelImpl> weak_ptr_factory_; | 284 base::WeakPtrFactory<OfflinePageModelImpl> weak_ptr_factory_; |
| 287 | 285 |
| 288 DISALLOW_COPY_AND_ASSIGN(OfflinePageModelImpl); | 286 DISALLOW_COPY_AND_ASSIGN(OfflinePageModelImpl); |
| 289 }; | 287 }; |
| 290 | 288 |
| 291 } // namespace offline_pages | 289 } // namespace offline_pages |
| 292 | 290 |
| 293 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_IMPL_H_ | 291 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_IMPL_H_ |
| OLD | NEW |