diff options
author | piman@google.com <piman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-08 03:38:21 +0000 |
---|---|---|
committer | piman@google.com <piman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-08 03:38:21 +0000 |
commit | 54af05f8ea8050e0ab93dbcc940ac4e1bc4068e5 (patch) | |
tree | 3641af4c4223de9f6e742e95b2fc23da4f4ec380 /ipc/ipc_sync_message_unittest.h | |
parent | 5fda613da7a4cb0147bb7d7f9559b541cd45a266 (diff) | |
download | chromium_src-54af05f8ea8050e0ab93dbcc940ac4e1bc4068e5.zip chromium_src-54af05f8ea8050e0ab93dbcc940ac4e1bc4068e5.tar.gz chromium_src-54af05f8ea8050e0ab93dbcc940ac4e1bc4068e5.tar.bz2 |
Add sync context dispatch restriction.
This adds a way to restrict on a per-channel basis that incoming messages may only be dispatched when that particular channel is sending a sync message (or in a message loop).
It does so to the PPAPI channels, which may not introduce a sync dependency circle.
BUG=chromiumos:13821
TEST=news.google.com with Pepper Flash (see bug)
Review URL: http://codereview.chromium.org/6810013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80892 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc/ipc_sync_message_unittest.h')
-rw-r--r-- | ipc/ipc_sync_message_unittest.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ipc/ipc_sync_message_unittest.h b/ipc/ipc_sync_message_unittest.h index d5c6905..c77d0f8 100644 --- a/ipc/ipc_sync_message_unittest.h +++ b/ipc/ipc_sync_message_unittest.h @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -109,3 +109,6 @@ IPC_SYNC_MESSAGE_ROUTED3_3(Msg_R_3_3, int, std::string, bool, std::string, // true, out3 is "3_4", out4 is false IPC_SYNC_MESSAGE_ROUTED3_4(Msg_R_3_4, bool, int, std::string, int, bool, std::string, bool) + +IPC_MESSAGE_CONTROL1(SyncChannelTestMsg_Ping, int) +IPC_SYNC_MESSAGE_CONTROL0_0(SyncChannelTestMsg_Done) |