Index: ios/web/web_state/js/crw_js_window_id_manager.h |
diff --git a/ios/web/web_state/js/crw_js_window_id_manager.h b/ios/web/web_state/js/crw_js_window_id_manager.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..95e0ab2fa1ad1fccca845073e977b108dfe5634c |
--- /dev/null |
+++ b/ios/web/web_state/js/crw_js_window_id_manager.h |
@@ -0,0 +1,19 @@ |
+// Copyright 2014 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 IOS_WEB_WEB_STATE_JS_CRW_JS_WINDOW_ID_MANAGER_H_ |
+#define IOS_WEB_WEB_STATE_JS_CRW_JS_WINDOW_ID_MANAGER_H_ |
+ |
+#import "ios/web/public/web_state/js/crw_js_injection_manager.h" |
+ |
+// Loads the JavaScript file window_id.js which sets __gCrWeb.windowId and |
+// manages the windowId for messages. |
+@interface CRWJSWindowIdManager : CRWJSInjectionManager |
+ |
+// A unique window ID is assigned when the script is injected. |
+@property(nonatomic, copy) NSString* windowId; |
+ |
+@end |
+ |
+#endif // IOS_WEB_WEB_STATE_JS_CRW_JS_WINDOW_ID_MANAGER_H_ |