Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: components/reading_list/core/offline_url_utils.h

Issue 2763233003: Move ReadingList model to components/reading_list/core (Closed)
Patch Set: feedback Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_IOS_OFFLINE_URL_UTILS_H_ 5 #ifndef COMPONENTS_READING_LIST_CORE_OFFLINE_URL_UTILS_H_
6 #define COMPONENTS_READING_LIST_IOS_OFFLINE_URL_UTILS_H_ 6 #define COMPONENTS_READING_LIST_CORE_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 different types of file that can be stored for offline usage. 15 // The different types of file that can be stored for offline usage.
16 enum OfflineFileType { OFFLINE_TYPE_HTML = 0, OFFLINE_TYPE_PDF = 1 }; 16 enum OfflineFileType { OFFLINE_TYPE_HTML = 0, OFFLINE_TYPE_PDF = 1 };
(...skipping 25 matching lines...) Expand all
42 // relative to |OfflineRootDirectoryPath()|. |type| is the type of the file and 42 // relative to |OfflineRootDirectoryPath()|. |type| is the type of the file and
43 // will determine the extension of the returned value. 43 // will determine the extension of the returned value.
44 // The file may not exist. 44 // The file may not exist.
45 base::FilePath OfflinePagePath(const GURL& url, OfflineFileType type); 45 base::FilePath OfflinePagePath(const GURL& url, OfflineFileType type);
46 46
47 // The name of the directory containing offline data for |url|. 47 // The name of the directory containing offline data for |url|.
48 std::string OfflineURLDirectoryID(const GURL& url); 48 std::string OfflineURLDirectoryID(const GURL& url);
49 49
50 } // namespace reading_list 50 } // namespace reading_list
51 51
52 #endif // COMPONENTS_READING_LIST_IOS_OFFLINE_URL_UTILS_H_ 52 #endif // COMPONENTS_READING_LIST_CORE_OFFLINE_URL_UTILS_H_
OLDNEW
« no previous file with comments | « components/reading_list/core/BUILD.gn ('k') | components/reading_list/core/offline_url_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698