| 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 <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 // BookmarkModel instance providing access to bookmarks. May be null during | 53 // BookmarkModel instance providing access to bookmarks. May be null during |
| 54 // testing but must outlive ChromeHistoryClient if non-null. | 54 // testing but must outlive ChromeHistoryClient if non-null. |
| 55 bookmarks::BookmarkModel* bookmark_model_; | 55 bookmarks::BookmarkModel* bookmark_model_; |
| 56 bool is_bookmark_model_observer_; | 56 bool is_bookmark_model_observer_; |
| 57 | 57 |
| 58 // Callback invoked when URLs are removed from BookmarkModel. | 58 // Callback invoked when URLs are removed from BookmarkModel. |
| 59 base::Callback<void(const std::set<GURL>&)> on_bookmarks_removed_; | 59 base::Callback<void(const std::set<GURL>&)> on_bookmarks_removed_; |
| 60 | 60 |
| 61 // Subscription for notifications of changes to favicons. | 61 // Subscription for notifications of changes to favicons. |
| 62 scoped_ptr<base::CallbackList<void(const std::set<GURL>&)>::Subscription> | 62 scoped_ptr<base::CallbackList<void(const std::set<GURL>&, |
| 63 favicon_changed_subscription_; | 63 const GURL&)>::Subscription> |
| 64 favicons_changed_subscription_; |
| 64 | 65 |
| 65 DISALLOW_COPY_AND_ASSIGN(ChromeHistoryClient); | 66 DISALLOW_COPY_AND_ASSIGN(ChromeHistoryClient); |
| 66 }; | 67 }; |
| 67 | 68 |
| 68 #endif // CHROME_BROWSER_HISTORY_CHROME_HISTORY_CLIENT_H_ | 69 #endif // CHROME_BROWSER_HISTORY_CHROME_HISTORY_CLIENT_H_ |
| OLD | NEW |