| 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 PPAPI_THUNK_INSTANCE_API_H_ | 5 #ifndef PPAPI_THUNK_INSTANCE_API_H_ |
| 6 #define PPAPI_THUNK_INSTANCE_API_H_ | 6 #define PPAPI_THUNK_INSTANCE_API_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "ppapi/c/dev/ppb_url_util_dev.h" | 10 #include "ppapi/c/dev/ppb_url_util_dev.h" |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 // Zoom. | 135 // Zoom. |
| 136 virtual void ZoomChanged(PP_Instance instance, double factor) = 0; | 136 virtual void ZoomChanged(PP_Instance instance, double factor) = 0; |
| 137 virtual void ZoomLimitsChanged(PP_Instance instance, | 137 virtual void ZoomLimitsChanged(PP_Instance instance, |
| 138 double minimum_factor, | 138 double minimum_factor, |
| 139 double maximum_factor) = 0; | 139 double maximum_factor) = 0; |
| 140 // Testing and URLUtil. | 140 // Testing and URLUtil. |
| 141 virtual PP_Var GetDocumentURL(PP_Instance instance, | 141 virtual PP_Var GetDocumentURL(PP_Instance instance, |
| 142 PP_URLComponents_Dev* components) = 0; | 142 PP_URLComponents_Dev* components) = 0; |
| 143 #if !defined(OS_NACL) | 143 #if !defined(OS_NACL) |
| 144 // Content Decryptor. | 144 // Content Decryptor. |
| 145 virtual void NeedKey(PP_Instance instance, | |
| 146 PP_Var key_system, | |
| 147 PP_Var session_id, | |
| 148 PP_Var init_data) = 0; | |
| 149 virtual void KeyAdded(PP_Instance instance, | 145 virtual void KeyAdded(PP_Instance instance, |
| 150 PP_Var key_system, | 146 PP_Var key_system, |
| 151 PP_Var session_id) = 0; | 147 PP_Var session_id) = 0; |
| 152 virtual void KeyMessage(PP_Instance instance, | 148 virtual void KeyMessage(PP_Instance instance, |
| 153 PP_Var key_system, | 149 PP_Var key_system, |
| 154 PP_Var session_id, | 150 PP_Var session_id, |
| 155 PP_Var message, | 151 PP_Var message, |
| 156 PP_Var default_url) = 0; | 152 PP_Var default_url) = 0; |
| 157 virtual void KeyError(PP_Instance instance, | 153 virtual void KeyError(PP_Instance instance, |
| 158 PP_Var key_system, | 154 PP_Var key_system, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 PP_URLComponents_Dev* components) = 0; | 189 PP_URLComponents_Dev* components) = 0; |
| 194 #endif // !defined(OS_NACL) | 190 #endif // !defined(OS_NACL) |
| 195 | 191 |
| 196 static const ApiID kApiID = API_ID_PPB_INSTANCE; | 192 static const ApiID kApiID = API_ID_PPB_INSTANCE; |
| 197 }; | 193 }; |
| 198 | 194 |
| 199 } // namespace thunk | 195 } // namespace thunk |
| 200 } // namespace ppapi | 196 } // namespace ppapi |
| 201 | 197 |
| 202 #endif // PPAPI_THUNK_INSTANCE_API_H_ | 198 #endif // PPAPI_THUNK_INSTANCE_API_H_ |
| OLD | NEW |