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

Unified Diff: chrome/common/ipc_message_utils.h

Issue 100080: Remove unused IPC deserializer... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/ipc_message_utils.h
===================================================================
--- chrome/common/ipc_message_utils.h (revision 14666)
+++ chrome/common/ipc_message_utils.h (working copy)
@@ -583,39 +583,6 @@
};
template <>
-struct ParamTraits<HRGN> {
- typedef HRGN param_type;
- static void Write(Message* m, const param_type& p) {
- int data_size = GetRegionData(p, 0, NULL);
- if (data_size) {
- char* bytes = new char[data_size];
- GetRegionData(p, data_size, reinterpret_cast<LPRGNDATA>(bytes));
- m->WriteData(reinterpret_cast<const char*>(bytes), data_size);
- delete [] bytes;
- } else {
- m->WriteData(NULL, 0);
- }
- }
- static bool Read(const Message* m, void** iter, param_type* r) {
- bool res = FALSE;
- const char *data;
- int data_size = 0;
- res = m->ReadData(iter, &data, &data_size);
- if (data_size) {
- *r = ExtCreateRegion(NULL, data_size,
- reinterpret_cast<CONST RGNDATA*>(data));
- } else {
- res = TRUE;
- *r = CreateRectRgn(0, 0, 0, 0);
- }
- return res;
- }
- static void Log(const param_type& p, std::wstring* l) {
- l->append(StringPrintf(L"0x%X", p));
- }
-};
-
-template <>
struct ParamTraits<HACCEL> {
typedef HACCEL param_type;
static void Write(Message* m, const param_type& p) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698