| 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_PPAPI_PLUGIN_INSTANCE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCanvas.h" | 46 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCanvas.h" |
| 47 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" | 47 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
| 48 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h" | 48 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h" |
| 49 #include "ui/base/ime/text_input_type.h" | 49 #include "ui/base/ime/text_input_type.h" |
| 50 #include "ui/gfx/rect.h" | 50 #include "ui/gfx/rect.h" |
| 51 #include "webkit/plugins/ppapi/plugin_delegate.h" | 51 #include "webkit/plugins/ppapi/plugin_delegate.h" |
| 52 #include "webkit/plugins/ppapi/ppb_flash_impl.h" | 52 #include "webkit/plugins/ppapi/ppb_flash_impl.h" |
| 53 #include "webkit/plugins/ppapi/ppp_pdf.h" | 53 #include "webkit/plugins/ppapi/ppp_pdf.h" |
| 54 #include "webkit/plugins/webkit_plugins_export.h" | 54 #include "webkit/plugins/webkit_plugins_export.h" |
| 55 | 55 |
| 56 struct PP_DecryptedBlockInfo; |
| 56 struct PP_Point; | 57 struct PP_Point; |
| 57 | 58 |
| 58 class SkBitmap; | 59 class SkBitmap; |
| 59 class TransportDIB; | 60 class TransportDIB; |
| 60 | 61 |
| 61 namespace WebKit { | 62 namespace WebKit { |
| 62 class WebInputEvent; | 63 class WebInputEvent; |
| 63 class WebMouseEvent; | 64 class WebMouseEvent; |
| 64 class WebPluginContainer; | 65 class WebPluginContainer; |
| 65 struct WebCompositionUnderline; | 66 struct WebCompositionUnderline; |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 void RotateView(WebKit::WebPlugin::RotationType type); | 239 void RotateView(WebKit::WebPlugin::RotationType type); |
| 239 | 240 |
| 240 void Graphics3DContextLost(); | 241 void Graphics3DContextLost(); |
| 241 | 242 |
| 242 // Provides access to PPP_ContentDecryptor_Private. | 243 // Provides access to PPP_ContentDecryptor_Private. |
| 243 // TODO(tomfinegan): Move decryptor methods to delegate class. | 244 // TODO(tomfinegan): Move decryptor methods to delegate class. |
| 244 typedef base::Callback<void(void*, int)> DecryptedDataCB; | 245 typedef base::Callback<void(void*, int)> DecryptedDataCB; |
| 245 bool GenerateKeyRequest(const std::string& key_system, | 246 bool GenerateKeyRequest(const std::string& key_system, |
| 246 const std::string& init_data); | 247 const std::string& init_data); |
| 247 bool AddKey(const std::string& session_id, | 248 bool AddKey(const std::string& session_id, |
| 248 const std::string& key); | 249 const std::string& key, |
| 250 const std::string& init_data); |
| 249 bool CancelKeyRequest(const std::string& session_id); | 251 bool CancelKeyRequest(const std::string& session_id); |
| 250 bool Decrypt(const base::StringPiece& encypted_block, | 252 bool Decrypt(const base::StringPiece& encypted_block, |
| 251 const DecryptedDataCB& callback); | 253 const DecryptedDataCB& callback); |
| 252 bool DecryptAndDecode(const base::StringPiece& encypted_block, | 254 bool DecryptAndDecode(const base::StringPiece& encypted_block, |
| 253 const DecryptedDataCB& callback); | 255 const DecryptedDataCB& callback); |
| 254 | 256 |
| 255 // There are 2 implementations of the fullscreen interface | 257 // There are 2 implementations of the fullscreen interface |
| 256 // PPB_FlashFullscreen is used by Pepper Flash. | 258 // PPB_FlashFullscreen is used by Pepper Flash. |
| 257 // PPB_Fullscreen is intended for other applications including NaCl. | 259 // PPB_Fullscreen is intended for other applications including NaCl. |
| 258 // The two interface are mutually exclusive. | 260 // The two interface are mutually exclusive. |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 PP_Var session_id, | 440 PP_Var session_id, |
| 439 PP_Resource message, | 441 PP_Resource message, |
| 440 PP_Var default_url) OVERRIDE; | 442 PP_Var default_url) OVERRIDE; |
| 441 virtual void KeyError(PP_Instance instance, | 443 virtual void KeyError(PP_Instance instance, |
| 442 PP_Var key_system, | 444 PP_Var key_system, |
| 443 PP_Var session_id, | 445 PP_Var session_id, |
| 444 int32_t media_error, | 446 int32_t media_error, |
| 445 int32_t system_code) OVERRIDE; | 447 int32_t system_code) OVERRIDE; |
| 446 virtual void DeliverBlock(PP_Instance instance, | 448 virtual void DeliverBlock(PP_Instance instance, |
| 447 PP_Resource decrypted_block, | 449 PP_Resource decrypted_block, |
| 448 int32_t request_id) OVERRIDE; | 450 const PP_DecryptedBlockInfo* block_info) OVERRIDE; |
| 449 virtual void DeliverFrame(PP_Instance instance, | 451 virtual void DeliverFrame(PP_Instance instance, |
| 450 PP_Resource decrypted_frame, | 452 PP_Resource decrypted_frame, |
| 451 int32_t request_id) OVERRIDE; | 453 const PP_DecryptedBlockInfo* block_info) OVERRIDE; |
| 452 virtual void DeliverSamples(PP_Instance instance, | 454 virtual void DeliverSamples(PP_Instance instance, |
| 453 PP_Resource decrypted_samples, | 455 PP_Resource decrypted_samples, |
| 454 int32_t request_id) OVERRIDE; | 456 const PP_DecryptedBlockInfo* block_info) OVERRIDE; |
| 455 | 457 |
| 456 // Reset this instance as proxied. Resets cached interfaces to point to the | 458 // Reset this instance as proxied. Resets cached interfaces to point to the |
| 457 // proxy and re-sends DidCreate, DidChangeView, and HandleDocumentLoad (if | 459 // proxy and re-sends DidCreate, DidChangeView, and HandleDocumentLoad (if |
| 458 // necessary). | 460 // necessary). |
| 459 // This is for use with the NaCl proxy. | 461 // This is for use with the NaCl proxy. |
| 460 bool ResetAsProxied(); | 462 bool ResetAsProxied(); |
| 461 | 463 |
| 462 private: | 464 private: |
| 463 // See the static Create functions above for creating PluginInstance objects. | 465 // See the static Create functions above for creating PluginInstance objects. |
| 464 // This constructor is private so that we can hide the PPP_Instance_Combined | 466 // This constructor is private so that we can hide the PPP_Instance_Combined |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 726 // the pointer so we can re-send it later if we are reset to talk to NaCl. | 728 // the pointer so we can re-send it later if we are reset to talk to NaCl. |
| 727 scoped_refptr<PPB_URLLoader_Impl> document_loader_; | 729 scoped_refptr<PPB_URLLoader_Impl> document_loader_; |
| 728 | 730 |
| 729 DISALLOW_COPY_AND_ASSIGN(PluginInstance); | 731 DISALLOW_COPY_AND_ASSIGN(PluginInstance); |
| 730 }; | 732 }; |
| 731 | 733 |
| 732 } // namespace ppapi | 734 } // namespace ppapi |
| 733 } // namespace webkit | 735 } // namespace webkit |
| 734 | 736 |
| 735 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 737 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
| OLD | NEW |