| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_WEB_AUTO_RELOAD_CONTROLLER_H_ | 5 #ifndef IOS_CHROME_BROWSER_WEB_AUTO_RELOAD_CONTROLLER_H_ |
| 6 #define IOS_CHROME_BROWSER_WEB_AUTO_RELOAD_CONTROLLER_H_ | 6 #define IOS_CHROME_BROWSER_WEB_AUTO_RELOAD_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 | 9 |
| 10 #include "url/gurl.h" | 10 #include "url/gurl.h" |
| 11 | 11 |
| 12 // AutoReloadDelegate is the interface by which AutoReloadController affects the | 12 // AutoReloadDelegate is the interface by which AutoReloadController affects the |
| 13 // outside world. Tests can use a mock object implementing this protocol; | 13 // outside world. Tests can use a mock object implementing this protocol; |
| 14 // normally, this is provided by AutoReloadBridge. | 14 // normally, this is provided by AutoReloadBridge. |
| 15 @protocol AutoReloadDelegate | 15 @protocol AutoReloadDelegate |
| 16 | 16 |
| 17 // When called, this method should reload the tab being tracked (see the class | 17 // When called, this method should reload the tab being tracked (see the class |
| 18 // comment on AutoReloadController below). | 18 // comment on AutoReloadController below). |
| (...skipping 21 matching lines...) Expand all Loading... |
| 40 // This method notifies this object that a page load failed for |url|. | 40 // This method notifies this object that a page load failed for |url|. |
| 41 - (void)loadFailedForURL:(const GURL&)url wasPost:(BOOL)wasPost; | 41 - (void)loadFailedForURL:(const GURL&)url wasPost:(BOOL)wasPost; |
| 42 | 42 |
| 43 // This method notifies this object that the device's network state changed to | 43 // This method notifies this object that the device's network state changed to |
| 44 // |online|. | 44 // |online|. |
| 45 - (void)networkStateChangedToOnline:(BOOL)online; | 45 - (void)networkStateChangedToOnline:(BOOL)online; |
| 46 | 46 |
| 47 @end | 47 @end |
| 48 | 48 |
| 49 #endif // IOS_CHROME_BROWSER_WEB_AUTO_RELOAD_CONTROLLER_H_ | 49 #endif // IOS_CHROME_BROWSER_WEB_AUTO_RELOAD_CONTROLLER_H_ |
| OLD | NEW |