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

Side by Side Diff: components/copresence/copresence_state_impl.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_COPRESENCE_COPRESENCE_STATE_IMPL_H_ 5 #ifndef COMPONENTS_COPRESENCE_COPRESENCE_STATE_IMPL_H_
6 #define COMPONENTS_COPRESENCE_COPRESENCE_STATE_IMPL_H_ 6 #define COMPONENTS_COPRESENCE_COPRESENCE_STATE_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 void UpdateTransmittingTokens(); 54 void UpdateTransmittingTokens();
55 55
56 std::vector<Directive> active_directives_; 56 std::vector<Directive> active_directives_;
57 57
58 // TODO(ckehoe): When we support more mediums, separate tokens by medium. 58 // TODO(ckehoe): When we support more mediums, separate tokens by medium.
59 // Otherwise tokens from different mediums could overwrite each other. 59 // Otherwise tokens from different mediums could overwrite each other.
60 // TODO(ckehoe): Limit the number of tokens stored. 60 // TODO(ckehoe): Limit the number of tokens stored.
61 std::map<std::string, TransmittedToken> transmitted_tokens_; 61 std::map<std::string, TransmittedToken> transmitted_tokens_;
62 std::map<std::string, ReceivedToken> received_tokens_; 62 std::map<std::string, ReceivedToken> received_tokens_;
63 63
64 ObserverList<CopresenceObserver> observers_; 64 base::ObserverList<CopresenceObserver> observers_;
65 65
66 DISALLOW_COPY_AND_ASSIGN(CopresenceStateImpl); 66 DISALLOW_COPY_AND_ASSIGN(CopresenceStateImpl);
67 }; 67 };
68 68
69 } // namespace copresence 69 } // namespace copresence
70 70
71 #endif // COMPONENTS_COPRESENCE_COPRESENCE_STATE_IMPL_H_ 71 #endif // COMPONENTS_COPRESENCE_COPRESENCE_STATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698