| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_HISTORY_CORE_TEST_HISTORY_CLIENT_FAKE_BOOKMARKS_H_ | 5 #ifndef COMPONENTS_HISTORY_CORE_TEST_HISTORY_CLIENT_FAKE_BOOKMARKS_H_ |
| 6 #define COMPONENTS_HISTORY_CORE_TEST_HISTORY_CLIENT_FAKE_BOOKMARKS_H_ | 6 #define COMPONENTS_HISTORY_CORE_TEST_HISTORY_CLIENT_FAKE_BOOKMARKS_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 void ClearAllBookmarks(); | 27 void ClearAllBookmarks(); |
| 28 void AddBookmark(const GURL& url); | 28 void AddBookmark(const GURL& url); |
| 29 void AddBookmarkWithTitle(const GURL& url, const base::string16& title); | 29 void AddBookmarkWithTitle(const GURL& url, const base::string16& title); |
| 30 void DelBookmark(const GURL& url); | 30 void DelBookmark(const GURL& url); |
| 31 bool IsBookmarked(const GURL& url); | 31 bool IsBookmarked(const GURL& url); |
| 32 | 32 |
| 33 // HistoryClient implementation. | 33 // HistoryClient implementation. |
| 34 void OnHistoryServiceCreated(HistoryService* history_service) override; | 34 void OnHistoryServiceCreated(HistoryService* history_service) override; |
| 35 void Shutdown() override; | 35 void Shutdown() override; |
| 36 bool CanAddURL(const GURL& url) override; | 36 bool CanAddURL(const GURL& url) override; |
| 37 void NotifyProfileError(sql::InitStatus init_status) override; | 37 void NotifyProfileError(sql::InitStatus init_status, |
| 38 const std::string& diagnostics) override; |
| 38 std::unique_ptr<HistoryBackendClient> CreateBackendClient() override; | 39 std::unique_ptr<HistoryBackendClient> CreateBackendClient() override; |
| 39 | 40 |
| 40 private: | 41 private: |
| 41 scoped_refptr<FakeBookmarkDatabase> bookmarks_; | 42 scoped_refptr<FakeBookmarkDatabase> bookmarks_; |
| 42 | 43 |
| 43 DISALLOW_COPY_AND_ASSIGN(HistoryClientFakeBookmarks); | 44 DISALLOW_COPY_AND_ASSIGN(HistoryClientFakeBookmarks); |
| 44 }; | 45 }; |
| 45 | 46 |
| 46 } // namespace history | 47 } // namespace history |
| 47 | 48 |
| 48 #endif // COMPONENTS_HISTORY_CORE_TEST_HISTORY_CLIENT_FAKE_BOOKMARKS_H_ | 49 #endif // COMPONENTS_HISTORY_CORE_TEST_HISTORY_CLIENT_FAKE_BOOKMARKS_H_ |
| OLD | NEW |