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

Side by Side Diff: ppapi/proxy/flash_drm_resource.h

Issue 15491006: Rename PPB_Flash_DeviceID interface to PPB_Flash_DRM (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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
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_PROXY_FLASH_DEVICE_ID_RESOURCE_H_ 5 #ifndef PPAPI_PROXY_FLASH_DRM_RESOURCE_H_
6 #define PPAPI_PROXY_FLASH_DEVICE_ID_RESOURCE_H_ 6 #define PPAPI_PROXY_FLASH_DRM_RESOURCE_H_
7 7
8 #include "ppapi/proxy/plugin_resource.h" 8 #include "ppapi/proxy/plugin_resource.h"
9 #include "ppapi/proxy/ppapi_proxy_export.h" 9 #include "ppapi/proxy/ppapi_proxy_export.h"
10 #include "ppapi/shared_impl/tracked_callback.h" 10 #include "ppapi/shared_impl/tracked_callback.h"
11 #include "ppapi/thunk/ppb_flash_device_id_api.h" 11 #include "ppapi/thunk/ppb_flash_drm_api.h"
12 12
13 namespace ppapi { 13 namespace ppapi {
14 namespace proxy { 14 namespace proxy {
15 15
16 class FlashDeviceIDResource 16 class FlashDRMResource
17 : public PluginResource, 17 : public PluginResource,
18 public thunk::PPB_Flash_DeviceID_API { 18 public thunk::PPB_Flash_DRM_API {
19 public: 19 public:
20 FlashDeviceIDResource(Connection connection, 20 FlashDRMResource(Connection connection,
21 PP_Instance instance); 21 PP_Instance instance);
yzshen1 2013/05/21 06:32:31 wrong indent.
raymes 2013/05/21 16:32:51 Done.
22 virtual ~FlashDeviceIDResource(); 22 virtual ~FlashDRMResource();
23 23
24 // Resource override. 24 // Resource override.
25 virtual thunk::PPB_Flash_DeviceID_API* AsPPB_Flash_DeviceID_API() OVERRIDE; 25 virtual thunk::PPB_Flash_DRM_API* AsPPB_Flash_DRM_API() OVERRIDE;
26 26
27 // PPB_Flash_DeviceID_API implementation. 27 // PPB_Flash_DRM_API implementation.
28 virtual int32_t GetDeviceID(PP_Var* id, 28 virtual int32_t GetDeviceID(PP_Var* id,
29 scoped_refptr<TrackedCallback> callback) OVERRIDE; 29 scoped_refptr<TrackedCallback> callback) OVERRIDE;
30 30
31 private: 31 private:
32 // IPC message handler. 32 void OnPluginMsgGetDeviceIDReply(PP_Var* dest,
33 void OnPluginMsgGetDeviceIDReply(const ResourceMessageReplyParams& params, 33 scoped_refptr<TrackedCallback> callback,
34 const ResourceMessageReplyParams& params,
34 const std::string& id); 35 const std::string& id);
35 36
36 // Non-null when a callback is pending. 37 DISALLOW_COPY_AND_ASSIGN(FlashDRMResource);
37 PP_Var* dest_;
38
39 scoped_refptr<TrackedCallback> callback_;
40
41 DISALLOW_COPY_AND_ASSIGN(FlashDeviceIDResource);
42 }; 38 };
43 39
44 } // namespace proxy 40 } // namespace proxy
45 } // namespace ppapi 41 } // namespace ppapi
46 42
47 #endif // PPAPI_PROXY_FLASH_DEVICE_ID_RESOURCE_H_ 43 #endif // PPAPI_PROXY_FLASH_DRM_RESOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698