OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/eintr_wrapper.h" | 7 #include "base/eintr_wrapper.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/platform_thread.h" | 10 #include "base/platform_thread.h" |
11 #include "base/ref_counted.h" | 11 #include "base/ref_counted.h" |
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
662 cookie_(cookie) { | 662 cookie_(cookie) { |
663 } | 663 } |
664 OrderedTasks(TaskList* order, TaskType type, int cookie) | 664 OrderedTasks(TaskList* order, TaskType type, int cookie) |
665 : order_(order), | 665 : order_(order), |
666 type_(type), | 666 type_(type), |
667 cookie_(cookie) { | 667 cookie_(cookie) { |
668 } | 668 } |
669 | 669 |
670 void RunStart() { | 670 void RunStart() { |
671 TaskItem item(type_, cookie_, true); | 671 TaskItem item(type_, cookie_, true); |
672 DLOG(INFO) << item; | 672 DVLOG(1) << item; |
673 order_->push_back(item); | 673 order_->push_back(item); |
674 } | 674 } |
675 void RunEnd() { | 675 void RunEnd() { |
676 TaskItem item(type_, cookie_, false); | 676 TaskItem item(type_, cookie_, false); |
677 DLOG(INFO) << item; | 677 DVLOG(1) << item; |
678 order_->push_back(item); | 678 order_->push_back(item); |
679 } | 679 } |
680 | 680 |
681 virtual void Run() { | 681 virtual void Run() { |
682 RunStart(); | 682 RunStart(); |
683 RunEnd(); | 683 RunEnd(); |
684 } | 684 } |
685 | 685 |
686 protected: | 686 protected: |
687 TaskList* order() const { | 687 TaskList* order() const { |
(...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1638 } | 1638 } |
1639 if (HANDLE_EINTR(close(pipefds[0])) < 0) | 1639 if (HANDLE_EINTR(close(pipefds[0])) < 0) |
1640 PLOG(ERROR) << "close"; | 1640 PLOG(ERROR) << "close"; |
1641 if (HANDLE_EINTR(close(pipefds[1])) < 0) | 1641 if (HANDLE_EINTR(close(pipefds[1])) < 0) |
1642 PLOG(ERROR) << "close"; | 1642 PLOG(ERROR) << "close"; |
1643 } | 1643 } |
1644 | 1644 |
1645 } // namespace | 1645 } // namespace |
1646 | 1646 |
1647 #endif // defined(OS_POSIX) | 1647 #endif // defined(OS_POSIX) |
OLD | NEW |