| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 IOS_CHROME_BROWSER_HISTORY_HISTORY_CLIENT_IMPL_H_ | 5 #ifndef IOS_CHROME_BROWSER_HISTORY_HISTORY_CLIENT_IMPL_H_ |
| 6 #define IOS_CHROME_BROWSER_HISTORY_HISTORY_CLIENT_IMPL_H_ | 6 #define IOS_CHROME_BROWSER_HISTORY_HISTORY_CLIENT_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 public: | 26 public: |
| 27 explicit HistoryClientImpl(bookmarks::BookmarkModel* bookmark_model); | 27 explicit HistoryClientImpl(bookmarks::BookmarkModel* bookmark_model); |
| 28 ~HistoryClientImpl() override; | 28 ~HistoryClientImpl() override; |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 // history::HistoryClient implementation. | 31 // history::HistoryClient implementation. |
| 32 void OnHistoryServiceCreated( | 32 void OnHistoryServiceCreated( |
| 33 history::HistoryService* history_service) override; | 33 history::HistoryService* history_service) override; |
| 34 void Shutdown() override; | 34 void Shutdown() override; |
| 35 bool CanAddURL(const GURL& url) override; | 35 bool CanAddURL(const GURL& url) override; |
| 36 void NotifyProfileError(sql::InitStatus init_status) override; | 36 void NotifyProfileError( |
| 37 sql::InitStatus init_status, |
| 38 const sql::DatabaseDiagnosticMap& diagnostics) override; |
| 37 std::unique_ptr<history::HistoryBackendClient> CreateBackendClient() override; | 39 std::unique_ptr<history::HistoryBackendClient> CreateBackendClient() override; |
| 38 | 40 |
| 39 // bookmarks::BaseBookmarkModelObserver implementation. | 41 // bookmarks::BaseBookmarkModelObserver implementation. |
| 40 void BookmarkModelChanged() override; | 42 void BookmarkModelChanged() override; |
| 41 | 43 |
| 42 // bookmarks::BookmarkModelObserver implementation. | 44 // bookmarks::BookmarkModelObserver implementation. |
| 43 void BookmarkNodeRemoved(bookmarks::BookmarkModel* model, | 45 void BookmarkNodeRemoved(bookmarks::BookmarkModel* model, |
| 44 const bookmarks::BookmarkNode* parent, | 46 const bookmarks::BookmarkNode* parent, |
| 45 int old_index, | 47 int old_index, |
| 46 const bookmarks::BookmarkNode* node, | 48 const bookmarks::BookmarkNode* node, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 58 | 60 |
| 59 // Subscription for notifications of changes to favicons. | 61 // Subscription for notifications of changes to favicons. |
| 60 std::unique_ptr<base::CallbackList<void(const std::set<GURL>&, | 62 std::unique_ptr<base::CallbackList<void(const std::set<GURL>&, |
| 61 const GURL&)>::Subscription> | 63 const GURL&)>::Subscription> |
| 62 favicons_changed_subscription_; | 64 favicons_changed_subscription_; |
| 63 | 65 |
| 64 DISALLOW_COPY_AND_ASSIGN(HistoryClientImpl); | 66 DISALLOW_COPY_AND_ASSIGN(HistoryClientImpl); |
| 65 }; | 67 }; |
| 66 | 68 |
| 67 #endif // IOS_CHROME_BROWSER_HISTORY_HISTORY_CLIENT_IMPL_H_ | 69 #endif // IOS_CHROME_BROWSER_HISTORY_HISTORY_CLIENT_IMPL_H_ |
| OLD | NEW |