| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #ifndef WEBRTC_BASE_TASKPARENT_H__ | 11 #ifndef WEBRTC_BASE_TASKPARENT_H__ |
| 12 #define WEBRTC_BASE_TASKPARENT_H__ | 12 #define WEBRTC_BASE_TASKPARENT_H__ |
| 13 | 13 |
| 14 #include <memory> | 14 #include <memory> |
| 15 #include <set> | 15 #include <set> |
| 16 | 16 |
| 17 #include "webrtc/base/basictypes.h" | |
| 18 #include "webrtc/base/constructormagic.h" | 17 #include "webrtc/base/constructormagic.h" |
| 19 | 18 |
| 20 namespace rtc { | 19 namespace rtc { |
| 21 | 20 |
| 22 class Task; | 21 class Task; |
| 23 class TaskRunner; | 22 class TaskRunner; |
| 24 | 23 |
| 25 class TaskParent { | 24 class TaskParent { |
| 26 public: | 25 public: |
| 27 TaskParent(Task *derived_instance, TaskParent *parent); | 26 TaskParent(Task *derived_instance, TaskParent *parent); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 54 bool child_error_; | 53 bool child_error_; |
| 55 typedef std::set<Task *> ChildSet; | 54 typedef std::set<Task *> ChildSet; |
| 56 std::unique_ptr<ChildSet> children_; | 55 std::unique_ptr<ChildSet> children_; |
| 57 RTC_DISALLOW_COPY_AND_ASSIGN(TaskParent); | 56 RTC_DISALLOW_COPY_AND_ASSIGN(TaskParent); |
| 58 }; | 57 }; |
| 59 | 58 |
| 60 | 59 |
| 61 } // namespace rtc | 60 } // namespace rtc |
| 62 | 61 |
| 63 #endif // WEBRTC_BASE_TASKPARENT_H__ | 62 #endif // WEBRTC_BASE_TASKPARENT_H__ |
| OLD | NEW |