Index: chrome/browser/autofill/autofill_keystone_observer_mac.h |
diff --git a/chrome/browser/autofill/autofill_keystone_observer_mac.h b/chrome/browser/autofill/autofill_keystone_observer_mac.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3eec8aedf75e5abf10b1f184b33226ff2034e07c |
--- /dev/null |
+++ b/chrome/browser/autofill/autofill_keystone_observer_mac.h |
@@ -0,0 +1,29 @@ |
+// Copyright 2014 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_BROWSER_AUTOFILL_AUTOFILL_KEYSTONE_OBSERVER_MAC_H_ |
+#define CHROME_BROWSER_AUTOFILL_AUTOFILL_KEYSTONE_OBSERVER_MAC_H_ |
+ |
+#include "base/mac/scoped_nsobject.h" |
+ |
+@class AutofillKeystoneBridge; |
+ |
+namespace autofill { |
+ |
+class AutofillKeystoneObserverMacDelegate; |
+ |
+// Passes Cocoa based Keystone NSNotifications to its C++ delegate. The |
+// delegate is expected to outlive this observer. |
+class AutofillKeystoneObserverMac { |
+ public: |
+ AutofillKeystoneObserverMac(AutofillKeystoneObserverMacDelegate* delegate); |
+ ~AutofillKeystoneObserverMac(); |
+ |
+ private: |
+ base::scoped_nsobject<AutofillKeystoneBridge> bridge_; |
+}; |
+ |
+} // namespace autofill |
+ |
+#endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_KEYSTONE_OBSERVER_MAC_H_ |