| 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_PAGE_NOT_AVAILABLE_CONTROLLER_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_PAGE_NOT_AVAILABLE_CONTROLLER_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_PAGE_NOT_AVAILABLE_CONTROLLER_H_ | 6 #define IOS_CHROME_BROWSER_UI_PAGE_NOT_AVAILABLE_CONTROLLER_H_ |
| 7 | 7 |
| 8 #import "ios/chrome/browser/ui/native_content_controller.h" | 8 #import "ios/chrome/browser/ui/native_content_controller.h" |
| 9 | 9 |
| 10 // A native controller for the case where the URL is not valid and/or the page | 10 // A native controller for the case where the URL is not valid and/or the page |
| 11 // is not available. | 11 // is not available. |
| 12 @interface PageNotAvailableController : NativeContentController | 12 @interface PageNotAvailableController : NativeContentController |
| 13 | 13 |
| 14 // Property to allow setting a custom description for the content. | 14 // Property to allow setting a custom description for the content. |
| 15 @property(nonatomic, assign) NSString* descriptionText; | 15 @property(nonatomic, copy) NSString* descriptionText; |
| 16 | 16 |
| 17 // Designated initializer. | 17 // Designated initializer. |
| 18 - (instancetype)initWithUrl:(const GURL&)url NS_DESIGNATED_INITIALIZER; | 18 - (instancetype)initWithUrl:(const GURL&)url NS_DESIGNATED_INITIALIZER; |
| 19 | 19 |
| 20 - (instancetype)initWithNibName:(NSString*)nibName | 20 - (instancetype)initWithNibName:(NSString*)nibName |
| 21 url:(const GURL&)url NS_UNAVAILABLE; | 21 url:(const GURL&)url NS_UNAVAILABLE; |
| 22 | 22 |
| 23 @end | 23 @end |
| 24 | 24 |
| 25 #endif // IOS_CHROME_BROWSER_UI_PAGE_NOT_AVAILABLE_CONTROLLER_H_ | 25 #endif // IOS_CHROME_BROWSER_UI_PAGE_NOT_AVAILABLE_CONTROLLER_H_ |
| OLD | NEW |