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

Unified Diff: chrome/browser/autofill/autofill_keystone_observer_mac.h

Issue 334653006: mac: Prevent Address Book permissions dialog from erroneously appearing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add metrics. Note the addition of histograms.xml Created 6 years, 6 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/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_

Powered by Google App Engine
This is Rietveld 408576698