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

Side by Side Diff: components/copresence/copresence_state_impl.h

Issue 865483005: Creating the audio_modem component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merging again Created 5 years, 10 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>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/observer_list.h" 13 #include "base/observer_list.h"
14 #include "components/copresence/proto/enums.pb.h" 14 #include "components/copresence/proto/enums.pb.h"
15 #include "components/copresence/public/copresence_state.h" 15 #include "components/copresence/public/copresence_state.h"
16 16
17 namespace copresence { 17 namespace copresence {
18 18
19 class Directive; 19 class Directive;
20 struct AudioToken;
21 struct ReceivedToken; 20 struct ReceivedToken;
22 struct TransmittedToken; 21 struct TransmittedToken;
23 22
24 // This class tracks the internal state of the copresence component 23 // This class tracks the internal state of the copresence component
25 // for debugging purposes. CopresenceState only allows observation, 24 // for debugging purposes. CopresenceState only allows observation,
26 // but this class accepts updates from elsewhere in the component. 25 // but this class accepts updates from elsewhere in the component.
27 class CopresenceStateImpl final : public CopresenceState { 26 class CopresenceStateImpl final : public CopresenceState {
28 public: 27 public:
29 CopresenceStateImpl(); 28 CopresenceStateImpl();
30 ~CopresenceStateImpl() override; 29 ~CopresenceStateImpl() override;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 std::map<std::string, ReceivedToken> received_tokens_; 62 std::map<std::string, ReceivedToken> received_tokens_;
64 63
65 ObserverList<CopresenceObserver> observers_; 64 ObserverList<CopresenceObserver> observers_;
66 65
67 DISALLOW_COPY_AND_ASSIGN(CopresenceStateImpl); 66 DISALLOW_COPY_AND_ASSIGN(CopresenceStateImpl);
68 }; 67 };
69 68
70 } // namespace copresence 69 } // namespace copresence
71 70
72 #endif // COMPONENTS_COPRESENCE_COPRESENCE_STATE_IMPL_H_ 71 #endif // COMPONENTS_COPRESENCE_COPRESENCE_STATE_IMPL_H_
OLDNEW
« no previous file with comments | « components/copresence/copresence_manager_impl.cc ('k') | components/copresence/copresence_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698