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

Side by Side Diff: components/copresence/mediums/audio/audio_manager.h

Issue 870053008: 64-bit token fixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing Whispernet test 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_MEDIUMS_AUDIO_AUDIO_MANAGER_H_ 5 #ifndef COMPONENTS_COPRESENCE_MEDIUMS_AUDIO_AUDIO_MANAGER_H_
6 #define COMPONENTS_COPRESENCE_MEDIUMS_AUDIO_AUDIO_MANAGER_H_ 6 #define COMPONENTS_COPRESENCE_MEDIUMS_AUDIO_AUDIO_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 11 matching lines...) Expand all
22 virtual void Initialize(WhispernetClient* whispernet_client, 22 virtual void Initialize(WhispernetClient* whispernet_client,
23 const TokensCallback& tokens_cb) = 0; 23 const TokensCallback& tokens_cb) = 0;
24 24
25 virtual void StartPlaying(AudioType type) = 0; 25 virtual void StartPlaying(AudioType type) = 0;
26 virtual void StopPlaying(AudioType type) = 0; 26 virtual void StopPlaying(AudioType type) = 0;
27 27
28 virtual void StartRecording(AudioType type) = 0; 28 virtual void StartRecording(AudioType type) = 0;
29 virtual void StopRecording(AudioType type) = 0; 29 virtual void StopRecording(AudioType type) = 0;
30 30
31 virtual void SetToken(AudioType type, 31 virtual void SetToken(AudioType type,
32 const std::string& url_unsafe_token) = 0; 32 const std::string& url_safe_token) = 0;
33 33
34 virtual const std::string GetToken(AudioType type) = 0; 34 virtual const std::string GetToken(AudioType type) = 0;
35 35
36 virtual bool IsPlayingTokenHeard(AudioType type) = 0; 36 virtual bool IsPlayingTokenHeard(AudioType type) = 0;
37 37
38 virtual void SetTokenLength(AudioType type, size_t token_length) = 0; 38 virtual void SetTokenLength(AudioType type, size_t token_length) = 0;
39 }; 39 };
40 40
41 } // namespace copresence 41 } // namespace copresence
42 42
43 #endif // COMPONENTS_COPRESENCE_MEDIUMS_AUDIO_AUDIO_MANAGER_H_ 43 #endif // COMPONENTS_COPRESENCE_MEDIUMS_AUDIO_AUDIO_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698