OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_INSTALLATION_NOTIFIER_H_ | 5 #ifndef IOS_CHROME_BROWSER_INSTALLATION_NOTIFIER_H_ |
6 #define IOS_CHROME_BROWSER_INSTALLATION_NOTIFIER_H_ | 6 #define IOS_CHROME_BROWSER_INSTALLATION_NOTIFIER_H_ |
7 | 7 |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 #include <stdint.h> |
9 | 10 |
10 class GURL; | 11 class GURL; |
11 | 12 |
12 // Protocol used to mock the delayed dispatching for the unit tests. | 13 // Protocol used to mock the delayed dispatching for the unit tests. |
13 // Calls |block| after |delayInNSec|. | 14 // Calls |block| after |delayInNSec|. |
14 @protocol DispatcherProtocol<NSObject> | 15 @protocol DispatcherProtocol<NSObject> |
15 - (void)dispatchAfter:(int64_t)delayInNSec withBlock:(dispatch_block_t)block; | 16 - (void)dispatchAfter:(int64_t)delayInNSec withBlock:(dispatch_block_t)block; |
16 @end | 17 @end |
17 | 18 |
18 @interface InstallationNotifier : NSObject | 19 @interface InstallationNotifier : NSObject |
(...skipping 11 matching lines...) Expand all Loading... |
30 - (void)unregisterForNotifications:(id)observer; | 31 - (void)unregisterForNotifications:(id)observer; |
31 | 32 |
32 // Performs a check for installed apps right away and restarts the polling. | 33 // Performs a check for installed apps right away and restarts the polling. |
33 // There is usually no need for registered observers to call this method, unless | 34 // There is usually no need for registered observers to call this method, unless |
34 // registered observers need to know the accurate state of installed native | 35 // registered observers need to know the accurate state of installed native |
35 // apps. | 36 // apps. |
36 - (void)checkNow; | 37 - (void)checkNow; |
37 @end | 38 @end |
38 | 39 |
39 #endif // IOS_CHROME_BROWSER_INSTALLATION_NOTIFIER_H_ | 40 #endif // IOS_CHROME_BROWSER_INSTALLATION_NOTIFIER_H_ |
OLD | NEW |