OLD | NEW |
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 #ifndef CONTENT_RENDERER_RESTRICT_DISPATCH_GROUP_H_ | 5 #ifndef CONTENT_RENDERER_RESTRICT_DISPATCH_GROUP_H_ |
6 #define CONTENT_RENDERER_RESTRICT_DISPATCH_GROUP_H_ | 6 #define CONTENT_RENDERER_RESTRICT_DISPATCH_GROUP_H_ |
7 #pragma once | |
8 | 7 |
9 #include "ipc/ipc_sync_channel.h" | 8 #include "ipc/ipc_sync_channel.h" |
10 | 9 |
11 namespace content { | 10 namespace content { |
12 | 11 |
13 // This represents all dispatch groups used in the renderer. Dispatch groups | 12 // This represents all dispatch groups used in the renderer. Dispatch groups |
14 // allow channels to restrict in which case incoming messages can re-enter while | 13 // allow channels to restrict in which case incoming messages can re-enter while |
15 // a synchronous message is sent on another channel. See | 14 // a synchronous message is sent on another channel. See |
16 // IPC::SyncChannel::SetRestrictDispatchChannelGroup. | 15 // IPC::SyncChannel::SetRestrictDispatchChannelGroup. |
17 enum RendererRestrictDispatchGroup { | 16 enum RendererRestrictDispatchGroup { |
18 kRendererRestrictDispatchGroup_None = | 17 kRendererRestrictDispatchGroup_None = |
19 IPC::SyncChannel::kRestrictDispatchGroup_None, | 18 IPC::SyncChannel::kRestrictDispatchGroup_None, |
20 kRendererRestrictDispatchGroup_Pepper, | 19 kRendererRestrictDispatchGroup_Pepper, |
21 }; | 20 }; |
22 | 21 |
23 } // namespace content | 22 } // namespace content |
24 | 23 |
25 #endif // CONTENT_RENDERER_RESTRICT_DISPATCH_GROUP_H_ | 24 #endif // CONTENT_RENDERER_RESTRICT_DISPATCH_GROUP_H_ |
OLD | NEW |