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

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

Issue 13928035: WIP Component build of autofill Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make windows compiling Created 7 years, 8 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_external_delegate.h
diff --git a/components/autofill/browser/autofill_external_delegate.h b/components/autofill/browser/autofill_external_delegate.h
index 57a4b8e3faa84410ac8b440fa1239258191435fb..1d7ff603af919ef34adcc0fc4fc3d4600e11c4f7 100644
--- a/components/autofill/browser/autofill_external_delegate.h
+++ b/components/autofill/browser/autofill_external_delegate.h
@@ -12,12 +12,17 @@
#include "base/string16.h"
#include "components/autofill/browser/autofill_popup_delegate.h"
#include "components/autofill/browser/password_autofill_manager.h"
+#include "components/autofill/common/autofill_export.h"
#include "components/autofill/common/form_data.h"
#include "components/autofill/common/form_field_data.h"
#include "components/autofill/common/password_form_fill_data.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
+
+#define EXPORT_WEB_CONTENT_USER_DATA
#include "content/public/browser/web_contents_user_data.h"
+#undef EXPORT_WEB_CONTENT_USER_DATA
+
#include "ui/gfx/rect.h"
namespace gfx {
@@ -37,7 +42,7 @@ class AutofillManager;
// this logic. See http://crbug.com/51644
// Delegate for in-browser Autocomplete and Autofill display and selection.
-class AutofillExternalDelegate
+class AUTOFILL_EXPORT AutofillExternalDelegate
: public content::WebContentsUserData<AutofillExternalDelegate>,
public content::NotificationObserver,
public AutofillPopupDelegate {
@@ -109,6 +114,12 @@ class AutofillExternalDelegate
friend class content::WebContentsUserData<AutofillExternalDelegate>;
AutofillExternalDelegate(content::WebContents* web_contents,
AutofillManager* autofill_manager);
+
+ // Never use this constructor. It's only for preventing compiling errors (
+ // WebContentsUserData requires a constructor with a single WebContents
+ // parameter).
+ explicit AutofillExternalDelegate(content::WebContents* web_contents);
+
virtual ~AutofillExternalDelegate();
content::WebContents* web_contents() { return web_contents_; }

Powered by Google App Engine
This is Rietveld 408576698