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

Side by Side Diff: ppapi/shared_impl/ppb_device_ref_shared.h

Issue 11411047: Introduce PPB_AudioInput_Dev v0.3 and refactor the device enumeration code: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years 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/proxy/ppapi_messages.h ('k') | ppapi/thunk/interfaces_ppb_public_dev.h » ('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) 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 PPAPI_SHARED_IMPL_PPB_DEVICE_REF_SHARED_H_ 5 #ifndef PPAPI_SHARED_IMPL_PPB_DEVICE_REF_SHARED_H_
6 #define PPAPI_SHARED_IMPL_PPB_DEVICE_REF_SHARED_H_ 6 #define PPAPI_SHARED_IMPL_PPB_DEVICE_REF_SHARED_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "ppapi/shared_impl/resource.h" 13 #include "ppapi/shared_impl/resource.h"
14 #include "ppapi/thunk/ppb_device_ref_api.h" 14 #include "ppapi/thunk/ppb_device_ref_api.h"
15 15
16 namespace ppapi { 16 namespace ppapi {
17 17
18 // IF YOU ADD STUFF TO THIS CLASS 18 // IF YOU ADD STUFF TO THIS CLASS
19 // ============================== 19 // ==============================
20 // Be sure to add it to the STRUCT_TRAITS at the top of ppapi_messages.h. 20 // Be sure to add it to the STRUCT_TRAITS at the top of ppapi_messages.h.
21 struct PPAPI_SHARED_EXPORT DeviceRefData { 21 struct PPAPI_SHARED_EXPORT DeviceRefData {
22 DeviceRefData(); 22 DeviceRefData();
23 23
24 bool operator==(const DeviceRefData& other) const {
25 return type == other.type &&
26 name == other.name &&
27 id == other.id;
28 }
29
24 PP_DeviceType_Dev type; 30 PP_DeviceType_Dev type;
25 std::string name; 31 std::string name;
26 std::string id; 32 std::string id;
27 }; 33 };
28 34
29 class PPAPI_SHARED_EXPORT PPB_DeviceRef_Shared 35 class PPAPI_SHARED_EXPORT PPB_DeviceRef_Shared
30 : public Resource, 36 : public Resource,
31 public thunk::PPB_DeviceRef_API { 37 public thunk::PPB_DeviceRef_API {
32 public: 38 public:
33 PPB_DeviceRef_Shared(ResourceObjectType type, 39 PPB_DeviceRef_Shared(ResourceObjectType type,
(...skipping 15 matching lines...) Expand all
49 55
50 private: 56 private:
51 DeviceRefData data_; 57 DeviceRefData data_;
52 58
53 DISALLOW_IMPLICIT_CONSTRUCTORS(PPB_DeviceRef_Shared); 59 DISALLOW_IMPLICIT_CONSTRUCTORS(PPB_DeviceRef_Shared);
54 }; 60 };
55 61
56 } // namespace ppapi 62 } // namespace ppapi
57 63
58 #endif // PPAPI_SHARED_IMPL_PPB_DEVICE_REF_SHARED_H_ 64 #endif // PPAPI_SHARED_IMPL_PPB_DEVICE_REF_SHARED_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/thunk/interfaces_ppb_public_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698