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

Side by Side Diff: src/google_breakpad/processor/call_stack.h

Issue 1882833004: Add a missing const to an accessor. (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: Created 4 years, 8 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 (c) 2006, Google Inc. 1 // Copyright (c) 2006, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 ~CallStack(); 61 ~CallStack();
62 62
63 // Resets the CallStack to its initial empty state 63 // Resets the CallStack to its initial empty state
64 void Clear(); 64 void Clear();
65 65
66 const vector<StackFrame*>* frames() const { return &frames_; } 66 const vector<StackFrame*>* frames() const { return &frames_; }
67 67
68 // Set the TID associated with this call stack. 68 // Set the TID associated with this call stack.
69 void set_tid(uint32_t tid) { tid_ = tid; } 69 void set_tid(uint32_t tid) { tid_ = tid; }
70 70
71 uint32_t tid() { return tid_; } 71 uint32_t tid() const { return tid_; }
72 72
73 private: 73 private:
74 // Stackwalker is responsible for building the frames_ vector. 74 // Stackwalker is responsible for building the frames_ vector.
75 friend class Stackwalker; 75 friend class Stackwalker;
76 76
77 // Storage for pushed frames. 77 // Storage for pushed frames.
78 vector<StackFrame*> frames_; 78 vector<StackFrame*> frames_;
79 79
80 // The TID associated with this call stack. Default to 0 if it's not 80 // The TID associated with this call stack. Default to 0 if it's not
81 // available. 81 // available.
82 uint32_t tid_; 82 uint32_t tid_;
83 }; 83 };
84 84
85 } // namespace google_breakpad 85 } // namespace google_breakpad
86 86
87 #endif // GOOGLE_BREAKPAD_PROCSSOR_CALL_STACK_H__ 87 #endif // GOOGLE_BREAKPAD_PROCSSOR_CALL_STACK_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