OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 COMPONENTS_DOM_DISTILLER_CORE_TASK_TRACKER_H_ | 5 #ifndef COMPONENTS_DOM_DISTILLER_CORE_TASK_TRACKER_H_ |
6 #define COMPONENTS_DOM_DISTILLER_CORE_TASK_TRACKER_H_ | 6 #define COMPONENTS_DOM_DISTILLER_CORE_TASK_TRACKER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/macros.h" |
13 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
14 #include "components/dom_distiller/core/article_distillation_update.h" | 15 #include "components/dom_distiller/core/article_distillation_update.h" |
15 #include "components/dom_distiller/core/article_entry.h" | 16 #include "components/dom_distiller/core/article_entry.h" |
16 #include "components/dom_distiller/core/distiller.h" | 17 #include "components/dom_distiller/core/distiller.h" |
17 #include "components/dom_distiller/core/proto/distilled_page.pb.h" | 18 #include "components/dom_distiller/core/proto/distilled_page.pb.h" |
18 | 19 |
19 class GURL; | 20 class GURL; |
20 | 21 |
21 namespace dom_distiller { | 22 namespace dom_distiller { |
22 | 23 |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 // Note: This should remain the last member so it'll be destroyed and | 150 // Note: This should remain the last member so it'll be destroyed and |
150 // invalidate its weak pointers before any other members are destroyed. | 151 // invalidate its weak pointers before any other members are destroyed. |
151 base::WeakPtrFactory<TaskTracker> weak_ptr_factory_; | 152 base::WeakPtrFactory<TaskTracker> weak_ptr_factory_; |
152 | 153 |
153 DISALLOW_COPY_AND_ASSIGN(TaskTracker); | 154 DISALLOW_COPY_AND_ASSIGN(TaskTracker); |
154 }; | 155 }; |
155 | 156 |
156 } // namespace dom_distiller | 157 } // namespace dom_distiller |
157 | 158 |
158 #endif // COMPONENTS_DOM_DISTILLER_CORE_TASK_TRACKER_H_ | 159 #endif // COMPONENTS_DOM_DISTILLER_CORE_TASK_TRACKER_H_ |
OLD | NEW |