| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 const ClientId& client_id) = 0; | 86 const ClientId& client_id) = 0; |
| 87 | 87 |
| 88 protected: | 88 protected: |
| 89 virtual ~Observer() {} | 89 virtual ~Observer() {} |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 using CheckPagesExistOfflineResult = | 92 using CheckPagesExistOfflineResult = |
| 93 offline_pages::CheckPagesExistOfflineResult; | 93 offline_pages::CheckPagesExistOfflineResult; |
| 94 using MultipleOfflinePageItemResult = | 94 using MultipleOfflinePageItemResult = |
| 95 offline_pages::MultipleOfflinePageItemResult; | 95 offline_pages::MultipleOfflinePageItemResult; |
| 96 using SingleOfflinePageItemResult = |
| 97 offline_pages::SingleOfflinePageItemResult; |
| 96 | 98 |
| 97 //using DeletePageCallback = offline_pages::DeletePageCallback; | 99 //using DeletePageCallback = offline_pages::DeletePageCallback; |
| 98 using DeletePageResult = offline_pages::DeletePageResult; | 100 using DeletePageResult = offline_pages::DeletePageResult; |
| 99 using SavePageResult = offline_pages::SavePageResult; | 101 using SavePageResult = offline_pages::SavePageResult; |
| 100 | 102 |
| 101 // Generates a new offline id | 103 // Generates a new offline id |
| 102 static int64_t GenerateOfflineId(); | 104 static int64_t GenerateOfflineId(); |
| 103 | 105 |
| 104 // Returns true if an offline copy can be saved for the given URL. | 106 // Returns true if an offline copy can be saved for the given URL. |
| 105 static bool CanSavePage(const GURL& url); | 107 static bool CanSavePage(const GURL& url); |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 std::unique_ptr<OfflinePageStorageManager> storage_manager_; | 370 std::unique_ptr<OfflinePageStorageManager> storage_manager_; |
| 369 | 371 |
| 370 base::WeakPtrFactory<OfflinePageModel> weak_ptr_factory_; | 372 base::WeakPtrFactory<OfflinePageModel> weak_ptr_factory_; |
| 371 | 373 |
| 372 DISALLOW_COPY_AND_ASSIGN(OfflinePageModel); | 374 DISALLOW_COPY_AND_ASSIGN(OfflinePageModel); |
| 373 }; | 375 }; |
| 374 | 376 |
| 375 } // namespace offline_pages | 377 } // namespace offline_pages |
| 376 | 378 |
| 377 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_ | 379 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_ |
| OLD | NEW |