| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 class GURL; | 27 class GURL; |
| 28 namespace base { | 28 namespace base { |
| 29 class SequencedTaskRunner; | 29 class SequencedTaskRunner; |
| 30 class Time; | 30 class Time; |
| 31 class TimeDelta; | 31 class TimeDelta; |
| 32 } | 32 } |
| 33 | 33 |
| 34 namespace offline_pages { | 34 namespace offline_pages { |
| 35 | 35 |
| 36 static const char* const BOOKMARK_NAMESPACE = "bookmark"; | 36 static const char* const kBookmarkNamespace = "bookmark"; |
| 37 static const int64_t INVALID_OFFLINE_ID = 0; | 37 static const int64_t kInvalidOfflineId = 0; |
| 38 | 38 |
| 39 struct ClientId; | 39 struct ClientId; |
| 40 | 40 |
| 41 struct OfflinePageItem; | 41 struct OfflinePageItem; |
| 42 class OfflinePageMetadataStore; | 42 class OfflinePageMetadataStore; |
| 43 | 43 |
| 44 // Service for saving pages offline, storing the offline copy and metadata, and | 44 // Service for saving pages offline, storing the offline copy and metadata, and |
| 45 // retrieving them upon request. | 45 // retrieving them upon request. |
| 46 // | 46 // |
| 47 // Example usage: | 47 // Example usage: |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 std::vector<base::Closure> delayed_tasks_; | 363 std::vector<base::Closure> delayed_tasks_; |
| 364 | 364 |
| 365 base::WeakPtrFactory<OfflinePageModel> weak_ptr_factory_; | 365 base::WeakPtrFactory<OfflinePageModel> weak_ptr_factory_; |
| 366 | 366 |
| 367 DISALLOW_COPY_AND_ASSIGN(OfflinePageModel); | 367 DISALLOW_COPY_AND_ASSIGN(OfflinePageModel); |
| 368 }; | 368 }; |
| 369 | 369 |
| 370 } // namespace offline_pages | 370 } // namespace offline_pages |
| 371 | 371 |
| 372 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_ | 372 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_ |
| OLD | NEW |