| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef IOS_WEB_WEB_STATE_JS_PAGE_SCRIPT_UTIL_H_ | 5 #ifndef IOS_WEB_WEB_STATE_JS_PAGE_SCRIPT_UTIL_H_ |
| 6 #define IOS_WEB_WEB_STATE_JS_PAGE_SCRIPT_UTIL_H_ | 6 #define IOS_WEB_WEB_STATE_JS_PAGE_SCRIPT_UTIL_H_ |
| 7 | 7 |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 | 9 |
| 10 | 10 |
| 11 namespace web { | 11 namespace web { |
| 12 | 12 |
| 13 class BrowserState; |
| 14 |
| 13 // Returns an autoreleased string containing the JavaScript loaded from a | 15 // Returns an autoreleased string containing the JavaScript loaded from a |
| 14 // bundled resource file with the given name (excluding extension). | 16 // bundled resource file with the given name (excluding extension). |
| 15 NSString* GetPageScript(NSString* script_file_name); | 17 NSString* GetPageScript(NSString* script_file_name); |
| 16 | 18 |
| 17 // Returns an autoreleased string containing the JavaScript to be injected into | 19 // Returns an autoreleased string containing the JavaScript to be injected into |
| 18 // the web view as early as possible. | 20 // the web view as early as possible. |
| 19 NSString* GetEarlyPageScript(); | 21 NSString* GetEarlyPageScript(BrowserState* browser_state); |
| 20 | 22 |
| 21 } // namespace web | 23 } // namespace web |
| 22 | 24 |
| 23 #endif // IOS_WEB_WEB_STATE_JS_PAGE_SCRIPT_UTIL_H_ | 25 #endif // IOS_WEB_WEB_STATE_JS_PAGE_SCRIPT_UTIL_H_ |
| OLD | NEW |