1 // Copyright 2015 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_PUBLIC_COMMON_ISOLATED_WORLD_IDS_H_
6 #define CONTENT_PUBLIC_COMMON_ISOLATED_WORLD_IDS_H_
10 enum IsolatedWorldIDs
{
11 // Chrome cannot use ID 0 for an isolated world because 0 represents the main
13 ISOLATED_WORLD_ID_GLOBAL
= 0,
14 // Custom isolated world ids used by other embedders should start from here.
15 ISOLATED_WORLD_ID_CONTENT_END
,
16 // If any embedder has more than 10 custom isolated worlds that will be run
17 // via RenderFrameImpl::OnJavaScriptExecuteRequestInIsolatedWorld update this.
18 ISOLATED_WORLD_ID_MAX
= ISOLATED_WORLD_ID_CONTENT_END
+ 10,
21 } // namespace content
23 #endif // COTENT_PUBLIC_COMMON_ISOLATED_WORLD_IDS_H_