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/browser/browser_shutdown_profile_dumper.h" | 5 #include "content/browser/browser_shutdown_profile_dumper.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
13 #include "base/synchronization/waitable_event.h" | 13 #include "base/synchronization/waitable_event.h" |
14 #include "base/threading/thread.h" | 14 #include "base/threading/thread.h" |
15 #include "base/threading/thread_restrictions.h" | 15 #include "base/threading/thread_restrictions.h" |
16 #include "base/trace_event/trace_event.h" | 16 #include "base/trace_event/trace_event.h" |
17 #include "base/trace_event/trace_event_impl.h" | 17 #include "base/trace_event/trace_event_impl.h" |
18 #include "components/tracing/tracing_switches.h" | 18 #include "components/tracing/common/tracing_switches.h" |
19 | 19 |
20 namespace content { | 20 namespace content { |
21 | 21 |
22 BrowserShutdownProfileDumper::BrowserShutdownProfileDumper( | 22 BrowserShutdownProfileDumper::BrowserShutdownProfileDumper( |
23 const base::FilePath& dump_file_name) | 23 const base::FilePath& dump_file_name) |
24 : dump_file_name_(dump_file_name), | 24 : dump_file_name_(dump_file_name), |
25 blocks_(0), | 25 blocks_(0), |
26 dump_file_(NULL) { | 26 dump_file_(NULL) { |
27 } | 27 } |
28 | 28 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 } | 139 } |
140 | 140 |
141 void BrowserShutdownProfileDumper::CloseFile() { | 141 void BrowserShutdownProfileDumper::CloseFile() { |
142 if (!dump_file_) | 142 if (!dump_file_) |
143 return; | 143 return; |
144 base::CloseFile(dump_file_); | 144 base::CloseFile(dump_file_); |
145 dump_file_ = NULL; | 145 dump_file_ = NULL; |
146 } | 146 } |
147 | 147 |
148 } // namespace content | 148 } // namespace content |
OLD | NEW |