145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org// Copyright (c) 2012 The Chromium Authors. All rights reserved.
245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org// Use of this source code is governed by a BSD-style license that can be
345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org// found in the LICENSE file.
445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org
545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#ifndef PPAPI_CPP_PRIVATE_FLASH_DEVICE_ID_H_
645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#define PPAPI_CPP_PRIVATE_FLASH_DEVICE_ID_H_
745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org
845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#include "ppapi/cpp/completion_callback.h"
945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#include "ppapi/cpp/resource.h"
1045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org
1145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgnamespace pp {
1245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgnamespace flash {
1345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org
1445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgclass DeviceID : public Resource {
1545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org public:
1645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org  DeviceID();
1745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org  DeviceID(const InstanceHandle& instance);
1845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org
1945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org  // On success, returns a string var.
2045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org  int32_t GetDeviceID(const CompletionCallbackWithOutput<Var>& callback);
2145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org};
2245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org
2345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org}  // namespace flash
2445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org}  // namespace pp
2545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org
2645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#endif  // PPAPI_CPP_PRIVATE_FLASH_DEVICE_ID_H_
2745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org