| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_UI_HISTORY_HISTORY_SERVICE_FACADE_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_HISTORY_HISTORY_SERVICE_FACADE_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_HISTORY_HISTORY_SERVICE_FACADE_H_ | 6 #define IOS_CHROME_BROWSER_UI_HISTORY_HISTORY_SERVICE_FACADE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/ios/weak_nsobject.h" | |
| 12 #include "base/macros.h" | 11 #include "base/macros.h" |
| 13 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 14 #include "base/scoped_observer.h" | 13 #include "base/scoped_observer.h" |
| 15 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
| 16 #include "base/task/cancelable_task_tracker.h" | 15 #include "base/task/cancelable_task_tracker.h" |
| 17 #include "base/timer/timer.h" | 16 #include "base/timer/timer.h" |
| 18 #include "base/values.h" | 17 #include "base/values.h" |
| 19 #include "components/history/core/browser/history_service_observer.h" | 18 #include "components/history/core/browser/history_service_observer.h" |
| 20 #include "components/history/core/browser/url_row.h" | 19 #include "components/history/core/browser/url_row.h" |
| 21 #include "components/history/core/browser/web_history_service.h" | 20 #include "components/history/core/browser/web_history_service.h" |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 base::OneShotTimer web_history_timer_; | 157 base::OneShotTimer web_history_timer_; |
| 159 | 158 |
| 160 // Observer for HistoryService. | 159 // Observer for HistoryService. |
| 161 ScopedObserver<history::HistoryService, history::HistoryServiceObserver> | 160 ScopedObserver<history::HistoryService, history::HistoryServiceObserver> |
| 162 history_service_observer_; | 161 history_service_observer_; |
| 163 | 162 |
| 164 // The current browser state. | 163 // The current browser state. |
| 165 ios::ChromeBrowserState* browser_state_; // weak | 164 ios::ChromeBrowserState* browser_state_; // weak |
| 166 | 165 |
| 167 // Delegate for HistoryServiceFacade. Serves as client for HistoryService. | 166 // Delegate for HistoryServiceFacade. Serves as client for HistoryService. |
| 168 base::WeakNSProtocol<id<HistoryServiceFacadeDelegate>> delegate_; | 167 __weak id<HistoryServiceFacadeDelegate> delegate_; |
| 169 | 168 |
| 170 base::WeakPtrFactory<HistoryServiceFacade> weak_factory_; | 169 base::WeakPtrFactory<HistoryServiceFacade> weak_factory_; |
| 171 | 170 |
| 172 DISALLOW_COPY_AND_ASSIGN(HistoryServiceFacade); | 171 DISALLOW_COPY_AND_ASSIGN(HistoryServiceFacade); |
| 173 }; | 172 }; |
| 174 | 173 |
| 175 #endif // IOS_CHROME_BROWSER_UI_HISTORY_HISTORY_SERVICE_FACADE_H_ | 174 #endif // IOS_CHROME_BROWSER_UI_HISTORY_HISTORY_SERVICE_FACADE_H_ |
| OLD | NEW |