Chromium Code Reviews| 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_WEB_PUBLIC_WEB_STATE_UI_CRW_NATIVE_CONTENT_PROVIDER_H_ | 5 #ifndef IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_NATIVE_CONTENT_PROVIDER_H_ |
| 6 #define IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_NATIVE_CONTENT_PROVIDER_H_ | 6 #define IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_NATIVE_CONTENT_PROVIDER_H_ |
| 7 #import <UIKit/UIKit.h> | 7 #import <UIKit/UIKit.h> |
| 8 | 8 |
| 9 class GURL; | 9 class GURL; |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 24 // within the web content area. This may return nil if the url is unsupported. | 24 // within the web content area. This may return nil if the url is unsupported. |
| 25 // |url| will be of the form "chrome://foo". | 25 // |url| will be of the form "chrome://foo". |
| 26 // |webState| is the webState that triggered the navigation to |url|. | 26 // |webState| is the webState that triggered the navigation to |url|. |
| 27 - (id<CRWNativeContent>)controllerForURL:(const GURL&)url | 27 - (id<CRWNativeContent>)controllerForURL:(const GURL&)url |
| 28 webState:(web::WebState*)webState; | 28 webState:(web::WebState*)webState; |
| 29 | 29 |
| 30 // Returns an autoreleased controller for driving a native view contained | 30 // Returns an autoreleased controller for driving a native view contained |
| 31 // within the web content area. The native view will contain an error page | 31 // within the web content area. The native view will contain an error page |
| 32 // with information appropriate for the problem described in |error|. | 32 // with information appropriate for the problem described in |error|. |
| 33 // |isPost| indicates whether the error was for a post request. | 33 // |isPost| indicates whether the error was for a post request. |
| 34 // | |
| 35 // DEPRECATED! Clients must use WebStateObserver::DidFinishNavigation and check | |
| 36 // for NavigationContext::GetError() and NavigationContext::IsPost(). | |
| 37 // TODO(crbug.com/725241): Remove this method once clients are switched to use | |
| 38 // DidFinishNavigaiton. | |
| 34 - (id<CRWNativeContent>)controllerForURL:(const GURL&)url | 39 - (id<CRWNativeContent>)controllerForURL:(const GURL&)url |
| 35 withError:(NSError*)error | 40 withError:(NSError*)error |
| 36 isPost:(BOOL)isPost; | 41 isPost:(BOOL)isPost; |
|
marq (ping after 24h)
2017/05/29 10:02:07
Add "__attribute__((deprecated))" or its macro equ
Eugene But (OOO till 7-30)
2017/05/30 17:49:45
This throws "error: 'controllerForURL:withError:is
| |
| 37 | 42 |
| 38 @end | 43 @end |
| 39 | 44 |
| 40 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_NATIVE_CONTENT_PROVIDER_H_ | 45 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_NATIVE_CONTENT_PROVIDER_H_ |
| OLD | NEW |