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

Side by Side Diff: content/renderer/pepper/pepper_platform_audio_output.h

Issue 1175003004: Change audio IPC enums from kConstantStyle to MACRO_STYLE (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 6 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 (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_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 29 matching lines...) Expand all
40 40
41 // Stops the playback. Returns false on error or if called before the stream 41 // Stops the playback. Returns false on error or if called before the stream
42 // is created or after the stream is closed. 42 // is created or after the stream is closed.
43 bool StopPlayback(); 43 bool StopPlayback();
44 44
45 // Closes the stream. Make sure to call this before the object is 45 // Closes the stream. Make sure to call this before the object is
46 // destructed. 46 // destructed.
47 void ShutDown(); 47 void ShutDown();
48 48
49 // media::AudioOutputIPCDelegate implementation. 49 // media::AudioOutputIPCDelegate implementation.
50 void OnStateChanged(media::AudioOutputIPCDelegate::State state) override; 50 void OnStateChanged(media::AudioOutputIPCDelegateState state) override;
51 void OnStreamCreated(base::SharedMemoryHandle handle, 51 void OnStreamCreated(base::SharedMemoryHandle handle,
52 base::SyncSocket::Handle socket_handle, 52 base::SyncSocket::Handle socket_handle,
53 int length) override; 53 int length) override;
54 void OnIPCClosed() override; 54 void OnIPCClosed() override;
55 55
56 protected: 56 protected:
57 ~PepperPlatformAudioOutput() override; 57 ~PepperPlatformAudioOutput() override;
58 58
59 private: 59 private:
60 friend class base::RefCountedThreadSafe<PepperPlatformAudioOutput>; 60 friend class base::RefCountedThreadSafe<PepperPlatformAudioOutput>;
(...skipping 21 matching lines...) Expand all
82 82
83 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; 83 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
84 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; 84 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
85 85
86 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioOutput); 86 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioOutput);
87 }; 87 };
88 88
89 } // namespace content 89 } // namespace content
90 90
91 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_H_ 91 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_platform_audio_input.cc ('k') | content/renderer/pepper/pepper_platform_audio_output.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698