Index: ios/web/web_state/js/crw_js_message_dynamic_manager.mm |
diff --git a/ios/web/web_state/js/crw_js_message_dynamic_manager.mm b/ios/web/web_state/js/crw_js_message_dynamic_manager.mm |
new file mode 100644 |
index 0000000000000000000000000000000000000000..50059f0ce074a72623b6331616fe3fd154f7d92a |
--- /dev/null |
+++ b/ios/web/web_state/js/crw_js_message_dynamic_manager.mm |
@@ -0,0 +1,29 @@ |
+// 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. |
+ |
+#import "ios/web/web_state/js/crw_js_message_dynamic_manager.h" |
+ |
+#import "ios/web/web_state/js/crw_js_common_manager.h" |
+#include "ios/web/web_view_util.h" |
+ |
+@implementation CRWJSMessageDynamicManager |
+ |
+- (NSString*)scriptPath { |
+ if (web::IsWKWebViewEnabled()) |
+ return @"message_dynamic_wk"; |
+ return @"message_dynamic_ui"; |
+} |
+ |
+- (NSString*)presenceBeacon { |
+ return @"__gCrWeb.message_dynamic"; |
+} |
+ |
+- (NSArray*)directDependencies { |
+ return @[ |
+ // The 'base' manager is omitted deliberately; see <crbug.com/404640>. |
+ [CRWJSCommonManager class], |
+ ]; |
+} |
+ |
+@end |