Chromium Code Reviews| 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 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 26 matching lines...) Expand all Loading... | |
| 37 const GURL& offline_url); | 37 const GURL& offline_url); |
| 38 | 38 |
| 39 // Checks whether |offline_url| points to an offline page. | 39 // Checks whether |offline_url| points to an offline page. |
| 40 static bool IsOfflinePage(content::BrowserContext* browser_context, | 40 static bool IsOfflinePage(content::BrowserContext* browser_context, |
| 41 const GURL& offline_url); | 41 const GURL& offline_url); |
| 42 | 42 |
| 43 // Checks whether offline page for |online_url| exists. | 43 // Checks whether offline page for |online_url| exists. |
| 44 static bool HasOfflinePageForOnlineURL( | 44 static bool HasOfflinePageForOnlineURL( |
| 45 content::BrowserContext* browser_context, | 45 content::BrowserContext* browser_context, |
| 46 const GURL& online_url); | 46 const GURL& online_url); |
| 47 | |
| 48 // Marks that the offline page related to the |offline_url| has been accessed. | |
| 49 static void MarkPageAccessed(content::BrowserContext* browser_context, | |
| 50 const GURL& offline_url); | |
|
fgorski
2016/05/04 21:45:12
nit: align
jianli
2016/05/05 00:23:13
Done.
| |
| 47 }; | 51 }; |
| 48 | 52 |
| 49 } // namespace offline_pages | 53 } // namespace offline_pages |
| 50 | 54 |
| 51 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_UTILS_H_ | 55 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_UTILS_H_ |
| OLD | NEW |