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

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

Issue 10827280: Add PPAPI decryptor implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Partially address xhwang's comments, and fix some StringVar crashiness Created 8 years, 4 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 "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/pp_print_settings_dev.h" 10 #include "ppapi/c/dev/pp_print_settings_dev.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 // Console. 63 // Console.
64 virtual void Log(PP_Instance instance, 64 virtual void Log(PP_Instance instance,
65 PP_LogLevel_Dev log_level, 65 PP_LogLevel_Dev log_level,
66 PP_Var value) = 0; 66 PP_Var value) = 0;
67 virtual void LogWithSource(PP_Instance instance, 67 virtual void LogWithSource(PP_Instance instance,
68 PP_LogLevel_Dev log_level, 68 PP_LogLevel_Dev log_level,
69 PP_Var source, 69 PP_Var source,
70 PP_Var value) = 0; 70 PP_Var value) = 0;
71 71
72 // Content Decryptor.
73 virtual void NeedKey(PP_Instance instance,
74 PP_Var key_system,
75 PP_Var session_id,
76 PP_Var init_data) = 0;
77 virtual void KeyAdded(PP_Instance instance,
78 PP_Var key_system,
79 PP_Var session_id) = 0;
80 virtual void KeyMessage(PP_Instance instance,
81 PP_Var key_system,
82 PP_Var session_id,
83 PP_Resource message,
84 PP_Var default_url) = 0;
85 virtual void KeyError(PP_Instance instance,
86 PP_Var key_system,
87 PP_Var session_id,
88 int32_t media_error,
89 int32_t system_error) = 0;
90 virtual void DeliverBlock(PP_Instance instance,
91 PP_Resource decrypted_block,
92 int32_t request_id) = 0;
93 virtual void DeliverFrame(PP_Instance instance,
94 PP_Resource decrypted_frame,
95 int32_t request_id) = 0;
96 virtual void DeliverSamples(PP_Instance instance,
97 PP_Resource decrypted_samples,
98 int32_t request_id) = 0;
99
72 // Find. 100 // Find.
73 virtual void NumberOfFindResultsChanged(PP_Instance instance, 101 virtual void NumberOfFindResultsChanged(PP_Instance instance,
74 int32_t total, 102 int32_t total,
75 PP_Bool final_result) = 0; 103 PP_Bool final_result) = 0;
76 virtual void SelectedFindResultChanged(PP_Instance instance, 104 virtual void SelectedFindResultChanged(PP_Instance instance,
77 int32_t index) = 0; 105 int32_t index) = 0;
78 106
79 // Font. 107 // Font.
80 virtual PP_Var GetFontFamilies(PP_Instance instance) = 0; 108 virtual PP_Var GetFontFamilies(PP_Instance instance) = 0;
81 109
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 PP_URLComponents_Dev* components) = 0; 181 PP_URLComponents_Dev* components) = 0;
154 #endif // !defined(OS_NACL) 182 #endif // !defined(OS_NACL)
155 183
156 static const ApiID kApiID = API_ID_PPB_INSTANCE; 184 static const ApiID kApiID = API_ID_PPB_INSTANCE;
157 }; 185 };
158 186
159 } // namespace thunk 187 } // namespace thunk
160 } // namespace ppapi 188 } // namespace ppapi
161 189
162 #endif // PPAPI_THUNK_INSTANCE_API_H_ 190 #endif // PPAPI_THUNK_INSTANCE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698