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

Unified Diff: components/precache/core/url_list_provider.h

Issue 27047003: Precache tracking database (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@precache
Patch Set: Addressed comments Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: components/precache/core/url_list_provider.h
diff --git a/components/precache/core/url_list_provider.h b/components/precache/core/url_list_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..ab1a81278c8b28d537da0abd297e5e52704eb69d
--- /dev/null
+++ b/components/precache/core/url_list_provider.h
@@ -0,0 +1,26 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_PRECACHE_CORE_URL_LIST_PROVIDER_H_
+#define COMPONENTS_PRECACHE_CORE_URL_LIST_PROVIDER_H_
+
+#include <list>
+
+#include "base/callback.h"
+#include "url/gurl.h"
+
+namespace precache {
+
+// Interface for classes that can provide a list of URLs.
+class URLListProvider {
+ public:
+ typedef base::Callback<void(const std::list<GURL>&)> GetURLsCallback;
+
+ // Runs |callback| with a list of URLs.
+ virtual void GetURLs(const GetURLsCallback& callback) = 0;
sky 2013/10/28 23:14:16 This should document callback may be run before th
sclittle 2013/10/29 07:16:05 Done.
+};
+
+} // namespace precache
+
+#endif // COMPONENTS_PRECACHE_CORE_URL_LIST_PROVIDER_H_

Powered by Google App Engine
This is Rietveld 408576698