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

Side by Side Diff: components/autofill/core/browser/test_autofill_driver.h

Issue 18563002: Move SendAutofillTypePredictions() into AutofillDriver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Response to review Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "components/autofill/core/browser/autofill_driver.h" 10 #include "components/autofill/core/browser/autofill_driver.h"
11 #include "content/public/browser/web_contents_observer.h" 11 #include "content/public/browser/web_contents_observer.h"
12 12
13 namespace autofill { 13 namespace autofill {
14 14
15 // This class is only for easier writing of tests. All pure virtual functions 15 // This class is only for easier writing of tests. All pure virtual functions
16 // have been given empty methods. 16 // have been given empty methods.
17 // TODO(blundell): Eliminate this class being a WebContentsObserver once 17 // TODO(blundell): Eliminate this class being a WebContentsObserver once
18 // autofill shared code no longer needs knowledge of WebContents. 18 // autofill shared code no longer needs knowledge of WebContents.
19 class TestAutofillDriver : public AutofillDriver, 19 class TestAutofillDriver : public AutofillDriver,
20 public content::WebContentsObserver { 20 public content::WebContentsObserver {
21 public: 21 public:
22 explicit TestAutofillDriver(content::WebContents* web_contents); 22 explicit TestAutofillDriver(content::WebContents* web_contents);
23 virtual ~TestAutofillDriver(); 23 virtual ~TestAutofillDriver();
24 24
25 // AutofillDriver implementation. 25 // AutofillDriver implementation.
26 virtual content::WebContents* GetWebContents() OVERRIDE; 26 virtual content::WebContents* GetWebContents() OVERRIDE;
27 virtual bool RendererIsAvailable() OVERRIDE; 27 virtual bool RendererIsAvailable() OVERRIDE;
28 virtual void SendFormDataToRenderer(int query_id, 28 virtual void SendFormDataToRenderer(int query_id,
29 const FormData& data) OVERRIDE; 29 const FormData& data) OVERRIDE;
30 virtual void SendAutofillTypePredictionsToRenderer(
31 const std::vector<FormStructure*>& forms) OVERRIDE;
30 32
31 private: 33 private:
32 DISALLOW_COPY_AND_ASSIGN(TestAutofillDriver); 34 DISALLOW_COPY_AND_ASSIGN(TestAutofillDriver);
33 }; 35 };
34 36
35 } // namespace autofill 37 } // namespace autofill
36 38
37 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_ 39 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_manager.cc ('k') | components/autofill/core/browser/test_autofill_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698