OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 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_BROWSER_AUTOFILL_AUTOFILL_KEYSTONE_OBSERVER_MAC_H_ | |
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_KEYSTONE_OBSERVER_MAC_H_ | |
7 | |
8 #include "base/mac/scoped_nsobject.h" | |
9 | |
10 @class AutofillKeystoneBridge; | |
11 | |
12 class AutofillKeystoneObserverMacDelegate; | |
13 | |
14 namespace autofill { | |
15 | |
16 // Passes Cocoa based Keystone NSNotifications to its C++ delegate. | |
17 class AutofillKeystoneObserverMac { | |
18 public: | |
19 AutofillKeystoneObserverMac(AutofillKeystoneObserverMacDelegate* delegate); | |
Ilya Sherman
2014/06/14 01:18:50
Please document lifetime expectations. (It seems
erikchen
2014/06/16 20:30:45
I've added the lifetime expectation to the comment
| |
20 ~AutofillKeystoneObserverMac(); | |
21 | |
22 private: | |
23 base::scoped_nsobject<AutofillKeystoneBridge> bridge_; | |
24 }; | |
Ilya Sherman
2014/06/14 01:18:50
I'm noticing that you're adding four new files for
erikchen
2014/06/16 20:30:45
Your suggestion is implementable, but it does not
Ilya Sherman
2014/06/17 03:29:16
Here's a more complete implementation along the li
erikchen
2014/06/17 18:14:27
:O
Your implementation is much cleaner and shorter
| |
25 | |
26 } // namespace autofill | |
27 | |
28 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_KEYSTONE_OBSERVER_MAC_H_ | |
OLD | NEW |