Index: components/autofill/content/browser/autofill_driver_impl.h |
diff --git a/components/autofill/content/browser/autofill_driver_impl.h b/components/autofill/content/browser/autofill_driver_impl.h |
index 9b8a1077da065e2eba2a1c03766e9b220e8056d1..848993367fd7f2ad7df5a38ce688d3d97e86a9ed 100644 |
--- a/components/autofill/content/browser/autofill_driver_impl.h |
+++ b/components/autofill/content/browser/autofill_driver_impl.h |
@@ -7,8 +7,10 @@ |
#include <string> |
+#include "base/memory/scoped_ptr.h" |
#include "base/supports_user_data.h" |
#include "components/autofill/browser/autofill_driver.h" |
+#include "components/autofill/browser/autofill_external_delegate.h" |
#include "components/autofill/browser/autofill_manager.h" |
#include "content/public/browser/web_contents_observer.h" |
@@ -23,7 +25,6 @@ class Message; |
namespace autofill { |
class AutofillContext; |
-class AutofillExternalDelegate; |
class AutofillManagerDelegate; |
// Class that drives autofill flow in the browser process based on |
@@ -44,6 +45,15 @@ class AutofillDriverImpl : public AutofillDriver, |
// AutofillDriver: |
virtual content::WebContents* GetWebContents() OVERRIDE; |
+ AutofillExternalDelegate* autofill_external_delegate() { |
+ return autofill_external_delegate_.get(); |
Ilya Sherman
2013/06/17 21:25:12
nit: Reduce indentation by two spaces.
blundell
2013/06/18 06:20:47
Done.
|
+ } |
+ |
+ // Sets the external delegate to |delegate| both within this class and in the |
+ // shared Autofill code. Takes ownership of |delegate|. |
+ void SetAutofillExternalDelegate( |
+ scoped_ptr<AutofillExternalDelegate> delegate); |
Ilya Sherman
2013/06/17 21:25:12
Why is this method, as well as the one above, publ
blundell
2013/06/17 21:31:48
I had thought about this. The tests can't operate
Ilya Sherman
2013/06/17 21:45:27
Seems like tests should be able to set a different
blundell
2013/06/18 06:20:47
There's nothing like that for WCUD/SupportsUserDat
|
+ |
AutofillManager* autofill_manager() { return &autofill_manager_; } |
private: |
@@ -61,6 +71,10 @@ class AutofillDriverImpl : public AutofillDriver, |
const content::FrameNavigateParams& params) OVERRIDE; |
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
+ // AutofillExternalDelegate instance that this object instantiates in the |
+ // case where the autofill native UI is enabled. |
+ scoped_ptr<AutofillExternalDelegate> autofill_external_delegate_; |
+ |
// AutofillManager instance via which this object drives the shared Autofill |
// code. |
AutofillManager autofill_manager_; |