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

Unified Diff: chrome/renderer/isolated_world_ids.h

Issue 12583016: Reserve an isolated world ID for Chrome Translate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/extensions/user_script_slave.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/isolated_world_ids.h
diff --git a/chrome/renderer/isolated_world_ids.h b/chrome/renderer/isolated_world_ids.h
new file mode 100644
index 0000000000000000000000000000000000000000..2eefd977172b6571b15fbc79eeff7283ba202d12
--- /dev/null
+++ b/chrome/renderer/isolated_world_ids.h
@@ -0,0 +1,23 @@
+// Copyright (c) 2013 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.
+
+#ifndef CHROME_RENDERER_ISOLATED_WORLD_IDS_H_
+#define CHROME_RENDERER_ISOLATED_WORLD_IDS_H_
+
+namespace chrome {
+
+enum IsolatedWorldIDs {
+ // Chrome can not use ID 0 for isolated world.
+ ISOLATED_WORLD_ID_GLOBAL = 0,
+ // Isolated world ID for Chrome Translate.
+ ISOLATED_WORLD_ID_TRANSLATE,
+
+ // UserScriptSlave::GetIsolatedWorldIdForExtension assigns numbers which are
+ // equal to, or larger than this number.
+ ISOLATED_WORLD_ID_EXTENSIONS
+};
+
+} // namespace chrome
+
+#endif // CHROME_RENDERER_ISOLATED_WORLD_IDS_H_
« no previous file with comments | « chrome/renderer/extensions/user_script_slave.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698