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

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

Issue 17572015: Begin abstracting sending of IPC from autofill core code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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/core/browser/autofill_driver.h
diff --git a/components/autofill/core/browser/autofill_driver.h b/components/autofill/core/browser/autofill_driver.h
index 178e31b98b83682392d6e0760b691028eedac94f..88ea7a81a93c872e034b169bff7d445006bec2d4 100644
--- a/components/autofill/core/browser/autofill_driver.h
+++ b/components/autofill/core/browser/autofill_driver.h
@@ -5,14 +5,17 @@
#ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DRIVER_H_
#define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DRIVER_H_
+#include "components/autofill/core/common/form_data.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.
+// Interface that allows Autofill core code to interact with its driver (i.e.,
+// obtain information from it and give information to it). A concrete
+// implementation must be provided by the driver.
class AutofillDriver {
public:
virtual ~AutofillDriver() {}
@@ -20,6 +23,14 @@ class AutofillDriver {
// TODO(blundell): Remove this method once shared code no longer needs to
// know about WebContents.
virtual content::WebContents* GetWebContents() = 0;
+
+ // Returns true iff the renderer is available for communication.
+ virtual bool RendererIsAvailable() = 0;
+
+ // Forwards |data| to the renderer. |query_id| is the id of the renderer's
+ // original request for the data. This method is a no-op if the renderer is
+ // not currently available.
+ virtual void SendFormDataToRenderer(int query_id, const FormData& data) = 0;
};
} // namespace autofill
« no previous file with comments | « components/autofill/core/browser/autofill_common_test.cc ('k') | components/autofill/core/browser/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698