OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_CHROME_BROWSER_UI_URL_LOADER_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_URL_LOADER_H_ |
6 #define IOS_CHROME_BROWSER_UI_URL_LOADER_H_ | 6 #define IOS_CHROME_BROWSER_UI_URL_LOADER_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 }; | 27 }; |
28 | 28 |
29 @protocol UrlLoader<NSObject> | 29 @protocol UrlLoader<NSObject> |
30 | 30 |
31 // Load a new url. | 31 // Load a new url. |
32 - (void)loadURL:(const GURL&)url | 32 - (void)loadURL:(const GURL&)url |
33 referrer:(const web::Referrer&)referrer | 33 referrer:(const web::Referrer&)referrer |
34 transition:(ui::PageTransition)transition | 34 transition:(ui::PageTransition)transition |
35 rendererInitiated:(BOOL)rendererInitiated; | 35 rendererInitiated:(BOOL)rendererInitiated; |
36 | 36 |
| 37 // Load a new url. |
| 38 - (void)loadURL:(const GURL&)url |
| 39 referrer:(const web::Referrer&)referrer |
| 40 transition:(ui::PageTransition)transition |
| 41 rendererInitiated:(BOOL)rendererInitiated |
| 42 extraData:(NSDictionary*)extraData; |
| 43 |
37 // Load a new URL on a new page/tab. The |referrer| and |windowName| are | 44 // Load a new URL on a new page/tab. The |referrer| and |windowName| are |
38 // optional. The tab will be placed in the model according to |appendTo|. | 45 // optional. The tab will be placed in the model according to |appendTo|. |
39 - (void)webPageOrderedOpen:(const GURL&)url | 46 - (void)webPageOrderedOpen:(const GURL&)url |
40 referrer:(const web::Referrer&)referrer | 47 referrer:(const web::Referrer&)referrer |
41 windowName:(NSString*)windowName | 48 windowName:(NSString*)windowName |
42 inBackground:(BOOL)inBackground | 49 inBackground:(BOOL)inBackground |
43 appendTo:(OpenPosition)appendTo; | 50 appendTo:(OpenPosition)appendTo; |
44 | 51 |
45 // Load a new URL on a new page/tab. The |referrer| and |windowName| are | 52 // Load a new URL on a new page/tab. The |referrer| and |windowName| are |
46 // optional. The tab will be placed in the model according to |appendTo|. | 53 // optional. The tab will be placed in the model according to |appendTo|. |
47 - (void)webPageOrderedOpen:(const GURL&)url | 54 - (void)webPageOrderedOpen:(const GURL&)url |
48 referrer:(const web::Referrer&)referrer | 55 referrer:(const web::Referrer&)referrer |
49 windowName:(NSString*)windowName | 56 windowName:(NSString*)windowName |
50 inIncognito:(BOOL)inIncognito | 57 inIncognito:(BOOL)inIncognito |
51 inBackground:(BOOL)inBackground | 58 inBackground:(BOOL)inBackground |
52 appendTo:(OpenPosition)appendTo; | 59 appendTo:(OpenPosition)appendTo; |
53 | 60 |
54 // Load a tab with the given session. | 61 // Load a tab with the given session. |
55 - (void)loadSessionTab:(const sessions::SessionTab*)sessionTab; | 62 - (void)loadSessionTab:(const sessions::SessionTab*)sessionTab; |
56 | 63 |
57 // Loads the text entered in the location bar as javascript. | 64 // Loads the text entered in the location bar as javascript. |
58 - (void)loadJavaScriptFromLocationBar:(NSString*)script; | 65 - (void)loadJavaScriptFromLocationBar:(NSString*)script; |
59 | 66 |
60 @end | 67 @end |
61 | 68 |
62 #endif // IOS_CHROME_BROWSER_UI_URL_LOADER_H_ | 69 #endif // IOS_CHROME_BROWSER_UI_URL_LOADER_H_ |
OLD | NEW |