| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #import "ios/web/public/web_state/js/crw_js_early_script_manager.h" | 5 #import "ios/web/web_state/js/crw_js_early_script_manager.h" |
| 6 | 6 |
| 7 #import "ios/web/public/web_state/js/crw_js_injection_receiver.h" | 7 #import "ios/web/public/web_state/js/crw_js_injection_receiver.h" |
| 8 #import "ios/web/web_state/js/page_script_util.h" | 8 #import "ios/web/web_state/js/page_script_util.h" |
| 9 | 9 |
| 10 @implementation CRWJSEarlyScriptManager | 10 @implementation CRWJSEarlyScriptManager |
| 11 | 11 |
| 12 - (NSString*)staticInjectionContent { | 12 - (NSString*)staticInjectionContent { |
| 13 return web::GetEarlyPageScript(self.receiver.webViewType); | 13 return web::GetEarlyPageScript(self.receiver.webViewType); |
| 14 } | 14 } |
| 15 | 15 |
| 16 - (NSString*)presenceBeacon { | 16 - (NSString*)presenceBeacon { |
| 17 return @"__gCrWeb"; | 17 return @"__gCrWeb"; |
| 18 } | 18 } |
| 19 | 19 |
| 20 @end | 20 @end |
| OLD | NEW |