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

Unified Diff: ppapi/cpp/private/pass_file_handle.h

Issue 18611004: PPAPI: Initialize CompletionCallbackWithOutput storage (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 7 years, 5 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
« no previous file with comments | « ppapi/cpp/output_traits.h ('k') | ppapi/cpp/private/video_frame_private.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/private/pass_file_handle.h
diff --git a/ppapi/cpp/private/pass_file_handle.h b/ppapi/cpp/private/pass_file_handle.h
index 53f32dd58570a9dd04f23e3272fe4e3493cc2ec7..c25353b48389593fa880365dc13a012271f0d3b7 100644
--- a/ppapi/cpp/private/pass_file_handle.h
+++ b/ppapi/cpp/private/pass_file_handle.h
@@ -5,6 +5,8 @@
#ifndef PPAPI_CPP_PRIVATE_PASS_FILE_HANDLE_H_
#define PPAPI_CPP_PRIVATE_PASS_FILE_HANDLE_H_
+#include <string.h>
+
#include "ppapi/c/private/pp_file_handle.h"
#include "ppapi/cpp/output_traits.h"
@@ -67,6 +69,10 @@ struct CallbackOutputTraits<PassFileHandle> {
static inline PassFileHandle StorageToPluginArg(StorageType& t) {
return PassFileHandle(t);
}
+
+ static inline void Initialize(StorageType* t) {
+ memset(t, 0, sizeof(*t));
+ }
};
} // namespace internal
« no previous file with comments | « ppapi/cpp/output_traits.h ('k') | ppapi/cpp/private/video_frame_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698