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

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

Issue 10895: Add Terminate() to the Process object, have RenderProcessHost use this to avo... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 1 month 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 | « chrome/common/process_watcher.cc ('k') | chrome/common/render_messages_internal.h » ('j') | 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 #include <map> 10 #include <map>
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 } 182 }
183 183
184 static bool is_repaint_ack(int flags) { 184 static bool is_repaint_ack(int flags) {
185 return (flags & IS_REPAINT_ACK) != 0; 185 return (flags & IS_REPAINT_ACK) != 0;
186 } 186 }
187 }; 187 };
188 188
189 struct ViewHostMsg_PaintRect_Params { 189 struct ViewHostMsg_PaintRect_Params {
190 // The bitmap to be painted into the rect given by bitmap_rect. Valid only 190 // The bitmap to be painted into the rect given by bitmap_rect. Valid only
191 // in the context of the renderer process. 191 // in the context of the renderer process.
192 SharedMemoryHandle bitmap; 192 base::SharedMemoryHandle bitmap;
193 193
194 // The position and size of the bitmap. 194 // The position and size of the bitmap.
195 gfx::Rect bitmap_rect; 195 gfx::Rect bitmap_rect;
196 196
197 // The size of the RenderView when this message was generated. This is 197 // The size of the RenderView when this message was generated. This is
198 // included so the host knows how large the view is from the perspective of 198 // included so the host knows how large the view is from the perspective of
199 // the renderer process. This is necessary in case a resize operation is in 199 // the renderer process. This is necessary in case a resize operation is in
200 // progress. 200 // progress.
201 gfx::Size view_size; 201 gfx::Size view_size;
202 202
(...skipping 13 matching lines...) Expand all
216 // which would indicate that this paint message is an ACK for multiple 216 // which would indicate that this paint message is an ACK for multiple
217 // request messages. 217 // request messages.
218 int flags; 218 int flags;
219 }; 219 };
220 220
221 // Parameters structure for ViewHostMsg_ScrollRect, which has too many data 221 // Parameters structure for ViewHostMsg_ScrollRect, which has too many data
222 // parameters to be reasonably put in a predefined IPC message. 222 // parameters to be reasonably put in a predefined IPC message.
223 struct ViewHostMsg_ScrollRect_Params { 223 struct ViewHostMsg_ScrollRect_Params {
224 // The bitmap to be painted into the rect exposed by scrolling. This handle 224 // The bitmap to be painted into the rect exposed by scrolling. This handle
225 // is valid only in the context of the renderer process. 225 // is valid only in the context of the renderer process.
226 SharedMemoryHandle bitmap; 226 base::SharedMemoryHandle bitmap;
227 227
228 // The position and size of the bitmap. 228 // The position and size of the bitmap.
229 gfx::Rect bitmap_rect; 229 gfx::Rect bitmap_rect;
230 230
231 // The scroll offset. Only one of these can be non-zero. 231 // The scroll offset. Only one of these can be non-zero.
232 int dx; 232 int dx;
233 int dy; 233 int dy;
234 234
235 // The rectangular region to scroll. 235 // The rectangular region to scroll.
236 gfx::Rect clip_rect; 236 gfx::Rect clip_rect;
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 ViewMsg_Print_Params params; 360 ViewMsg_Print_Params params;
361 361
362 // If empty, this means a request to render all the printed pages. 362 // If empty, this means a request to render all the printed pages.
363 std::vector<int> pages; 363 std::vector<int> pages;
364 }; 364 };
365 365
366 // Parameters to describe a rendered page. 366 // Parameters to describe a rendered page.
367 struct ViewHostMsg_DidPrintPage_Params { 367 struct ViewHostMsg_DidPrintPage_Params {
368 // A shared memory handle to the EMF data. This data can be quite large so a 368 // A shared memory handle to the EMF data. This data can be quite large so a
369 // memory map needs to be used. 369 // memory map needs to be used.
370 SharedMemoryHandle emf_data_handle; 370 base::SharedMemoryHandle emf_data_handle;
371 371
372 // Size of the EMF data. 372 // Size of the EMF data.
373 unsigned data_size; 373 unsigned data_size;
374 374
375 // Cookie for the document to ensure correctness. 375 // Cookie for the document to ensure correctness.
376 int document_cookie; 376 int document_cookie;
377 377
378 // Page number. 378 // Page number.
379 int page_number; 379 int page_number;
380 380
(...skipping 1322 matching lines...) Expand 10 before | Expand all | Expand 10 after
1703 ReadParam(m, iter, &p->available_rect); 1703 ReadParam(m, iter, &p->available_rect);
1704 } 1704 }
1705 static void Log(const param_type& p, std::wstring* l) { 1705 static void Log(const param_type& p, std::wstring* l) {
1706 l->append(L"<webkit_glue::ScreenInfo>"); 1706 l->append(L"<webkit_glue::ScreenInfo>");
1707 } 1707 }
1708 }; 1708 };
1709 1709
1710 } // namespace IPC 1710 } // namespace IPC
1711 1711
1712 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ 1712 #endif // CHROME_COMMON_RENDER_MESSAGES_H_
OLDNEW
« no previous file with comments | « chrome/common/process_watcher.cc ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698