OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_INSTALLER_MAC_APP_MAINDELEGATE_H_ | |
6 #define CHROME_INSTALLER_MAC_APP_MAINDELEGATE_H_ | |
7 | |
8 #import <Cocoa/Cocoa.h> | |
9 | |
10 @protocol OmahaDelegate | |
11 - (void)talkToOmaha; | |
12 @end | |
Sidney San Martín
2016/07/19 23:19:20
main.m knows that it's dealing with an instance of
| |
13 | |
14 @protocol DownloadDelegate | |
15 - (void)downloadChromeWithData:(NSData*)data; | |
16 @end | |
Sidney San Martín
2016/07/19 23:19:20
In an app like this, delegate protocols are meant
Anna Zeng
2016/07/21 18:06:44
Let's talk about this in real time too!
| |
17 | |
18 @protocol UnpackDelegate | |
19 - (void)unpackDMG; | |
20 @end | |
Sidney San Martín
2016/07/19 23:19:20
Same thing here.
| |
21 | |
22 @interface MainDelegate | |
23 : NSObject<OmahaDelegate, DownloadDelegate, UnpackDelegate> | |
24 | |
25 @end | |
26 | |
27 #endif // CHROME_INSTALLER_MAC_APP_MAINDELEGATE_H_ | |
OLD | NEW |