Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(584)

Side by Side Diff: ppapi/thunk/ppb_instance_api.h

Issue 10545036: Add PPAPI decryptor interfaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased on origin/master and fixed a minor conflict Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "ppapi/c/dev/pp_print_settings_dev.h" 8 #include "ppapi/c/dev/pp_print_settings_dev.h"
9 #include "ppapi/c/dev/ppb_console_dev.h" 9 #include "ppapi/c/dev/ppb_console_dev.h"
10 #include "ppapi/c/dev/ppb_text_input_dev.h" 10 #include "ppapi/c/dev/ppb_text_input_dev.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 // Console. 60 // Console.
61 virtual void Log(PP_Instance instance, 61 virtual void Log(PP_Instance instance,
62 PP_LogLevel_Dev log_level, 62 PP_LogLevel_Dev log_level,
63 PP_Var value) = 0; 63 PP_Var value) = 0;
64 virtual void LogWithSource(PP_Instance instance, 64 virtual void LogWithSource(PP_Instance instance,
65 PP_LogLevel_Dev log_level, 65 PP_LogLevel_Dev log_level,
66 PP_Var source, 66 PP_Var source,
67 PP_Var value) = 0; 67 PP_Var value) = 0;
68 68
69 // Content Decryption Module.
70 virtual void NeedKey(PP_Instance instance,
71 PP_Var key_system,
72 PP_Var session_id,
73 PP_Resource init_data) = 0;
74 virtual void KeyAdded(PP_Instance instance,
75 PP_Var key_system,
76 PP_Var session_id) = 0;
77 virtual void KeyMessage(PP_Instance instance,
78 PP_Var key_system,
79 PP_Var session_id,
80 PP_Resource message,
81 PP_Var default_url) = 0;
82 virtual void KeyError(PP_Instance instance,
83 PP_Var key_system,
84 PP_Var session_id,
85 uint16_t media_error,
86 uint16_t system_error) = 0;
87 virtual void DeliverBlock(PP_Instance instance,
88 PP_Resource decrypted_block,
89 PP_CompletionCallback callback) = 0;
90 virtual void DeliverFrame(PP_Instance instance,
91 PP_Resource decrypted_frame,
92 PP_CompletionCallback callback) = 0;
93 virtual void DeliverSamples(PP_Instance instance,
94 PP_Resource decrypted_samples,
95 PP_CompletionCallback callback) = 0;
96
69 // Find. 97 // Find.
70 virtual void NumberOfFindResultsChanged(PP_Instance instance, 98 virtual void NumberOfFindResultsChanged(PP_Instance instance,
71 int32_t total, 99 int32_t total,
72 PP_Bool final_result) = 0; 100 PP_Bool final_result) = 0;
73 virtual void SelectedFindResultChanged(PP_Instance instance, 101 virtual void SelectedFindResultChanged(PP_Instance instance,
74 int32_t index) = 0; 102 int32_t index) = 0;
75 103
76 // Font. 104 // Font.
77 virtual PP_Var GetFontFamilies(PP_Instance instance) = 0; 105 virtual PP_Var GetFontFamilies(PP_Instance instance) = 0;
78 106
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 PP_URLComponents_Dev* components) = 0; 178 PP_URLComponents_Dev* components) = 0;
151 #endif // !defined(OS_NACL) 179 #endif // !defined(OS_NACL)
152 180
153 static const ApiID kApiID = API_ID_PPB_INSTANCE; 181 static const ApiID kApiID = API_ID_PPB_INSTANCE;
154 }; 182 };
155 183
156 } // namespace thunk 184 } // namespace thunk
157 } // namespace ppapi 185 } // namespace ppapi
158 186
159 #endif // PPAPI_THUNK_INSTANCE_API_H_ 187 #endif // PPAPI_THUNK_INSTANCE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698