Index: remoting/host/disconnect_window_mac.h |
diff --git a/remoting/host/disconnect_window_mac.h b/remoting/host/disconnect_window_mac.h |
index 8014b4e7b2d4482367ab4cb43085eba643a39cab..779650db7b973ed35740bbd5e28836ce2b927e24 100644 |
--- a/remoting/host/disconnect_window_mac.h |
+++ b/remoting/host/disconnect_window_mac.h |
@@ -1,9 +1,12 @@ |
-// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2012 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. |
#import <Cocoa/Cocoa.h> |
+#include "base/callback.h" |
+#include "remoting/host/disconnect_window.h" |
+ |
namespace remoting { |
class ChromotingHost; |
} |
@@ -13,12 +16,14 @@ class ChromotingHost; |
@interface DisconnectWindowController : NSWindowController { |
@private |
remoting::ChromotingHost* host_; |
+ base::Closure disconnect_callback_; |
NSString* username_; |
IBOutlet NSTextField* connectedToField_; |
IBOutlet NSButton* disconnectButton_; |
} |
- (id)initWithHost:(remoting::ChromotingHost*)host |
+ callback:(const base::Closure&)disconnect_callback |
username:(NSString*)username; |
- (IBAction)stopSharing:(id)sender; |
@end |