| 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 CHROME_BROWSER_HISTORY_CHROME_HISTORY_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_CHROME_HISTORY_CLIENT_H_ |
| 6 #define CHROME_BROWSER_HISTORY_CHROME_HISTORY_CLIENT_H_ | 6 #define CHROME_BROWSER_HISTORY_CHROME_HISTORY_CLIENT_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 public bookmarks::BaseBookmarkModelObserver { | 27 public bookmarks::BaseBookmarkModelObserver { |
| 28 public: | 28 public: |
| 29 explicit ChromeHistoryClient(bookmarks::BookmarkModel* bookmark_model); | 29 explicit ChromeHistoryClient(bookmarks::BookmarkModel* bookmark_model); |
| 30 ~ChromeHistoryClient() override; | 30 ~ChromeHistoryClient() override; |
| 31 | 31 |
| 32 // history::HistoryClient implementation. | 32 // history::HistoryClient implementation. |
| 33 void OnHistoryServiceCreated( | 33 void OnHistoryServiceCreated( |
| 34 history::HistoryService* history_service) override; | 34 history::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<history::HistoryBackendClient> CreateBackendClient() override; | 39 std::unique_ptr<history::HistoryBackendClient> CreateBackendClient() override; |
| 39 | 40 |
| 40 private: | 41 private: |
| 41 // bookmarks::BaseBookmarkModelObserver implementation. | 42 // bookmarks::BaseBookmarkModelObserver implementation. |
| 42 void BookmarkModelChanged() override; | 43 void BookmarkModelChanged() override; |
| 43 | 44 |
| 44 // bookmarks::BookmarkModelObserver implementation. | 45 // bookmarks::BookmarkModelObserver implementation. |
| 45 void BookmarkNodeRemoved(bookmarks::BookmarkModel* bookmark_model, | 46 void BookmarkNodeRemoved(bookmarks::BookmarkModel* bookmark_model, |
| 46 const bookmarks::BookmarkNode* parent, | 47 const bookmarks::BookmarkNode* parent, |
| 47 int old_index, | 48 int old_index, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 60 | 61 |
| 61 // Subscription for notifications of changes to favicons. | 62 // Subscription for notifications of changes to favicons. |
| 62 std::unique_ptr<base::CallbackList<void(const std::set<GURL>&, | 63 std::unique_ptr<base::CallbackList<void(const std::set<GURL>&, |
| 63 const GURL&)>::Subscription> | 64 const GURL&)>::Subscription> |
| 64 favicons_changed_subscription_; | 65 favicons_changed_subscription_; |
| 65 | 66 |
| 66 DISALLOW_COPY_AND_ASSIGN(ChromeHistoryClient); | 67 DISALLOW_COPY_AND_ASSIGN(ChromeHistoryClient); |
| 67 }; | 68 }; |
| 68 | 69 |
| 69 #endif // CHROME_BROWSER_HISTORY_CHROME_HISTORY_CLIENT_H_ | 70 #endif // CHROME_BROWSER_HISTORY_CHROME_HISTORY_CLIENT_H_ |
| OLD | NEW |