| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 MOJO_EXAMPLES_PEPPER_CONTAINER_APP_PLUGIN_INSTANCE_H_ | 5 #ifndef MOJO_EXAMPLES_PEPPER_CONTAINER_APP_PLUGIN_INSTANCE_H_ |
| 6 #define MOJO_EXAMPLES_PEPPER_CONTAINER_APP_PLUGIN_INSTANCE_H_ | 6 #define MOJO_EXAMPLES_PEPPER_CONTAINER_APP_PLUGIN_INSTANCE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "mojo/examples/pepper_container_app/plugin_module.h" | 10 #include "mojo/examples/pepper_container_app/plugin_module.h" |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 virtual void UpdateSurroundingText(PP_Instance instance, | 106 virtual void UpdateSurroundingText(PP_Instance instance, |
| 107 const char* text, | 107 const char* text, |
| 108 uint32_t caret, | 108 uint32_t caret, |
| 109 uint32_t anchor) OVERRIDE; | 109 uint32_t anchor) OVERRIDE; |
| 110 virtual void ZoomChanged(PP_Instance instance, double factor) OVERRIDE; | 110 virtual void ZoomChanged(PP_Instance instance, double factor) OVERRIDE; |
| 111 virtual void ZoomLimitsChanged(PP_Instance instance, | 111 virtual void ZoomLimitsChanged(PP_Instance instance, |
| 112 double minimum_factor, | 112 double minimum_factor, |
| 113 double maximum_factor) OVERRIDE; | 113 double maximum_factor) OVERRIDE; |
| 114 virtual PP_Var GetDocumentURL(PP_Instance instance, | 114 virtual PP_Var GetDocumentURL(PP_Instance instance, |
| 115 PP_URLComponents_Dev* components) OVERRIDE; | 115 PP_URLComponents_Dev* components) OVERRIDE; |
| 116 virtual void SessionCreated(PP_Instance instance, | 116 virtual void PromiseResolved(PP_Instance instance, |
| 117 uint32_t session_id, | 117 uint32 promise_id) OVERRIDE; |
| 118 PP_Var web_session_id) OVERRIDE; | 118 virtual void PromiseResolvedWithSession(PP_Instance instance, |
| 119 uint32 promise_id, |
| 120 PP_Var web_session_id_var) OVERRIDE; |
| 121 virtual void PromiseRejected(PP_Instance instance, |
| 122 uint32 promise_id, |
| 123 PP_CdmExceptionCode exception_code, |
| 124 uint32 system_code, |
| 125 PP_Var error_description_var) OVERRIDE; |
| 119 virtual void SessionMessage(PP_Instance instance, | 126 virtual void SessionMessage(PP_Instance instance, |
| 120 uint32_t session_id, | 127 PP_Var web_session_id_var, |
| 121 PP_Var message, | 128 PP_Var message_var, |
| 122 PP_Var destination_url) OVERRIDE; | 129 PP_Var destination_url_var) OVERRIDE; |
| 123 virtual void SessionReady(PP_Instance instance, uint32_t session_id) OVERRIDE; | 130 virtual void SessionReady(PP_Instance instance, |
| 131 PP_Var web_session_id_var) OVERRIDE; |
| 124 virtual void SessionClosed(PP_Instance instance, | 132 virtual void SessionClosed(PP_Instance instance, |
| 125 uint32_t session_id) OVERRIDE; | 133 PP_Var web_session_id_var) OVERRIDE; |
| 126 virtual void SessionError(PP_Instance instance, | 134 virtual void SessionError(PP_Instance instance, |
| 127 uint32_t session_id, | 135 PP_Var web_session_id_var, |
| 128 int32_t media_error, | 136 PP_CdmExceptionCode exception_code, |
| 129 uint32_t system_code) OVERRIDE; | 137 uint32 system_code, |
| 138 PP_Var error_description_var) OVERRIDE; |
| 130 virtual void DeliverBlock(PP_Instance instance, | 139 virtual void DeliverBlock(PP_Instance instance, |
| 131 PP_Resource decrypted_block, | 140 PP_Resource decrypted_block, |
| 132 const PP_DecryptedBlockInfo* block_info) OVERRIDE; | 141 const PP_DecryptedBlockInfo* block_info) OVERRIDE; |
| 133 virtual void DecoderInitializeDone(PP_Instance instance, | 142 virtual void DecoderInitializeDone(PP_Instance instance, |
| 134 PP_DecryptorStreamType decoder_type, | 143 PP_DecryptorStreamType decoder_type, |
| 135 uint32_t request_id, | 144 uint32_t request_id, |
| 136 PP_Bool success) OVERRIDE; | 145 PP_Bool success) OVERRIDE; |
| 137 virtual void DecoderDeinitializeDone(PP_Instance instance, | 146 virtual void DecoderDeinitializeDone(PP_Instance instance, |
| 138 PP_DecryptorStreamType decoder_type, | 147 PP_DecryptorStreamType decoder_type, |
| 139 uint32_t request_id) OVERRIDE; | 148 uint32_t request_id) OVERRIDE; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 167 scoped_refptr<PluginModule> plugin_module_; | 176 scoped_refptr<PluginModule> plugin_module_; |
| 168 ppapi::ScopedPPResource bound_graphics_; | 177 ppapi::ScopedPPResource bound_graphics_; |
| 169 | 178 |
| 170 DISALLOW_COPY_AND_ASSIGN(PluginInstance); | 179 DISALLOW_COPY_AND_ASSIGN(PluginInstance); |
| 171 }; | 180 }; |
| 172 | 181 |
| 173 } // namespace examples | 182 } // namespace examples |
| 174 } // namespace mojo | 183 } // namespace mojo |
| 175 | 184 |
| 176 #endif // MOJO_EXAMPLES_PEPPER_CONTAINER_APP_PLUGIN_INSTANCE_H_ | 185 #endif // MOJO_EXAMPLES_PEPPER_CONTAINER_APP_PLUGIN_INSTANCE_H_ |
| OLD | NEW |