| 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 on a new page/tab. The |referrer| and |windowName| are | 37 // Load a new URL on a new page/tab. The |referrer| is optional. The tab will be |
| 38 // optional. The tab will be placed in the model according to |appendTo|. | 38 // placed in the model according to |appendTo|. |
| 39 - (void)webPageOrderedOpen:(const GURL&)url | 39 - (void)webPageOrderedOpen:(const GURL&)url |
| 40 referrer:(const web::Referrer&)referrer | 40 referrer:(const web::Referrer&)referrer |
| 41 windowName:(NSString*)windowName | |
| 42 inBackground:(BOOL)inBackground | 41 inBackground:(BOOL)inBackground |
| 43 appendTo:(OpenPosition)appendTo; | 42 appendTo:(OpenPosition)appendTo; |
| 44 | 43 |
| 45 // 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| is optional. The tab will be |
| 46 // optional. The tab will be placed in the model according to |appendTo|. | 45 // placed in the model according to |appendTo|. |
| 47 - (void)webPageOrderedOpen:(const GURL&)url | 46 - (void)webPageOrderedOpen:(const GURL&)url |
| 48 referrer:(const web::Referrer&)referrer | 47 referrer:(const web::Referrer&)referrer |
| 49 windowName:(NSString*)windowName | |
| 50 inIncognito:(BOOL)inIncognito | 48 inIncognito:(BOOL)inIncognito |
| 51 inBackground:(BOOL)inBackground | 49 inBackground:(BOOL)inBackground |
| 52 appendTo:(OpenPosition)appendTo; | 50 appendTo:(OpenPosition)appendTo; |
| 53 | 51 |
| 54 // Load a tab with the given session. | 52 // Load a tab with the given session. |
| 55 - (void)loadSessionTab:(const sessions::SessionTab*)sessionTab; | 53 - (void)loadSessionTab:(const sessions::SessionTab*)sessionTab; |
| 56 | 54 |
| 57 // Loads the text entered in the location bar as javascript. | 55 // Loads the text entered in the location bar as javascript. |
| 58 - (void)loadJavaScriptFromLocationBar:(NSString*)script; | 56 - (void)loadJavaScriptFromLocationBar:(NSString*)script; |
| 59 | 57 |
| 60 @end | 58 @end |
| 61 | 59 |
| 62 #endif // IOS_CHROME_BROWSER_UI_URL_LOADER_H_ | 60 #endif // IOS_CHROME_BROWSER_UI_URL_LOADER_H_ |
| OLD | NEW |