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

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: 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 783 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 // page_ids >= |minimum_page_id| in the new tab are appended to the history. 794 // page_ids >= |minimum_page_id| in the new tab are appended to the history.
795 // 795 //
796 // For example, suppose the history of page_ids in the new tab's RenderView 796 // For example, suppose the history of page_ids in the new tab's RenderView
797 // is [4 7 8]. This is merged into an existing tab with 3 history items, and 797 // is [4 7 8]. This is merged into an existing tab with 3 history items, and
798 // all pages in the new tab with page_id >= 7 are to be preserved. 798 // all pages in the new tab with page_id >= 7 are to be preserved.
799 // The resulting page history is [-1 -1 -1 7 8]. 799 // The resulting page history is [-1 -1 -1 7 8].
800 IPC_MESSAGE_ROUTED2(ViewMsg_SetHistoryLengthAndPrune, 800 IPC_MESSAGE_ROUTED2(ViewMsg_SetHistoryLengthAndPrune,
801 int, /* merge_history_length */ 801 int, /* merge_history_length */
802 int32 /* minimum_page_id */) 802 int32 /* minimum_page_id */)
803 803
804 // Tells the renderer the browser's notion of its process ID.
805 // Some subsystems, like LatencyInfo, require this to be known to the renderer.
806 IPC_MESSAGE_CONTROL1(ViewMsg_SetRendererProcessID,
807 int64 /* process_id */)
808
804 // Tells the renderer to create a new view. 809 // Tells the renderer to create a new view.
805 // This message is slightly different, the view it takes (via 810 // This message is slightly different, the view it takes (via
806 // ViewMsg_New_Params) is the view to create, the message itself is sent as a 811 // ViewMsg_New_Params) is the view to create, the message itself is sent as a
807 // non-view control message. 812 // non-view control message.
808 IPC_MESSAGE_CONTROL1(ViewMsg_New, 813 IPC_MESSAGE_CONTROL1(ViewMsg_New,
809 ViewMsg_New_Params) 814 ViewMsg_New_Params)
810 815
811 // Reply in response to ViewHostMsg_ShowView or ViewHostMsg_ShowWidget. 816 // Reply in response to ViewHostMsg_ShowView or ViewHostMsg_ShowWidget.
812 // similar to the new command, but used when the renderer created a view 817 // similar to the new command, but used when the renderer created a view
813 // first, and we need to update it. 818 // first, and we need to update it.
(...skipping 1026 matching lines...) Expand 10 before | Expand all | Expand 10 after
1840 IPC_MESSAGE_ROUTED1(ViewHostMsg_HasTouchEventHandlers, 1845 IPC_MESSAGE_ROUTED1(ViewHostMsg_HasTouchEventHandlers,
1841 bool /* has_handlers */) 1846 bool /* has_handlers */)
1842 1847
1843 // A message from HTML-based UI. When (trusted) Javascript calls 1848 // A message from HTML-based UI. When (trusted) Javascript calls
1844 // send(message, args), this message is sent to the browser. 1849 // send(message, args), this message is sent to the browser.
1845 IPC_MESSAGE_ROUTED3(ViewHostMsg_WebUISend, 1850 IPC_MESSAGE_ROUTED3(ViewHostMsg_WebUISend,
1846 GURL /* source_url */, 1851 GURL /* source_url */,
1847 std::string /* message */, 1852 std::string /* message */,
1848 base::ListValue /* args */) 1853 base::ListValue /* args */)
1849 1854
1850 // Requests a snapshot of the given window.
1851 IPC_MESSAGE_ROUTED1(ViewHostMsg_GetWindowSnapshot,
1852 int /* snapshot_id */)
1853
1854 // A renderer sends this to the browser process when it wants to create a ppapi 1855 // A renderer sends this to the browser process when it wants to create a ppapi
1855 // plugin. The browser will create the plugin process if necessary, and will 1856 // plugin. The browser will create the plugin process if necessary, and will
1856 // return a handle to the channel on success. 1857 // return a handle to the channel on success.
1857 // 1858 //
1858 // The plugin_child_id is the ChildProcessHost ID assigned in the browser 1859 // The plugin_child_id is the ChildProcessHost ID assigned in the browser
1859 // process. This ID is valid only in the context of the browser process and is 1860 // process. This ID is valid only in the context of the browser process and is
1860 // used to identify the proper process when the renderer notifies it that the 1861 // used to identify the proper process when the renderer notifies it that the
1861 // plugin is hung. 1862 // plugin is hung.
1862 // 1863 //
1863 // On error an empty string and null handles are returned. 1864 // On error an empty string and null handles are returned.
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
2369 // synchronously (see crbug.com/120597). This IPC message sends the character 2370 // synchronously (see crbug.com/120597). This IPC message sends the character
2370 // bounds after every composition change to always have correct bound info. 2371 // bounds after every composition change to always have correct bound info.
2371 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, 2372 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged,
2372 ui::Range /* composition range */, 2373 ui::Range /* composition range */,
2373 std::vector<gfx::Rect> /* character bounds */) 2374 std::vector<gfx::Rect> /* character bounds */)
2374 #endif 2375 #endif
2375 2376
2376 // Adding a new message? Stick to the sort order above: first platform 2377 // Adding a new message? Stick to the sort order above: first platform
2377 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 2378 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
2378 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 2379 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698