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 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
657 // Enumerates devices of the specified type. The request ID passed into the | 657 // Enumerates devices of the specified type. The request ID passed into the |
658 // callback will be the same as the return value. | 658 // callback will be the same as the return value. |
659 virtual int EnumerateDevices(PP_DeviceType_Dev type, | 659 virtual int EnumerateDevices(PP_DeviceType_Dev type, |
660 const EnumerateDevicesCallback& callback) = 0; | 660 const EnumerateDevicesCallback& callback) = 0; |
661 // Create a ClipboardClient for writing to the clipboard. The caller will own | 661 // Create a ClipboardClient for writing to the clipboard. The caller will own |
662 // the pointer to this. | 662 // the pointer to this. |
663 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; | 663 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; |
664 | 664 |
665 // Returns a Device ID | 665 // Returns a Device ID |
666 virtual std::string GetDeviceID() = 0; | 666 virtual std::string GetDeviceID() = 0; |
667 | |
668 // Returns restrictions on local data handled by the plug-in. | |
669 virtual void GetLocalDataRestrictions(const GURL& document_url, | |
670 const GURL& plugin_url, | |
671 bool* block_access, | |
viettrungluu
2012/08/01 13:57:14
I find it odd that you use two bool out parameters
Bernhard Bauer
2012/08/02 03:54:08
I mostly do it because I need to plumb that stuff
viettrungluu
2012/08/02 13:19:33
Really? You could use the real PP_WhateverItWas e
Bernhard Bauer
2012/08/02 18:28:36
Yeah, to break out of content/ I use individual me
| |
672 bool* in_memory) = 0; | |
667 }; | 673 }; |
668 | 674 |
669 } // namespace ppapi | 675 } // namespace ppapi |
670 } // namespace webkit | 676 } // namespace webkit |
671 | 677 |
672 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 678 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
OLD | NEW |