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

Side by Side Diff: ppapi/cpp/dev/audio_input_dev.h

Issue 9381010: Convert resources to take an instance key instead of an Instance*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: USELESS PATCH TITLE Created 8 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/cpp/audio_config.cc ('k') | ppapi/cpp/dev/audio_input_dev.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 PPAPI_CPP_DEV_AUDIO_INPUT_DEV_H_ 5 #ifndef PPAPI_CPP_DEV_AUDIO_INPUT_DEV_H_
6 #define PPAPI_CPP_DEV_AUDIO_INPUT_DEV_H_ 6 #define PPAPI_CPP_DEV_AUDIO_INPUT_DEV_H_
7 7
8 #include "ppapi/c/dev/ppb_audio_input_dev.h" 8 #include "ppapi/c/dev/ppb_audio_input_dev.h"
9 #include "ppapi/cpp/audio_config.h" 9 #include "ppapi/cpp/audio_config.h"
10 #include "ppapi/cpp/resource.h" 10 #include "ppapi/cpp/resource.h"
11 11
12 namespace pp { 12 namespace pp {
13 13
14 class Instance; 14 class InstanceHandle;
15 15
16 class AudioInput_Dev : public Resource { 16 class AudioInput_Dev : public Resource {
17 public: 17 public:
18 /// An empty constructor for an AudioInput resource. 18 /// An empty constructor for an AudioInput resource.
19 AudioInput_Dev() {} 19 AudioInput_Dev() {}
20 20
21 AudioInput_Dev(Instance* instance, 21 AudioInput_Dev(const InstanceHandle& instance,
22 const AudioConfig& config, 22 const AudioConfig& config,
23 PPB_AudioInput_Callback callback, 23 PPB_AudioInput_Callback callback,
24 void* user_data); 24 void* user_data);
25 25
26 /// Static function for determining whether the browser supports the required 26 /// Static function for determining whether the browser supports the required
27 /// AudioInput interface. 27 /// AudioInput interface.
28 /// 28 ///
29 /// @return true if the interface is available, false otherwise. 29 /// @return true if the interface is available, false otherwise.
30 static bool IsAvailable(); 30 static bool IsAvailable();
31 31
(...skipping 13 matching lines...) Expand all
45 bool StartCapture(); 45 bool StartCapture();
46 bool StopCapture(); 46 bool StopCapture();
47 47
48 private: 48 private:
49 AudioConfig config_; 49 AudioConfig config_;
50 }; 50 };
51 51
52 } // namespace pp 52 } // namespace pp
53 53
54 #endif // PPAPI_CPP_DEV_AUDIO_INPUT_DEV_H_ 54 #endif // PPAPI_CPP_DEV_AUDIO_INPUT_DEV_H_
OLDNEW
« no previous file with comments | « ppapi/cpp/audio_config.cc ('k') | ppapi/cpp/dev/audio_input_dev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698