Upstream JavaScript injection for iOS
[chromium-blink-merge.git] / ios / web / web_state / js / crw_js_message_dynamic_manager.mm
blob50059f0ce074a72623b6331616fe3fd154f7d92a
1 // Copyright 2014 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 #import "ios/web/web_state/js/crw_js_message_dynamic_manager.h"
7 #import "ios/web/web_state/js/crw_js_common_manager.h"
8 #include "ios/web/web_view_util.h"
10 @implementation CRWJSMessageDynamicManager
12 - (NSString*)scriptPath {
13   if (web::IsWKWebViewEnabled())
14     return @"message_dynamic_wk";
15   return @"message_dynamic_ui";
18 - (NSString*)presenceBeacon {
19   return @"__gCrWeb.message_dynamic";
22 - (NSArray*)directDependencies {
23   return @[
24     // The 'base' manager is omitted deliberately; see <crbug.com/404640>.
25     [CRWJSCommonManager class],
26   ];
29 @end