| 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( |
| 93 content::BrowserContext* context, |
| 94 const GURL& url); |
| 95 |
| 91 }; | 96 }; |
| 92 | 97 |
| 93 } // namespace offline_pages | 98 } // namespace offline_pages |
| 94 | 99 |
| 95 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_UTILS_H_ | 100 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_UTILS_H_ |
| OLD | NEW |