| 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_READING_LIST_OFFLINE_URL_UTILS_H_ | 5 #ifndef COMPONENTS_READING_LIST_IOS_OFFLINE_URL_UTILS_H_ |
| 6 #define COMPONENTS_READING_LIST_OFFLINE_URL_UTILS_H_ | 6 #define COMPONENTS_READING_LIST_IOS_OFFLINE_URL_UTILS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "url/gurl.h" | 11 #include "url/gurl.h" |
| 12 | 12 |
| 13 namespace reading_list { | 13 namespace reading_list { |
| 14 | 14 |
| 15 // The absolute path of the directory where offline URLs are saved. | 15 // The absolute path of the directory where offline URLs are saved. |
| 16 // |profile_path| is the path to the profile directory that contain the offline | 16 // |profile_path| is the path to the profile directory that contain the offline |
| (...skipping 19 matching lines...) Expand all Loading... |
| 36 // The relative path to the offline webpage for the |url|. The result is | 36 // The relative path to the offline webpage for the |url|. The result is |
| 37 // relative to |OfflineRootDirectoryPath()|. | 37 // relative to |OfflineRootDirectoryPath()|. |
| 38 // The file may not exist. | 38 // The file may not exist. |
| 39 base::FilePath OfflinePagePath(const GURL& url); | 39 base::FilePath OfflinePagePath(const GURL& url); |
| 40 | 40 |
| 41 // The name of the directory containing offline data for |url|. | 41 // The name of the directory containing offline data for |url|. |
| 42 std::string OfflineURLDirectoryID(const GURL& url); | 42 std::string OfflineURLDirectoryID(const GURL& url); |
| 43 | 43 |
| 44 } // namespace reading_list | 44 } // namespace reading_list |
| 45 | 45 |
| 46 #endif // COMPONENTS_READING_LIST_OFFLINE_URL_UTILS_H_ | 46 #endif // COMPONENTS_READING_LIST_IOS_OFFLINE_URL_UTILS_H_ |
| OLD | NEW |