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

Side by Side Diff: chrome/browser/android/offline_pages/offline_page_utils.h

Issue 1977503003: [Offline pages] Removes the functionality to get bookmark ID from offline URL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bookmark-star
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/android/offline_pages/offline_page_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_UTILS_H_ 5 #ifndef CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_UTILS_H_
6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_UTILS_H_ 6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_UTILS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 class GURL; 10 class GURL;
(...skipping 13 matching lines...) Expand all
24 // Gets an offline URL of an offline page with |online_url| if one exists. 24 // Gets an offline URL of an offline page with |online_url| if one exists.
25 static GURL GetOfflineURLForOnlineURL( 25 static GURL GetOfflineURLForOnlineURL(
26 content::BrowserContext* browser_context, 26 content::BrowserContext* browser_context,
27 const GURL& online_url); 27 const GURL& online_url);
28 28
29 // Gets an online URL of an offline page with |offline_url| if one exists. 29 // Gets an online URL of an offline page with |offline_url| if one exists.
30 static GURL GetOnlineURLForOfflineURL( 30 static GURL GetOnlineURLForOfflineURL(
31 content::BrowserContext* browser_context, 31 content::BrowserContext* browser_context,
32 const GURL& offline_url); 32 const GURL& offline_url);
33 33
34 // Gets a bookmark ID related to the |offline_url|.
35 static int64_t GetBookmarkIdForOfflineURL(
36 content::BrowserContext* browser_context,
37 const GURL& offline_url);
38
39 // Checks whether |offline_url| points to an offline page. 34 // Checks whether |offline_url| points to an offline page.
40 static bool IsOfflinePage(content::BrowserContext* browser_context, 35 static bool IsOfflinePage(content::BrowserContext* browser_context,
41 const GURL& offline_url); 36 const GURL& offline_url);
42 37
43 // Checks whether offline page for |online_url| exists. 38 // Checks whether offline page for |online_url| exists.
44 static bool HasOfflinePageForOnlineURL( 39 static bool HasOfflinePageForOnlineURL(
45 content::BrowserContext* browser_context, 40 content::BrowserContext* browser_context,
46 const GURL& online_url); 41 const GURL& online_url);
47 42
48 // Marks that the offline page related to the |offline_url| has been accessed. 43 // Marks that the offline page related to the |offline_url| has been accessed.
49 static void MarkPageAccessed(content::BrowserContext* browser_context, 44 static void MarkPageAccessed(content::BrowserContext* browser_context,
50 const GURL& offline_url); 45 const GURL& offline_url);
51 }; 46 };
52 47
53 } // namespace offline_pages 48 } // namespace offline_pages
54 49
55 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_UTILS_H_ 50 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_UTILS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/offline_pages/offline_page_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698