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 <memory> | 10 #include <memory> |
11 #include <set> | 11 #include <set> |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/supports_user_data.h" | 15 #include "base/supports_user_data.h" |
16 #include "components/offline_pages/offline_page_archiver.h" | 16 #include "components/offline_pages/offline_page_archiver.h" |
17 #include "components/offline_pages/offline_page_storage_manager.h" | 17 #include "components/offline_pages/offline_page_storage_manager.h" |
18 #include "components/offline_pages/offline_page_types.h" | 18 #include "components/offline_pages/offline_page_types.h" |
19 | 19 |
20 class GURL; | 20 class GURL; |
21 namespace base { | 21 namespace base { |
22 class Time; | 22 class Time; |
23 } // namespace base | 23 } // namespace base |
24 | 24 |
25 namespace offline_pages { | 25 namespace offline_pages { |
26 | 26 |
| 27 static const char* const kBookmarkNamespace = "bookmark"; |
27 static const int64_t kInvalidOfflineId = 0; | 28 static const int64_t kInvalidOfflineId = 0; |
28 | 29 |
29 struct ClientId; | 30 struct ClientId; |
30 struct OfflinePageItem; | 31 struct OfflinePageItem; |
31 | 32 |
32 // Service for saving pages offline, storing the offline copy and metadata, and | 33 // Service for saving pages offline, storing the offline copy and metadata, and |
33 // retrieving them upon request. | 34 // retrieving them upon request. |
34 // | 35 // |
35 // Example usage: | 36 // Example usage: |
36 // class ArchiverImpl : public OfflinePageArchiver { | 37 // class ArchiverImpl : public OfflinePageArchiver { |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 // Returns the policy controller. | 190 // Returns the policy controller. |
190 virtual ClientPolicyController* GetPolicyController() = 0; | 191 virtual ClientPolicyController* GetPolicyController() = 0; |
191 | 192 |
192 // TODO(dougarnett): Remove this and its uses. | 193 // TODO(dougarnett): Remove this and its uses. |
193 virtual bool is_loaded() const = 0; | 194 virtual bool is_loaded() const = 0; |
194 }; | 195 }; |
195 | 196 |
196 } // namespace offline_pages | 197 } // namespace offline_pages |
197 | 198 |
198 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_ | 199 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_ |
OLD | NEW |