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 #include "ppapi/proxy/flash_device_id_resource.h" | 5 #include "ppapi/proxy/flash_device_id_resource.h" |
6 | 6 |
7 #include "ppapi/c/pp_errors.h" | 7 #include "ppapi/c/pp_errors.h" |
8 #include "ppapi/proxy/dispatch_reply_message.h" | 8 #include "ppapi/proxy/dispatch_reply_message.h" |
9 #include "ppapi/proxy/ppapi_messages.h" | 9 #include "ppapi/proxy/ppapi_messages.h" |
10 #include "ppapi/shared_impl/var.h" | 10 #include "ppapi/shared_impl/var.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 } | 53 } |
54 | 54 |
55 void FlashDeviceIDResource::OnPluginMsgGetDeviceIDReply( | 55 void FlashDeviceIDResource::OnPluginMsgGetDeviceIDReply( |
56 const ResourceMessageReplyParams& params, | 56 const ResourceMessageReplyParams& params, |
57 const std::string& id) { | 57 const std::string& id) { |
58 if (params.result() == PP_OK) | 58 if (params.result() == PP_OK) |
59 *dest_ = StringVar::StringToPPVar(id); | 59 *dest_ = StringVar::StringToPPVar(id); |
60 else | 60 else |
61 *dest_ = PP_MakeUndefined(); | 61 *dest_ = PP_MakeUndefined(); |
62 dest_ = NULL; | 62 dest_ = NULL; |
63 TrackedCallback::ClearAndRun(&callback_, params.result()); | 63 callback_->Run(params.result()); |
64 } | 64 } |
65 | 65 |
66 } // namespace proxy | 66 } // namespace proxy |
67 } // namespace ppapi | 67 } // namespace ppapi |
OLD | NEW |