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 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
651 EnumerateDevicesCallback; | 651 EnumerateDevicesCallback; |
652 | 652 |
653 // Enumerates devices of the specified type. The request ID passed into the | 653 // Enumerates devices of the specified type. The request ID passed into the |
654 // callback will be the same as the return value. | 654 // callback will be the same as the return value. |
655 virtual int EnumerateDevices(PP_DeviceType_Dev type, | 655 virtual int EnumerateDevices(PP_DeviceType_Dev type, |
656 const EnumerateDevicesCallback& callback) = 0; | 656 const EnumerateDevicesCallback& callback) = 0; |
657 // Stop enumerating devices of the specified |request_id|. The |request_id| | 657 // Stop enumerating devices of the specified |request_id|. The |request_id| |
658 // is the return value of EnumerateDevicesCallback. | 658 // is the return value of EnumerateDevicesCallback. |
659 virtual void StopEnumerateDevices(int request_id) = 0; | 659 virtual void StopEnumerateDevices(int request_id) = 0; |
660 | 660 |
661 // Returns a Device ID | |
662 virtual std::string GetDeviceID() = 0; | |
663 | |
664 // Returns restrictions on local data handled by the plug-in. | 661 // Returns restrictions on local data handled by the plug-in. |
665 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( | 662 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( |
666 const GURL& document_url, | 663 const GURL& document_url, |
667 const GURL& plugin_url) = 0; | 664 const GURL& plugin_url) = 0; |
668 }; | 665 }; |
669 | 666 |
670 } // namespace ppapi | 667 } // namespace ppapi |
671 } // namespace webkit | 668 } // namespace webkit |
672 | 669 |
673 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 670 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
OLD | NEW |