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

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

Issue 2147873003: cc: Dedup IPCs to return resources to client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 5 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
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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include "base/memory/shared_memory.h" 11 #include "base/memory/shared_memory.h"
12 #include "base/process/process.h" 12 #include "base/process/process.h"
13 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
14 #include "build/build_config.h" 14 #include "build/build_config.h"
15 #include "cc/ipc/cc_param_traits.h" 15 #include "cc/ipc/cc_param_traits.h"
16 #include "cc/output/begin_frame_args.h" 16 #include "cc/output/begin_frame_args.h"
17 #include "cc/output/compositor_frame.h" 17 #include "cc/output/compositor_frame.h"
18 #include "cc/output/compositor_frame_ack.h"
19 #include "cc/resources/shared_bitmap.h" 18 #include "cc/resources/shared_bitmap.h"
20 #include "content/common/content_export.h" 19 #include "content/common/content_export.h"
21 #include "content/common/content_param_traits.h" 20 #include "content/common/content_param_traits.h"
22 #include "content/common/date_time_suggestion.h" 21 #include "content/common/date_time_suggestion.h"
23 #include "content/common/frame_replication_state.h" 22 #include "content/common/frame_replication_state.h"
24 #include "content/common/navigation_gesture.h" 23 #include "content/common/navigation_gesture.h"
25 #include "content/common/resize_params.h" 24 #include "content/common/resize_params.h"
26 #include "content/common/text_input_state.h" 25 #include "content/common/text_input_state.h"
27 #include "content/common/view_message_enums.h" 26 #include "content/common/view_message_enums.h"
28 #include "content/public/common/common_param_traits.h" 27 #include "content/public/common/common_param_traits.h"
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 bool /* animate */) 795 bool /* animate */)
797 796
798 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded) 797 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded)
799 798
800 // Extracts the data at the given rect, returning it through the 799 // Extracts the data at the given rect, returning it through the
801 // ViewHostMsg_SmartClipDataExtracted IPC. 800 // ViewHostMsg_SmartClipDataExtracted IPC.
802 IPC_MESSAGE_ROUTED1(ViewMsg_ExtractSmartClipData, 801 IPC_MESSAGE_ROUTED1(ViewMsg_ExtractSmartClipData,
803 gfx::Rect /* rect */) 802 gfx::Rect /* rect */)
804 #endif 803 #endif
805 804
806 // Sent by the browser as a reply to ViewHostMsg_SwapCompositorFrame.
807 IPC_MESSAGE_ROUTED2(ViewMsg_SwapCompositorFrameAck,
808 uint32_t /* output_surface_id */,
809 cc::CompositorFrameAck /* ack */)
810
811 // Sent by browser to tell renderer compositor that some resources that were 805 // Sent by browser to tell renderer compositor that some resources that were
812 // given to the browser in a swap are not being used anymore. 806 // given to the browser in a swap are not being used anymore.
813 IPC_MESSAGE_ROUTED2(ViewMsg_ReclaimCompositorResources, 807 // If this message is in response to a swap then is_swap_ack is set.
808 IPC_MESSAGE_ROUTED3(ViewMsg_ReclaimCompositorResources,
814 uint32_t /* output_surface_id */, 809 uint32_t /* output_surface_id */,
815 cc::CompositorFrameAck /* ack */) 810 bool /* is_swap_ack */,
811 cc::ReturnedResourceArray /* resources */)
816 812
817 // Sent by browser to give renderer compositor a new namespace ID for any 813 // Sent by browser to give renderer compositor a new namespace ID for any
818 // SurfaceSequences it has to create. 814 // SurfaceSequences it has to create.
819 IPC_MESSAGE_ROUTED1(ViewMsg_SetSurfaceClientId, 815 IPC_MESSAGE_ROUTED1(ViewMsg_SetSurfaceClientId,
820 uint32_t /* surface_id_namespace */) 816 uint32_t /* surface_id_namespace */)
821 817
822 IPC_MESSAGE_ROUTED0(ViewMsg_SelectWordAroundCaret) 818 IPC_MESSAGE_ROUTED0(ViewMsg_SelectWordAroundCaret)
823 819
824 // Sent by the browser to ask the renderer to redraw. 820 // Sent by the browser to ask the renderer to redraw.
825 // If |request_id| is not zero, it is added to the forced frame's latency info 821 // If |request_id| is not zero, it is added to the forced frame's latency info
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
1187 int /* y */) 1183 int /* y */)
1188 1184
1189 #elif defined(OS_MACOSX) 1185 #elif defined(OS_MACOSX)
1190 // Receives content of a web page as plain text. 1186 // Receives content of a web page as plain text.
1191 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) 1187 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string)
1192 #endif 1188 #endif
1193 1189
1194 // Adding a new message? Stick to the sort order above: first platform 1190 // Adding a new message? Stick to the sort order above: first platform
1195 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 1191 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
1196 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 1192 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW
« no previous file with comments | « content/common/android/sync_compositor_messages.h ('k') | content/public/browser/android/synchronous_compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698