Remove now obsolete checkdeps copy
[chromium-blink-merge.git] / components / precache / core / url_list_provider.h
blob5b879b7479c640969cfbcc18fc8b5ce6799c2f8b
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_PRECACHE_CORE_URL_LIST_PROVIDER_H_
6 #define COMPONENTS_PRECACHE_CORE_URL_LIST_PROVIDER_H_
8 #include <list>
10 #include "base/callback.h"
11 #include "url/gurl.h"
13 namespace precache {
15 // Interface for classes that can provide a list of URLs.
16 class URLListProvider {
17 public:
18 typedef base::Callback<void(const std::list<GURL>&)> GetURLsCallback;
20 // Runs |callback| with a list of URLs. |callback| may be run before the call
21 // to GetURLs returns. |callback| will be run on the same thread that this
22 // method was called on.
23 virtual void GetURLs(const GetURLsCallback& callback) = 0;
26 } // namespace precache
28 #endif // COMPONENTS_PRECACHE_CORE_URL_LIST_PROVIDER_H_