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

Side by Side Diff: chrome/browser/bookmarks/test_bookmark_client.h

Issue 242693003: Introduce BookmarkClient interface to abstract embedder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Work around STL android bug Created 6 years, 8 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 unified diff | Download patch
OLDNEW
(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 "base/memory/scoped_ptr.h"
9 #include "components/bookmarks/core/browser/bookmark_client.h"
10
11 class BookmarkModel;
12
13 namespace test {
14
15 class TestBookmarkClient : public BookmarkClient {
16 public:
17 TestBookmarkClient() {}
18 virtual ~TestBookmarkClient() {}
19
20 // Create a BookmarkModel using this object as its client. The returned
21 // BookmarkModel* is owned by the caller.
22 scoped_ptr<BookmarkModel> CreateModel(bool index_urls);
23
24 // BookmarkClient:
25 virtual base::CancelableTaskTracker::TaskId GetFaviconImageForURL(
26 const GURL& page_url,
27 int icon_types,
28 int desired_size_in_dip,
29 const FaviconImageCallback& callback,
30 base::CancelableTaskTracker* tracker) OVERRIDE;
31 virtual bool SupportsTypedCountForNodes() OVERRIDE;
32 virtual void GetTypedCountForNodes(
33 const NodeSet& nodes,
34 NodeTypedCountPairs* node_typed_count_pairs) OVERRIDE;
35 virtual void RecordAction(const base::UserMetricsAction& action) OVERRIDE;
36 virtual void NotifyHistoryAboutRemovedBookmarks(
37 const std::set<GURL>& removed_bookmark_urls) OVERRIDE;
38
39 private:
40 DISALLOW_COPY_AND_ASSIGN(TestBookmarkClient);
41 };
42
43 } // namespace test
44
45 #endif // CHROME_BROWSER_BOOKMARKS_TEST_BOOKMARK_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/chrome_bookmark_client.cc ('k') | chrome/browser/bookmarks/test_bookmark_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698