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

Side by Side Diff: chrome/common/render_messages.h

Issue 1458001: Write and read content blocked flag. This should have resulted... (Closed) Base URL: svn://chrome-svn/chrome/branches/249/src/
Patch Set: moved to trunk Created 10 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_COMMON_RENDER_MESSAGES_H_ 5 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_
6 #define CHROME_COMMON_RENDER_MESSAGES_H_ 6 #define CHROME_COMMON_RENDER_MESSAGES_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 2049 matching lines...) Expand 10 before | Expand all | Expand 10 after
2060 }; 2060 };
2061 2061
2062 template <> 2062 template <>
2063 struct ParamTraits<ViewMsg_DatabaseOpenFileResponse_Params> { 2063 struct ParamTraits<ViewMsg_DatabaseOpenFileResponse_Params> {
2064 typedef ViewMsg_DatabaseOpenFileResponse_Params param_type; 2064 typedef ViewMsg_DatabaseOpenFileResponse_Params param_type;
2065 static void Write(Message* m, const param_type& p) { 2065 static void Write(Message* m, const param_type& p) {
2066 WriteParam(m, p.file_handle); 2066 WriteParam(m, p.file_handle);
2067 #if defined(OS_POSIX) 2067 #if defined(OS_POSIX)
2068 WriteParam(m, p.dir_handle); 2068 WriteParam(m, p.dir_handle);
2069 #endif 2069 #endif
2070 WriteParam(m, p.blocked);
2070 } 2071 }
2071 static bool Read(const Message* m, void** iter, param_type* p) { 2072 static bool Read(const Message* m, void** iter, param_type* p) {
2072 bool ret = ReadParam(m, iter, &p->file_handle); 2073 bool ret = ReadParam(m, iter, &p->file_handle);
2073 #if defined(OS_POSIX) 2074 #if defined(OS_POSIX)
2074 ret = ret && ReadParam(m, iter, &p->dir_handle); 2075 ret = ret && ReadParam(m, iter, &p->dir_handle);
2075 #endif 2076 #endif
2077 ret = ret && ReadParam(m, iter, &p->blocked);
2076 return ret; 2078 return ret;
2077 } 2079 }
2078 static void Log(const param_type& p, std::wstring* l) { 2080 static void Log(const param_type& p, std::wstring* l) {
2079 l->append(L"("); 2081 l->append(L"(");
2080 LogParam(p.file_handle, l); 2082 LogParam(p.file_handle, l);
2081 #if defined(OS_POSIX) 2083 #if defined(OS_POSIX)
2082 l->append(L", "); 2084 l->append(L", ");
2083 LogParam(p.dir_handle, l); 2085 LogParam(p.dir_handle, l);
2084 #endif 2086 #endif
2087 LogParam(L", ");
2088 LogParam(p.blocked, l);
2085 l->append(L")"); 2089 l->append(L")");
2086 } 2090 }
2087 }; 2091 };
2088 2092
2089 template <> 2093 template <>
2090 struct ParamTraits<appcache::Status> { 2094 struct ParamTraits<appcache::Status> {
2091 typedef appcache::Status param_type; 2095 typedef appcache::Status param_type;
2092 static void Write(Message* m, const param_type& p) { 2096 static void Write(Message* m, const param_type& p) {
2093 m->WriteInt(static_cast<int>(p)); 2097 m->WriteInt(static_cast<int>(p));
2094 } 2098 }
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
2667 } 2671 }
2668 }; 2672 };
2669 2673
2670 } // namespace IPC 2674 } // namespace IPC
2671 2675
2672 2676
2673 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" 2677 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h"
2674 #include "ipc/ipc_message_macros.h" 2678 #include "ipc/ipc_message_macros.h"
2675 2679
2676 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ 2680 #endif // CHROME_COMMON_RENDER_MESSAGES_H_
OLDNEW
« 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