Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 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. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_BOOKMARKS_TEST_BOOKMARK_CLIENT_H_ | |
| 6 #define CHROME_BROWSER_BOOKMARKS_TEST_BOOKMARK_CLIENT_H_ | |
| 7 | |
| 8 #include "components/bookmarks/core/browser/bookmark_client.h" | |
| 9 | |
| 10 class BookmarkModel; | |
| 11 | |
| 12 namespace test { | |
| 13 | |
| 14 class TestBookmarkClient : public BookmarkClient { | |
| 15 public: | |
| 16 TestBookmarkClient() {} | |
| 17 virtual ~TestBookmarkClient() {} | |
| 18 | |
| 19 // Create a BookmarkModel using this object as its client. The returned | |
| 20 // BookmarkModel* is owned by the caller. | |
| 21 BookmarkModel* CreateModel(bool index_urls); | |
|
sky
2014/04/23 20:32:07
Return scoped_ptr
sdefresne
2014/04/24 12:30:15
Done.
| |
| 22 | |
| 23 // BookmarkClient: | |
| 24 virtual base::CancelableTaskTracker::TaskId GetFaviconImageForURL( | |
| 25 const GURL& page_url, | |
| 26 int icon_types, | |
| 27 int desired_size_in_dip, | |
| 28 const FaviconImageCallback& callback, | |
| 29 base::CancelableTaskTracker* tracker) OVERRIDE; | |
| 30 virtual bool SupportsTypedCountForNodes() OVERRIDE; | |
| 31 virtual void GetTypedCountForNodes( | |
| 32 const NodeSet& nodes, | |
| 33 NodeTypedCountPairs* node_typed_count_pairs) OVERRIDE; | |
| 34 virtual void RecordAction(const base::UserMetricsAction& action) OVERRIDE; | |
| 35 virtual void NotifyHistoryAboutRemovedBookmarks( | |
| 36 const std::set<GURL>& removed_bookmark_urls) OVERRIDE; | |
| 37 | |
| 38 private: | |
| 39 DISALLOW_COPY_AND_ASSIGN(TestBookmarkClient); | |
| 40 }; | |
| 41 | |
| 42 } // namespace test | |
| 43 | |
| 44 #endif // CHROME_BROWSER_BOOKMARKS_TEST_BOOKMARK_CLIENT_H_ | |
| OLD | NEW |