Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Unified Diff: chrome/installer/mac/app/MainDelegate.h

Issue 2148293005: Migrate mac installer to delegate-driven model (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed the rest of Sidney's comments Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698