OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_BROWSER_MEDIA_MEDIA_INTERNALS_H_ | 5 #ifndef CONTENT_BROWSER_MEDIA_MEDIA_INTERNALS_H_ |
6 #define CONTENT_BROWSER_MEDIA_MEDIA_INTERNALS_H_ | 6 #define CONTENT_BROWSER_MEDIA_MEDIA_INTERNALS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 // The following methods are virtual for gmock. | 33 // The following methods are virtual for gmock. |
34 | 34 |
35 // Called when an audio stream is deleted. | 35 // Called when an audio stream is deleted. |
36 virtual void OnDeleteAudioStream(void* host, int stream_id); | 36 virtual void OnDeleteAudioStream(void* host, int stream_id); |
37 | 37 |
38 // Called when an audio stream is set to playing or paused. | 38 // Called when an audio stream is set to playing or paused. |
39 virtual void OnSetAudioStreamPlaying(void* host, int stream_id, | 39 virtual void OnSetAudioStreamPlaying(void* host, int stream_id, |
40 bool playing); | 40 bool playing); |
41 | 41 |
42 // Called when the status of an audio stream is set to "created", "flushed", | 42 // Called when the status of an audio stream is set to "created", "closed", or |
43 // "closed", or "error". | 43 // "error". |
44 virtual void OnSetAudioStreamStatus(void* host, int stream_id, | 44 virtual void OnSetAudioStreamStatus(void* host, int stream_id, |
45 const std::string& status); | 45 const std::string& status); |
46 | 46 |
47 // Called when the volume of an audio stream is set. | 47 // Called when the volume of an audio stream is set. |
48 virtual void OnSetAudioStreamVolume(void* host, int stream_id, | 48 virtual void OnSetAudioStreamVolume(void* host, int stream_id, |
49 double volume); | 49 double volume); |
50 | 50 |
51 // Called when a MediaEvent occurs. | 51 // Called when a MediaEvent occurs. |
52 virtual void OnMediaEvent(int render_process_id, | 52 virtual void OnMediaEvent(int render_process_id, |
53 const media::MediaLogEvent& event); | 53 const media::MediaLogEvent& event); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 DictionaryValue data_; | 87 DictionaryValue data_; |
88 | 88 |
89 std::vector<UpdateCallback> update_callbacks_; | 89 std::vector<UpdateCallback> update_callbacks_; |
90 | 90 |
91 DISALLOW_COPY_AND_ASSIGN(MediaInternals); | 91 DISALLOW_COPY_AND_ASSIGN(MediaInternals); |
92 }; | 92 }; |
93 | 93 |
94 } // namespace content | 94 } // namespace content |
95 | 95 |
96 #endif // CONTENT_BROWSER_MEDIA_MEDIA_INTERNALS_H_ | 96 #endif // CONTENT_BROWSER_MEDIA_MEDIA_INTERNALS_H_ |
OLD | NEW |