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

Unified Diff: components/autofill/browser/autofill_driver.h

Issue 16286020: Abstract WebContentsObserver from Autofill shared code (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Response to review of PS #6 Created 7 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: components/autofill/browser/autofill_driver.h
diff --git a/components/autofill/browser/autofill_driver.h b/components/autofill/browser/autofill_driver.h
new file mode 100644
index 0000000000000000000000000000000000000000..15a6fa549fe793d3965bfb035643bce8f4daefb6
--- /dev/null
+++ b/components/autofill/browser/autofill_driver.h
@@ -0,0 +1,27 @@
+// Copyright 2013 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 COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_DRIVER_H_
+#define COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_DRIVER_H_
+
+namespace content {
+class WebContents;
+}
+
+namespace autofill {
+
+// Interface that provides access to the driver-level context in which Autofill
+// is operating. A concrete implementation must be provided by the driver.
+class AutofillDriver {
+ public:
+ virtual ~AutofillDriver() {}
+
+ // TODO(blundell): Remove this method once shared code no longer needs to
+ // know about WebContents.
+ virtual content::WebContents* GetWebContents() = 0;
+};
+
+} // namespace autofill
+
+#endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_DRIVER_H_

Powered by Google App Engine
This is Rietveld 408576698