| 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 #ifndef COMPONENTS_PROXIMITY_AUTH_LOGGING_LOG_BUFFER_H | 5 #ifndef COMPONENTS_PROXIMITY_AUTH_LOGGING_LOG_BUFFER_H |
| 6 #define COMPONENTS_PROXIMITY_AUTH_LOGGING_LOG_BUFFER_H | 6 #define COMPONENTS_PROXIMITY_AUTH_LOGGING_LOG_BUFFER_H |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 size_t MaxBufferSize() const; | 64 size_t MaxBufferSize() const; |
| 65 | 65 |
| 66 // Returns the list logs in the buffer, sorted chronologically. | 66 // Returns the list logs in the buffer, sorted chronologically. |
| 67 const std::list<LogMessage>* logs() { return &log_messages_; } | 67 const std::list<LogMessage>* logs() { return &log_messages_; } |
| 68 | 68 |
| 69 private: | 69 private: |
| 70 // The messages currently in the buffer. | 70 // The messages currently in the buffer. |
| 71 std::list<LogMessage> log_messages_; | 71 std::list<LogMessage> log_messages_; |
| 72 | 72 |
| 73 // List of observers. | 73 // List of observers. |
| 74 ObserverList<Observer> observers_; | 74 base::ObserverList<Observer> observers_; |
| 75 | 75 |
| 76 DISALLOW_COPY_AND_ASSIGN(LogBuffer); | 76 DISALLOW_COPY_AND_ASSIGN(LogBuffer); |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace proximity_auth | 79 } // namespace proximity_auth |
| 80 | 80 |
| 81 #endif // COMPONENTS_PROXIMITY_AUTH_LOGGING_LOG_BUFFER_H | 81 #endif // COMPONENTS_PROXIMITY_AUTH_LOGGING_LOG_BUFFER_H |
| OLD | NEW |