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

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

Issue 16286020: Abstract WebContentsObserver from Autofill shared code (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Nit 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
Ilya Sherman 2013/06/12 00:07:46 ultra nit: Please omit the "(c)"
blundell 2013/06/12 16:29:37 Done.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_AUTOFILL_BROWSER_TEST_AUTOFILL_DRIVER_H_
6 #define COMPONENTS_AUTOFILL_BROWSER_TEST_AUTOFILL_DRIVER_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "components/autofill/browser/autofill_driver.h"
11 #include "content/public/browser/web_contents_observer.h"
12
13 namespace autofill {
14
15 // This class is only for easier writing of tests. All pure virtual functions
16 // have been given empty methods.
17 // TODO(blundell): Eliminate this class being a WebContentsObserver once
18 // autofill shared code no longer needs knowledge of WebContents.
19 class TestAutofillDriver : public AutofillDriver,
20 public content::WebContentsObserver {
21 public:
22 TestAutofillDriver(content::WebContents* web_contents);
Ilya Sherman 2013/06/12 00:07:46 nit: Please mark this as explicit.
blundell 2013/06/12 16:29:37 Done.
23 virtual ~TestAutofillDriver();
24
25 // AutofillDriver implementation.
26 virtual content::WebContents* GetWebContents() OVERRIDE;
27
28 private:
29 DISALLOW_COPY_AND_ASSIGN(TestAutofillDriver);
30 };
31
32 } // namespace autofill
33
34 #endif // COMPONENTS_AUTOFILL_BROWSER_TEST_AUTOFILL_DRIVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698