OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "base/profiler/win32_stack_frame_unwinder.h" | 5 #include "base/profiler/win32_stack_frame_unwinder.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <utility> |
8 | 9 |
9 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
10 #include "base/memory/singleton.h" | 11 #include "base/memory/singleton.h" |
11 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
12 | 13 |
13 namespace base { | 14 namespace base { |
14 | 15 |
15 // Win32UnwindFunctions ------------------------------------------------------- | 16 // Win32UnwindFunctions ------------------------------------------------------- |
16 | 17 |
17 const HMODULE ModuleHandleTraits::kNonNullModuleForTesting = | 18 const HMODULE ModuleHandleTraits::kNonNullModuleForTesting = |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 #else | 286 #else |
286 NOTREACHED(); | 287 NOTREACHED(); |
287 return false; | 288 return false; |
288 #endif | 289 #endif |
289 } | 290 } |
290 | 291 |
291 Win32StackFrameUnwinder::Win32StackFrameUnwinder( | 292 Win32StackFrameUnwinder::Win32StackFrameUnwinder( |
292 scoped_ptr<UnwindFunctions> unwind_functions) | 293 scoped_ptr<UnwindFunctions> unwind_functions) |
293 : at_top_frame_(true), | 294 : at_top_frame_(true), |
294 unwind_info_present_for_all_frames_(true), | 295 unwind_info_present_for_all_frames_(true), |
295 unwind_functions_(unwind_functions.Pass()) { | 296 unwind_functions_(std::move(unwind_functions)) {} |
296 } | |
297 | 297 |
298 } // namespace base | 298 } // namespace base |
OLD | NEW |