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

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: First. 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..c4a76c29001f82b664e5a274c4bf5321c31825a4
--- /dev/null
+++ b/chrome/browser/autofill/autofill_keystone_observer_mac.h
@@ -0,0 +1,28 @@
+// 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;
+
+class AutofillKeystoneObserverMacDelegate;
+
+namespace autofill {
+
+// Passes Cocoa based Keystone NSNotifications to its C++ delegate.
+class AutofillKeystoneObserverMac {
+ public:
+ 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
+ ~AutofillKeystoneObserverMac();
+
+ private:
+ base::scoped_nsobject<AutofillKeystoneBridge> bridge_;
+};
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
+
+} // namespace autofill
+
+#endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_KEYSTONE_OBSERVER_MAC_H_

Powered by Google App Engine
This is Rietveld 408576698