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 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 // indicates whether requests exist, while second is a helper value to report | 81 // indicates whether requests exist, while second is a helper value to report |
82 // UMA, indicating the time the latest existing request with such parameters | 82 // UMA, indicating the time the latest existing request with such parameters |
83 // was created. | 83 // was created. |
84 static void CheckExistenceOfRequestsWithURL( | 84 static void CheckExistenceOfRequestsWithURL( |
85 content::BrowserContext* browser_context, | 85 content::BrowserContext* browser_context, |
86 const std::string name_space, | 86 const std::string name_space, |
87 const GURL& url, | 87 const GURL& url, |
88 const PagesExistCallback& callback); | 88 const PagesExistCallback& callback); |
89 | 89 |
90 static bool EqualsIgnoringFragment(const GURL& lhs, const GURL& rhs); | 90 static bool EqualsIgnoringFragment(const GURL& lhs, const GURL& rhs); |
| 91 |
| 92 static void StartOfflinePageDownload(content::BrowserContext* context, |
| 93 const GURL& url); |
91 }; | 94 }; |
92 | 95 |
93 } // namespace offline_pages | 96 } // namespace offline_pages |
94 | 97 |
95 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_UTILS_H_ | 98 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_UTILS_H_ |
OLD | NEW |