Lines Matching refs:component_id

73   virtual void OnCreated(int component_id,
76 virtual void OnStarted(int component_id) OVERRIDE;
77 virtual void OnStopped(int component_id) OVERRIDE;
78 virtual void OnClosed(int component_id) OVERRIDE;
79 virtual void OnError(int component_id) OVERRIDE;
80 virtual void OnSetVolume(int component_id, double volume) OVERRIDE;
83 void SendSingleStringUpdate(int component_id,
86 void StoreComponentMetadata(int component_id, base::DictionaryValue* dict);
87 std::string FormatCacheKey(int component_id);
105 void AudioLogImpl::OnCreated(int component_id,
109 StoreComponentMetadata(component_id, &dict);
121 FormatCacheKey(component_id), kAudioLogUpdateFunction, &dict);
124 void AudioLogImpl::OnStarted(int component_id) {
125 SendSingleStringUpdate(component_id, kAudioLogStatusKey, "started");
128 void AudioLogImpl::OnStopped(int component_id) {
129 SendSingleStringUpdate(component_id, kAudioLogStatusKey, "stopped");
132 void AudioLogImpl::OnClosed(int component_id) {
134 StoreComponentMetadata(component_id, &dict);
137 FormatCacheKey(component_id), kAudioLogUpdateFunction, &dict);
140 void AudioLogImpl::OnError(int component_id) {
141 SendSingleStringUpdate(component_id, "error_occurred", "true");
144 void AudioLogImpl::OnSetVolume(int component_id, double volume) {
146 StoreComponentMetadata(component_id, &dict);
149 FormatCacheKey(component_id), kAudioLogUpdateFunction, &dict);
152 std::string AudioLogImpl::FormatCacheKey(int component_id) {
153 return base::StringPrintf("%d:%d:%d", owner_id_, component_, component_id);
156 void AudioLogImpl::SendSingleStringUpdate(int component_id,
160 StoreComponentMetadata(component_id, &dict);
163 FormatCacheKey(component_id), kAudioLogUpdateFunction, &dict);
166 void AudioLogImpl::StoreComponentMetadata(int component_id,
169 dict->SetInteger("component_id", component_id);