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

Side by Side Diff: components/copresence/handlers/audio/audio_directive_handler.h

Issue 598053003: Switching to C++11 template syntax (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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_HANDLERS_AUDIO_AUDIO_DIRECTIVE_HANDLER_H_ 5 #ifndef COMPONENTS_COPRESENCE_HANDLERS_AUDIO_AUDIO_DIRECTIVE_HANDLER_H_
6 #define COMPONENTS_COPRESENCE_HANDLERS_AUDIO_AUDIO_DIRECTIVE_HANDLER_H_ 6 #define COMPONENTS_COPRESENCE_HANDLERS_AUDIO_AUDIO_DIRECTIVE_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 player_inaudible_ = player; 76 player_inaudible_ = player;
77 } 77 }
78 78
79 void set_recorder_for_testing(AudioRecorder* recorder) { 79 void set_recorder_for_testing(AudioRecorder* recorder) {
80 recorder_ = recorder; 80 recorder_ = recorder;
81 } 81 }
82 82
83 private: 83 private:
84 FRIEND_TEST_ALL_PREFIXES(AudioDirectiveHandlerTest, Basic); 84 FRIEND_TEST_ALL_PREFIXES(AudioDirectiveHandlerTest, Basic);
85 85
86 typedef TimedMap<std::string, scoped_refptr<media::AudioBusRefCounted> > 86 typedef TimedMap<std::string, scoped_refptr<media::AudioBusRefCounted>>
87 SamplesMap; 87 SamplesMap;
88 88
89 // Processes the next active transmit instruction. 89 // Processes the next active transmit instruction.
90 void ProcessNextTransmit(); 90 void ProcessNextTransmit();
91 // Processes the next active receive instruction. 91 // Processes the next active receive instruction.
92 void ProcessNextReceive(); 92 void ProcessNextReceive();
93 93
94 void PlayToken(const std::string token, bool audible); 94 void PlayToken(const std::string token, bool audible);
95 95
96 // This is the method that the whispernet client needs to call to return 96 // This is the method that the whispernet client needs to call to return
(...skipping 28 matching lines...) Expand all
125 // expires the oldest samples first. 125 // expires the oldest samples first.
126 SamplesMap samples_cache_audible_; 126 SamplesMap samples_cache_audible_;
127 SamplesMap samples_cache_inaudible_; 127 SamplesMap samples_cache_inaudible_;
128 128
129 DISALLOW_COPY_AND_ASSIGN(AudioDirectiveHandler); 129 DISALLOW_COPY_AND_ASSIGN(AudioDirectiveHandler);
130 }; 130 };
131 131
132 } // namespace copresence 132 } // namespace copresence
133 133
134 #endif // COMPONENTS_COPRESENCE_HANDLERS_AUDIO_AUDIO_DIRECTIVE_HANDLER_H_ 134 #endif // COMPONENTS_COPRESENCE_HANDLERS_AUDIO_AUDIO_DIRECTIVE_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/copresence/copresence_translations.cc ('k') | components/copresence/rpc/rpc_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698