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

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

Issue 184103016: Autofill: Refactoring to support fetching password after a username is selected (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refactor PasswordAutofillManager in password_manager component. Created 6 years, 9 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 "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 20 matching lines...) Expand all
31 virtual bool RendererIsAvailable() OVERRIDE; 31 virtual bool RendererIsAvailable() OVERRIDE;
32 virtual void SetRendererActionOnFormDataReception( 32 virtual void SetRendererActionOnFormDataReception(
33 RendererFormDataAction action) OVERRIDE; 33 RendererFormDataAction action) OVERRIDE;
34 virtual void SendFormDataToRenderer(int query_id, 34 virtual void SendFormDataToRenderer(int query_id,
35 const FormData& data) OVERRIDE; 35 const FormData& data) OVERRIDE;
36 virtual void SendAutofillTypePredictionsToRenderer( 36 virtual void SendAutofillTypePredictionsToRenderer(
37 const std::vector<FormStructure*>& forms) OVERRIDE; 37 const std::vector<FormStructure*>& forms) OVERRIDE;
38 virtual void RendererShouldAcceptDataListSuggestion( 38 virtual void RendererShouldAcceptDataListSuggestion(
39 const base::string16& value) OVERRIDE; 39 const base::string16& value) OVERRIDE;
40 virtual void RendererShouldAcceptPasswordAutofillSuggestion( 40 virtual void RendererShouldAcceptPasswordAutofillSuggestion(
41 const base::string16& username) OVERRIDE; 41 const base::string16& username,
42 const base::string16& password) OVERRIDE;
42 virtual void RendererShouldClearFilledForm() OVERRIDE; 43 virtual void RendererShouldClearFilledForm() OVERRIDE;
43 virtual void RendererShouldClearPreviewedForm() OVERRIDE; 44 virtual void RendererShouldClearPreviewedForm() OVERRIDE;
44 virtual void RendererShouldSetNodeText(const base::string16& value) OVERRIDE; 45 virtual void RendererShouldSetNodeText(const base::string16& value) OVERRIDE;
45 46
46 // Methods that tests can use to specialize functionality. 47 // Methods that tests can use to specialize functionality.
47 48
48 // Sets the URL request context for this instance. |url_request_context| 49 // Sets the URL request context for this instance. |url_request_context|
49 // should outlive this instance. 50 // should outlive this instance.
50 void SetURLRequestContext(net::URLRequestContextGetter* url_request_context); 51 void SetURLRequestContext(net::URLRequestContextGetter* url_request_context);
51 52
52 private: 53 private:
53 scoped_ptr<base::SequencedWorkerPoolOwner> blocking_pool_owner_; 54 scoped_ptr<base::SequencedWorkerPoolOwner> blocking_pool_owner_;
54 net::URLRequestContextGetter* url_request_context_; 55 net::URLRequestContextGetter* url_request_context_;
55 56
56 DISALLOW_COPY_AND_ASSIGN(TestAutofillDriver); 57 DISALLOW_COPY_AND_ASSIGN(TestAutofillDriver);
57 }; 58 };
58 59
59 } // namespace autofill 60 } // namespace autofill
60 61
61 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_ 62 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698