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

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: Addressed Nit Created 7 years, 2 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 788 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 // page_ids >= |minimum_page_id| in the new tab are appended to the history. 799 // page_ids >= |minimum_page_id| in the new tab are appended to the history.
800 // 800 //
801 // For example, suppose the history of page_ids in the new tab's RenderView 801 // For example, suppose the history of page_ids in the new tab's RenderView
802 // is [4 7 8]. This is merged into an existing tab with 3 history items, and 802 // is [4 7 8]. This is merged into an existing tab with 3 history items, and
803 // all pages in the new tab with page_id >= 7 are to be preserved. 803 // all pages in the new tab with page_id >= 7 are to be preserved.
804 // The resulting page history is [-1 -1 -1 7 8]. 804 // The resulting page history is [-1 -1 -1 7 8].
805 IPC_MESSAGE_ROUTED2(ViewMsg_SetHistoryLengthAndPrune, 805 IPC_MESSAGE_ROUTED2(ViewMsg_SetHistoryLengthAndPrune,
806 int, /* merge_history_length */ 806 int, /* merge_history_length */
807 int32 /* minimum_page_id */) 807 int32 /* minimum_page_id */)
808 808
809 // Tells the renderer the browser's notion of its process ID.
810 // Some subsystems, like LatencyInfo, require this to be known to the renderer.
811 IPC_MESSAGE_CONTROL1(ViewMsg_SetRendererProcessID,
812 base::ProcessId /* process_id */)
813
809 // Tells the renderer to create a new view. 814 // Tells the renderer to create a new view.
810 // This message is slightly different, the view it takes (via 815 // This message is slightly different, the view it takes (via
811 // ViewMsg_New_Params) is the view to create, the message itself is sent as a 816 // ViewMsg_New_Params) is the view to create, the message itself is sent as a
812 // non-view control message. 817 // non-view control message.
813 IPC_MESSAGE_CONTROL1(ViewMsg_New, 818 IPC_MESSAGE_CONTROL1(ViewMsg_New,
814 ViewMsg_New_Params) 819 ViewMsg_New_Params)
815 820
816 // Reply in response to ViewHostMsg_ShowView or ViewHostMsg_ShowWidget. 821 // Reply in response to ViewHostMsg_ShowView or ViewHostMsg_ShowWidget.
817 // similar to the new command, but used when the renderer created a view 822 // similar to the new command, but used when the renderer created a view
818 // first, and we need to update it. 823 // first, and we need to update it.
(...skipping 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after
1853 IPC_MESSAGE_ROUTED1(ViewHostMsg_HasTouchEventHandlers, 1858 IPC_MESSAGE_ROUTED1(ViewHostMsg_HasTouchEventHandlers,
1854 bool /* has_handlers */) 1859 bool /* has_handlers */)
1855 1860
1856 // A message from HTML-based UI. When (trusted) Javascript calls 1861 // A message from HTML-based UI. When (trusted) Javascript calls
1857 // send(message, args), this message is sent to the browser. 1862 // send(message, args), this message is sent to the browser.
1858 IPC_MESSAGE_ROUTED3(ViewHostMsg_WebUISend, 1863 IPC_MESSAGE_ROUTED3(ViewHostMsg_WebUISend,
1859 GURL /* source_url */, 1864 GURL /* source_url */,
1860 std::string /* message */, 1865 std::string /* message */,
1861 base::ListValue /* args */) 1866 base::ListValue /* args */)
1862 1867
1863 // Requests a snapshot of the given window.
1864 IPC_MESSAGE_ROUTED1(ViewHostMsg_GetWindowSnapshot,
1865 int /* snapshot_id */)
1866
1867 // A renderer sends this to the browser process when it wants to create a ppapi 1868 // A renderer sends this to the browser process when it wants to create a ppapi
1868 // plugin. The browser will create the plugin process if necessary, and will 1869 // plugin. The browser will create the plugin process if necessary, and will
1869 // return a handle to the channel on success. 1870 // return a handle to the channel on success.
1870 // 1871 //
1871 // The plugin_child_id is the ChildProcessHost ID assigned in the browser 1872 // The plugin_child_id is the ChildProcessHost ID assigned in the browser
1872 // process. This ID is valid only in the context of the browser process and is 1873 // process. This ID is valid only in the context of the browser process and is
1873 // used to identify the proper process when the renderer notifies it that the 1874 // used to identify the proper process when the renderer notifies it that the
1874 // plugin is hung. 1875 // plugin is hung.
1875 // 1876 //
1876 // On error an empty string and null handles are returned. 1877 // On error an empty string and null handles are returned.
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
2363 // synchronously (see crbug.com/120597). This IPC message sends the character 2364 // synchronously (see crbug.com/120597). This IPC message sends the character
2364 // bounds after every composition change to always have correct bound info. 2365 // bounds after every composition change to always have correct bound info.
2365 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, 2366 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged,
2366 gfx::Range /* composition range */, 2367 gfx::Range /* composition range */,
2367 std::vector<gfx::Rect> /* character bounds */) 2368 std::vector<gfx::Rect> /* character bounds */)
2368 #endif 2369 #endif
2369 2370
2370 // Adding a new message? Stick to the sort order above: first platform 2371 // Adding a new message? Stick to the sort order above: first platform
2371 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 2372 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
2372 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 2373 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_gtk.cc ('k') | content/renderer/gpu/render_widget_compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698