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

Unified Diff: ppapi/proxy/serialized_structs.h

Issue 6334016: Refactor PPAPI proxy resource handling to maintain which host they came from,... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/proxy/serialized_structs.h
===================================================================
--- ppapi/proxy/serialized_structs.h (revision 72517)
+++ ppapi/proxy/serialized_structs.h (working copy)
@@ -10,11 +10,12 @@
#include "base/shared_memory.h"
#include "build/build_config.h"
+#include "ipc/ipc_platform_file.h"
#include "ppapi/c/pp_bool.h"
#include "ppapi/c/pp_instance.h"
#include "ppapi/c/pp_point.h"
#include "ppapi/c/pp_rect.h"
-#include "ppapi/c/pp_resource.h"
+#include "ppapi/proxy/serialized_resource.h"
#include "ppapi/proxy/serialized_var.h"
struct PP_FontDescription_Dev;
@@ -74,8 +75,8 @@
// is a var, it's much more convenient to use the normal way of passing a
// PP_Var.
struct PPBFont_DrawTextAt_Params {
- PP_Resource font;
- PP_Resource image_data;
+ SerializedResource font;
+ SerializedResource image_data;
PP_Bool text_is_rtl;
PP_Bool override_direction;
PP_Point position;
@@ -90,7 +91,7 @@
~PPBFlash_DrawGlyphs_Params();
PP_Instance instance;
- PP_Resource pp_image_data;
+ SerializedResource image_data;
SerializedFontDescription font_desc;
uint32_t color;
PP_Point position;
@@ -100,6 +101,24 @@
std::vector<PP_Point> glyph_advances;
};
+struct PPBAudio_NotifyAudioStreamCreated_Params {
+ PP_Instance instance;
+ pp::proxy::SerializedResource audio_id;
+ int32_t result_code; // Will be != PP_OK on failure
+ IPC::PlatformFileForTransit socket_handle;
+ base::SharedMemoryHandle handle;
+ int32_t length;
+};
+
+struct PPBURLLoader_UpdateProgress_Params {
+ PP_Instance instance;
+ pp::proxy::SerializedResource resource;
+ int64_t bytes_sent;
+ int64_t total_bytes_to_be_sent;
+ int64_t bytes_received;
+ int64_t total_bytes_to_be_received;
+};
+
#if defined(OS_WIN)
typedef HANDLE ImageHandle;
#elif defined(OS_MACOSX)

Powered by Google App Engine
This is Rietveld 408576698