| 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_TYPES_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_TYPES_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_TYPES_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_TYPES_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "components/offline_pages/offline_page_item.h" | 14 #include "components/offline_pages/core/offline_page_item.h" |
| 15 | 15 |
| 16 class GURL; | 16 class GURL; |
| 17 | 17 |
| 18 // This file contains common callbacks used by OfflinePageModel and is a | 18 // This file contains common callbacks used by OfflinePageModel and is a |
| 19 // temporary step to refactor and interface of the model out of the | 19 // temporary step to refactor and interface of the model out of the |
| 20 // implementation. | 20 // implementation. |
| 21 namespace offline_pages { | 21 namespace offline_pages { |
| 22 // Result of saving a page offline. | 22 // Result of saving a page offline. |
| 23 // A Java counterpart will be generated for this enum. | 23 // A Java counterpart will be generated for this enum. |
| 24 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.components.offlinepages | 24 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.components.offlinepages |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 typedef base::Callback<void(bool)> HasPagesCallback; | 68 typedef base::Callback<void(bool)> HasPagesCallback; |
| 69 typedef base::Callback<void(const MultipleOfflineIdResult&)> | 69 typedef base::Callback<void(const MultipleOfflineIdResult&)> |
| 70 MultipleOfflineIdCallback; | 70 MultipleOfflineIdCallback; |
| 71 typedef base::Callback<void(const OfflinePageItem*)> | 71 typedef base::Callback<void(const OfflinePageItem*)> |
| 72 SingleOfflinePageItemCallback; | 72 SingleOfflinePageItemCallback; |
| 73 typedef base::Callback<void(const MultipleOfflinePageItemResult&)> | 73 typedef base::Callback<void(const MultipleOfflinePageItemResult&)> |
| 74 MultipleOfflinePageItemCallback; | 74 MultipleOfflinePageItemCallback; |
| 75 typedef base::Callback<bool(const GURL&)> UrlPredicate; | 75 typedef base::Callback<bool(const GURL&)> UrlPredicate; |
| 76 } // namespace offline_pages | 76 } // namespace offline_pages |
| 77 | 77 |
| 78 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_TYPES_H_ | 78 #endif // COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_TYPES_H_ |
| OLD | NEW |