OLD | NEW |
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 18 matching lines...) Expand all Loading... |
29 virtual net::URLRequestContextGetter* GetURLRequestContext() OVERRIDE; | 29 virtual net::URLRequestContextGetter* GetURLRequestContext() OVERRIDE; |
30 virtual content::WebContents* GetWebContents() OVERRIDE; | 30 virtual content::WebContents* GetWebContents() OVERRIDE; |
31 virtual base::SequencedWorkerPool* GetBlockingPool() OVERRIDE; | 31 virtual base::SequencedWorkerPool* GetBlockingPool() OVERRIDE; |
32 virtual bool RendererIsAvailable() OVERRIDE; | 32 virtual bool RendererIsAvailable() OVERRIDE; |
33 virtual void SetRendererActionOnFormDataReception( | 33 virtual void SetRendererActionOnFormDataReception( |
34 RendererFormDataAction action) OVERRIDE; | 34 RendererFormDataAction action) OVERRIDE; |
35 virtual void SendFormDataToRenderer(int query_id, | 35 virtual void SendFormDataToRenderer(int query_id, |
36 const FormData& data) OVERRIDE; | 36 const FormData& data) OVERRIDE; |
37 virtual void SendAutofillTypePredictionsToRenderer( | 37 virtual void SendAutofillTypePredictionsToRenderer( |
38 const std::vector<FormStructure*>& forms) OVERRIDE; | 38 const std::vector<FormStructure*>& forms) OVERRIDE; |
| 39 virtual void RemovePasswordAutofillSuggestion( |
| 40 const PasswordForm& password_form) OVERRIDE; |
39 virtual void RendererShouldAcceptDataListSuggestion( | 41 virtual void RendererShouldAcceptDataListSuggestion( |
40 const base::string16& value) OVERRIDE; | 42 const base::string16& value) OVERRIDE; |
41 virtual void RendererShouldAcceptPasswordAutofillSuggestion( | 43 virtual void RendererShouldAcceptPasswordAutofillSuggestion( |
42 const base::string16& username) OVERRIDE; | 44 const base::string16& username) OVERRIDE; |
43 virtual void RendererShouldClearFilledForm() OVERRIDE; | 45 virtual void RendererShouldClearFilledForm() OVERRIDE; |
44 virtual void RendererShouldClearPreviewedForm() OVERRIDE; | 46 virtual void RendererShouldClearPreviewedForm() OVERRIDE; |
45 virtual void RendererShouldSetNodeText(const base::string16& value) OVERRIDE; | 47 virtual void RendererShouldSetNodeText(const base::string16& value) OVERRIDE; |
46 | 48 |
47 // Methods that tests can use to specialize functionality. | 49 // Methods that tests can use to specialize functionality. |
48 | 50 |
49 // Sets the URL request context for this instance. |url_request_context| | 51 // Sets the URL request context for this instance. |url_request_context| |
50 // should outlive this instance. | 52 // should outlive this instance. |
51 void SetURLRequestContext(net::URLRequestContextGetter* url_request_context); | 53 void SetURLRequestContext(net::URLRequestContextGetter* url_request_context); |
52 | 54 |
53 private: | 55 private: |
54 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; | 56 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; |
55 net::URLRequestContextGetter* url_request_context_; | 57 net::URLRequestContextGetter* url_request_context_; |
56 | 58 |
57 DISALLOW_COPY_AND_ASSIGN(TestAutofillDriver); | 59 DISALLOW_COPY_AND_ASSIGN(TestAutofillDriver); |
58 }; | 60 }; |
59 | 61 |
60 } // namespace autofill | 62 } // namespace autofill |
61 | 63 |
62 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_ | 64 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_ |
OLD | NEW |