PPAPI: Never re-enter JavaScript for PostMessage.
[chromium-blink-merge.git] / content / renderer / pepper / renderer_restrict_dispatch_group.h
blob6cdb44be80baea7328774449012dfb6b40832699
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_RENDERER_PEPPER_RESTRICT_DISPATCH_GROUP_H_
6 #define CONTENT_RENDERER_PEPPER_RESTRICT_DISPATCH_GROUP_H_
8 #include "ipc/ipc_sync_channel.h"
10 namespace content {
12 // This represents all dispatch groups used in the renderer. Dispatch groups
13 // allow channels to restrict in which case incoming messages can re-enter while
14 // a synchronous message is sent on another channel. See
15 // IPC::SyncChannel::SetRestrictDispatchChannelGroup.
16 enum RendererRestrictDispatchGroup {
17 kRendererRestrictDispatchGroup_None =
18 IPC::SyncChannel::kRestrictDispatchGroup_None,
19 kRendererRestrictDispatchGroup_Pepper,
22 } // namespace content
24 #endif // CONTENT_RENDERER_PEPPER_RESTRICT_DISPATCH_GROUP_H_