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

Side by Side Diff: components/proximity_auth/logging/log_buffer.h

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 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
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 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
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
OLDNEW
« no previous file with comments | « components/proximity_auth/cryptauth/mock_cryptauth_client.h ('k') | components/proximity_auth/screenlock_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698