OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |