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

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

Issue 2528483003: [Android Downloads] Long-press menu item "Download Link" should delegate job to OfflinePages backen… (Closed)
Patch Set: git merge resolved Created 4 years 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 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698