| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_DELETE_DIRECTIVE_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_DELETE_DIRECTIVE_HANDLER_H_ |
| 6 #define CHROME_BROWSER_HISTORY_DELETE_DIRECTIVE_HANDLER_H_ | 6 #define CHROME_BROWSER_HISTORY_DELETE_DIRECTIVE_HANDLER_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/threading/thread_checker.h" | 10 #include "base/threading/thread_checker.h" |
| 11 #include "chrome/browser/common/cancelable_request.h" | 11 #include "base/task/cancelable_task_tracker.h" |
| 12 #include "sync/api/sync_change_processor.h" | 12 #include "sync/api/sync_change_processor.h" |
| 13 #include "sync/api/sync_data.h" | 13 #include "sync/api/sync_data.h" |
| 14 | 14 |
| 15 namespace sync_pb { | 15 namespace sync_pb { |
| 16 class HistoryDeleteDirectiveSpecifics; | 16 class HistoryDeleteDirectiveSpecifics; |
| 17 } | 17 } |
| 18 | 18 |
| 19 class HistoryService; | 19 class HistoryService; |
| 20 | 20 |
| 21 namespace history { | 21 namespace history { |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 enum PostProcessingAction { | 64 enum PostProcessingAction { |
| 65 KEEP_AFTER_PROCESSING, | 65 KEEP_AFTER_PROCESSING, |
| 66 DROP_AFTER_PROCESSING | 66 DROP_AFTER_PROCESSING |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 // Callback when history backend finishes deleting visits according to | 69 // Callback when history backend finishes deleting visits according to |
| 70 // |delete_directives|. | 70 // |delete_directives|. |
| 71 void FinishProcessing(PostProcessingAction post_processing_action, | 71 void FinishProcessing(PostProcessingAction post_processing_action, |
| 72 const syncer::SyncDataList& delete_directives); | 72 const syncer::SyncDataList& delete_directives); |
| 73 | 73 |
| 74 CancelableRequestConsumer internal_consumer_; | 74 base::CancelableTaskTracker internal_tracker_; |
| 75 scoped_ptr<syncer::SyncChangeProcessor> sync_processor_; | 75 scoped_ptr<syncer::SyncChangeProcessor> sync_processor_; |
| 76 base::ThreadChecker thread_checker_; | 76 base::ThreadChecker thread_checker_; |
| 77 base::WeakPtrFactory<DeleteDirectiveHandler> weak_ptr_factory_; | 77 base::WeakPtrFactory<DeleteDirectiveHandler> weak_ptr_factory_; |
| 78 | 78 |
| 79 DISALLOW_COPY_AND_ASSIGN(DeleteDirectiveHandler); | 79 DISALLOW_COPY_AND_ASSIGN(DeleteDirectiveHandler); |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 } // namespace history | 82 } // namespace history |
| 83 | 83 |
| 84 #endif // CHROME_BROWSER_HISTORY_DELETE_DIRECTIVE_HANDLER_H_ | 84 #endif // CHROME_BROWSER_HISTORY_DELETE_DIRECTIVE_HANDLER_H_ |
| OLD | NEW |