Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Side by Side Diff: ios/web/web_state/js/page_script_util.h

Issue 2741343015: Add a BrowserState* parameter to GetEarlyPageScript(). (Closed)
Patch Set: Fix errors. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698