Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(725)

Side by Side Diff: base/profiler/win32_stack_frame_unwinder.h

Issue 1313543002: Fix style checker errors after https://codereview.chromium.org/1263403002/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef BASE_PROFILER_WIN32_STACK_FRAME_UNWINDER_H_ 5 #ifndef BASE_PROFILER_WIN32_STACK_FRAME_UNWINDER_H_
6 #define BASE_PROFILER_WIN32_STACK_FRAME_UNWINDER_H_ 6 #define BASE_PROFILER_WIN32_STACK_FRAME_UNWINDER_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include "base/base_export.h" 10 #include "base/base_export.h"
(...skipping 27 matching lines...) Expand all
38 UnwindFunctions(); 38 UnwindFunctions();
39 39
40 private: 40 private:
41 DISALLOW_COPY_AND_ASSIGN(UnwindFunctions); 41 DISALLOW_COPY_AND_ASSIGN(UnwindFunctions);
42 }; 42 };
43 43
44 class BASE_EXPORT Win32UnwindFunctions : public UnwindFunctions { 44 class BASE_EXPORT Win32UnwindFunctions : public UnwindFunctions {
45 public: 45 public:
46 Win32UnwindFunctions(); 46 Win32UnwindFunctions();
47 47
48 virtual PRUNTIME_FUNCTION LookupFunctionEntry(DWORD64 program_counter, 48 PRUNTIME_FUNCTION LookupFunctionEntry(DWORD64 program_counter,
49 PDWORD64 image_base) override; 49 PDWORD64 image_base) override;
50 50
51 virtual void VirtualUnwind(DWORD64 image_base, DWORD64 program_counter, 51 void VirtualUnwind(DWORD64 image_base,
52 PRUNTIME_FUNCTION runtime_function, 52 DWORD64 program_counter,
53 CONTEXT* context) override; 53 PRUNTIME_FUNCTION runtime_function,
54 CONTEXT* context) override;
54 55
55 private: 56 private:
56 DISALLOW_COPY_AND_ASSIGN(Win32UnwindFunctions); 57 DISALLOW_COPY_AND_ASSIGN(Win32UnwindFunctions);
57 }; 58 };
58 59
59 Win32StackFrameUnwinder(); 60 Win32StackFrameUnwinder();
60 ~Win32StackFrameUnwinder(); 61 ~Win32StackFrameUnwinder();
61 62
62 bool TryUnwind(CONTEXT* context); 63 bool TryUnwind(CONTEXT* context);
63 64
64 private: 65 private:
65 // This function is for test purposes only. 66 // This function is for test purposes only.
66 Win32StackFrameUnwinder(UnwindFunctions* unwind_functions); 67 Win32StackFrameUnwinder(UnwindFunctions* unwind_functions);
67 friend class Win32StackFrameUnwinderTest; 68 friend class Win32StackFrameUnwinderTest;
68 69
69 // State associated with each stack unwinding. 70 // State associated with each stack unwinding.
70 bool at_top_frame_; 71 bool at_top_frame_;
71 bool unwind_info_present_for_all_frames_; 72 bool unwind_info_present_for_all_frames_;
72 const void* pending_blacklisted_module_; 73 const void* pending_blacklisted_module_;
73 74
74 Win32UnwindFunctions win32_unwind_functions_; 75 Win32UnwindFunctions win32_unwind_functions_;
75 UnwindFunctions* const unwind_functions_; 76 UnwindFunctions* const unwind_functions_;
76 77
77 DISALLOW_COPY_AND_ASSIGN(Win32StackFrameUnwinder); 78 DISALLOW_COPY_AND_ASSIGN(Win32StackFrameUnwinder);
78 }; 79 };
79 80
80 } // namespace base 81 } // namespace base
81 82
82 #endif // BASE_PROFILER_WIN32_STACK_FRAME_UNWINDER_H_ 83 #endif // BASE_PROFILER_WIN32_STACK_FRAME_UNWINDER_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698