Chromium Code Reviews| Index: chrome/browser/history/most_visited_urls_provider.h |
| diff --git a/chrome/browser/history/most_visited_urls_provider.h b/chrome/browser/history/most_visited_urls_provider.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..cd15be661f12911337c3b4c48276a06ccdea3d15 |
| --- /dev/null |
| +++ b/chrome/browser/history/most_visited_urls_provider.h |
| @@ -0,0 +1,35 @@ |
| +// 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 CHROME_BROWSER_HISTORY_MOST_VISITED_URLS_PROVIDER_H_ |
| +#define CHROME_BROWSER_HISTORY_MOST_VISITED_URLS_PROVIDER_H_ |
| + |
| +#include "base/basictypes.h" |
| +#include "base/compiler_specific.h" |
| +#include "base/memory/ref_counted.h" |
| +#include "components/precache/core/url_list_provider.h" |
| + |
| +namespace history { |
| + |
| +class TopSites; |
| + |
| +// A URLListProvider that provides a list of the user's most visited URLs. |
| +class MostVisitedURLsProvider : public precache::URLListProvider { |
|
sky
2013/10/28 23:14:16
Is there a particular reason to put this in chrome
sclittle
2013/10/29 07:16:05
Good point, it doesn't really have any purpose out
|
| + public: |
| + explicit MostVisitedURLsProvider(TopSites* top_sites); |
| + ~MostVisitedURLsProvider(); |
| + |
| + // Returns a list of the user's most visited URLs via a callback. May be |
| + // called from any thread. |
| + virtual void GetURLs(const GetURLsCallback& callback) OVERRIDE; |
| + |
| + private: |
| + scoped_refptr<TopSites> top_sites_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(MostVisitedURLsProvider); |
| +}; |
| + |
| +} // namespace history |
| + |
| +#endif // CHROME_BROWSER_HISTORY_MOST_VISITED_URLS_PROVIDER_H_ |