Index: chrome/installer/mac/app/MainDelegate.h |
diff --git a/chrome/installer/mac/app/MainDelegate.h b/chrome/installer/mac/app/MainDelegate.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7983311036853343d3c65e9442c910323406b7ea |
--- /dev/null |
+++ b/chrome/installer/mac/app/MainDelegate.h |
@@ -0,0 +1,27 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_INSTALLER_MAC_APP_MAINDELEGATE_H_ |
+#define CHROME_INSTALLER_MAC_APP_MAINDELEGATE_H_ |
+ |
+#import <Cocoa/Cocoa.h> |
+ |
+@protocol OmahaDelegate |
+- (void)talkToOmaha; |
+@end |
Sidney San Martín
2016/07/19 23:19:20
main.m knows that it's dealing with an instance of
|
+ |
+@protocol DownloadDelegate |
+- (void)downloadChromeWithData:(NSData*)data; |
+@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!
|
+ |
+@protocol UnpackDelegate |
+- (void)unpackDMG; |
+@end |
Sidney San Martín
2016/07/19 23:19:20
Same thing here.
|
+ |
+@interface MainDelegate |
+ : NSObject<OmahaDelegate, DownloadDelegate, UnpackDelegate> |
+ |
+@end |
+ |
+#endif // CHROME_INSTALLER_MAC_APP_MAINDELEGATE_H_ |