| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browser/trace_subscriber_stdio.h" | 5 #include "content/browser/tracing/trace_subscriber_stdio.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/threading/sequenced_worker_pool.h" | 10 #include "base/threading/sequenced_worker_pool.h" |
| 11 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
| 12 | 12 |
| 13 namespace content { | 13 namespace content { |
| 14 | 14 |
| 15 // All method calls on this class are done on a SequencedWorkerPool thread. | 15 // All method calls on this class are done on a SequencedWorkerPool thread. |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 } | 95 } |
| 96 | 96 |
| 97 void TraceSubscriberStdio::OnTraceDataCollected( | 97 void TraceSubscriberStdio::OnTraceDataCollected( |
| 98 const scoped_refptr<base::RefCountedString>& data_ptr) { | 98 const scoped_refptr<base::RefCountedString>& data_ptr) { |
| 99 BrowserThread::PostBlockingPoolSequencedTask( | 99 BrowserThread::PostBlockingPoolSequencedTask( |
| 100 __FILE__, FROM_HERE, | 100 __FILE__, FROM_HERE, |
| 101 base::Bind(&TraceSubscriberStdioImpl::OnData, impl_, data_ptr)); | 101 base::Bind(&TraceSubscriberStdioImpl::OnData, impl_, data_ptr)); |
| 102 } | 102 } |
| 103 | 103 |
| 104 } // namespace content | 104 } // namespace content |
| OLD | NEW |