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

Side by Side Diff: content/common/view_messages.h

Issue 23694031: Fix race conditions in window snapshot code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporated enne and jbauman's feedback. Created 7 years, 3 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // IPC messages for page rendering. 5 // IPC messages for page rendering.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "base/memory/shared_memory.h" 8 #include "base/memory/shared_memory.h"
9 #include "base/process/process.h" 9 #include "base/process/process.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after
798 // page_ids >= |minimum_page_id| in the new tab are appended to the history. 798 // page_ids >= |minimum_page_id| in the new tab are appended to the history.
799 // 799 //
800 // For example, suppose the history of page_ids in the new tab's RenderView 800 // For example, suppose the history of page_ids in the new tab's RenderView
801 // is [4 7 8]. This is merged into an existing tab with 3 history items, and 801 // is [4 7 8]. This is merged into an existing tab with 3 history items, and
802 // all pages in the new tab with page_id >= 7 are to be preserved. 802 // all pages in the new tab with page_id >= 7 are to be preserved.
803 // The resulting page history is [-1 -1 -1 7 8]. 803 // The resulting page history is [-1 -1 -1 7 8].
804 IPC_MESSAGE_ROUTED2(ViewMsg_SetHistoryLengthAndPrune, 804 IPC_MESSAGE_ROUTED2(ViewMsg_SetHistoryLengthAndPrune,
805 int, /* merge_history_length */ 805 int, /* merge_history_length */
806 int32 /* minimum_page_id */) 806 int32 /* minimum_page_id */)
807 807
808 // Tells the renderer the browser's notion of its process ID.
809 // Some subsystems, like LatencyInfo, require this to be known to the renderer.
810 IPC_MESSAGE_CONTROL1(ViewMsg_SetRendererProcessID,
811 int64 /* process_id */)
812
808 // Tells the renderer to create a new view. 813 // Tells the renderer to create a new view.
809 // This message is slightly different, the view it takes (via 814 // This message is slightly different, the view it takes (via
810 // ViewMsg_New_Params) is the view to create, the message itself is sent as a 815 // ViewMsg_New_Params) is the view to create, the message itself is sent as a
811 // non-view control message. 816 // non-view control message.
812 IPC_MESSAGE_CONTROL1(ViewMsg_New, 817 IPC_MESSAGE_CONTROL1(ViewMsg_New,
813 ViewMsg_New_Params) 818 ViewMsg_New_Params)
814 819
815 // Reply in response to ViewHostMsg_ShowView or ViewHostMsg_ShowWidget. 820 // Reply in response to ViewHostMsg_ShowView or ViewHostMsg_ShowWidget.
816 // similar to the new command, but used when the renderer created a view 821 // similar to the new command, but used when the renderer created a view
817 // first, and we need to update it. 822 // first, and we need to update it.
(...skipping 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after
1854 IPC_MESSAGE_ROUTED1(ViewHostMsg_HasTouchEventHandlers, 1859 IPC_MESSAGE_ROUTED1(ViewHostMsg_HasTouchEventHandlers,
1855 bool /* has_handlers */) 1860 bool /* has_handlers */)
1856 1861
1857 // A message from HTML-based UI. When (trusted) Javascript calls 1862 // A message from HTML-based UI. When (trusted) Javascript calls
1858 // send(message, args), this message is sent to the browser. 1863 // send(message, args), this message is sent to the browser.
1859 IPC_MESSAGE_ROUTED3(ViewHostMsg_WebUISend, 1864 IPC_MESSAGE_ROUTED3(ViewHostMsg_WebUISend,
1860 GURL /* source_url */, 1865 GURL /* source_url */,
1861 std::string /* message */, 1866 std::string /* message */,
1862 base::ListValue /* args */) 1867 base::ListValue /* args */)
1863 1868
1864 // Requests a snapshot of the given window.
1865 IPC_MESSAGE_ROUTED1(ViewHostMsg_GetWindowSnapshot,
1866 int /* snapshot_id */)
1867
1868 // A renderer sends this to the browser process when it wants to create a ppapi 1869 // A renderer sends this to the browser process when it wants to create a ppapi
1869 // plugin. The browser will create the plugin process if necessary, and will 1870 // plugin. The browser will create the plugin process if necessary, and will
1870 // return a handle to the channel on success. 1871 // return a handle to the channel on success.
1871 // 1872 //
1872 // The plugin_child_id is the ChildProcessHost ID assigned in the browser 1873 // The plugin_child_id is the ChildProcessHost ID assigned in the browser
1873 // process. This ID is valid only in the context of the browser process and is 1874 // process. This ID is valid only in the context of the browser process and is
1874 // used to identify the proper process when the renderer notifies it that the 1875 // used to identify the proper process when the renderer notifies it that the
1875 // plugin is hung. 1876 // plugin is hung.
1876 // 1877 //
1877 // On error an empty string and null handles are returned. 1878 // On error an empty string and null handles are returned.
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
2383 // synchronously (see crbug.com/120597). This IPC message sends the character 2384 // synchronously (see crbug.com/120597). This IPC message sends the character
2384 // bounds after every composition change to always have correct bound info. 2385 // bounds after every composition change to always have correct bound info.
2385 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, 2386 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged,
2386 gfx::Range /* composition range */, 2387 gfx::Range /* composition range */,
2387 std::vector<gfx::Rect> /* character bounds */) 2388 std::vector<gfx::Rect> /* character bounds */)
2388 #endif 2389 #endif
2389 2390
2390 // Adding a new message? Stick to the sort order above: first platform 2391 // Adding a new message? Stick to the sort order above: first platform
2391 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 2392 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
2392 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 2393 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698