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 #include "content/shell/renderer/test_runner/web_task.h" | 5 #include "components/test_runner/web_task.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "third_party/WebKit/public/web/WebKit.h" | 9 #include "third_party/WebKit/public/web/WebKit.h" |
10 | 10 |
11 namespace content { | 11 namespace content { |
12 | 12 |
13 WebTask::WebTask(WebTaskList* list) : task_list_(list) { | 13 WebTask::WebTask(WebTaskList* list) : task_list_(list) { |
14 task_list_->RegisterTask(this); | 14 task_list_->RegisterTask(this); |
15 } | 15 } |
(...skipping 20 matching lines...) Expand all Loading... |
36 if (iter != tasks_.end()) | 36 if (iter != tasks_.end()) |
37 tasks_.erase(iter); | 37 tasks_.erase(iter); |
38 } | 38 } |
39 | 39 |
40 void WebTaskList::RevokeAll() { | 40 void WebTaskList::RevokeAll() { |
41 while (!tasks_.empty()) | 41 while (!tasks_.empty()) |
42 tasks_[0]->cancel(); | 42 tasks_[0]->cancel(); |
43 } | 43 } |
44 | 44 |
45 } // namespace content | 45 } // namespace content |
OLD | NEW |