| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 void RendererShouldAcceptDataListSuggestion( | 41 void RendererShouldAcceptDataListSuggestion( |
| 42 const base::string16& value) override; | 42 const base::string16& value) override; |
| 43 void RendererShouldClearFilledForm() override; | 43 void RendererShouldClearFilledForm() override; |
| 44 void RendererShouldClearPreviewedForm() override; | 44 void RendererShouldClearPreviewedForm() override; |
| 45 void RendererShouldFillFieldWithValue(const base::string16& value) override; | 45 void RendererShouldFillFieldWithValue(const base::string16& value) override; |
| 46 void RendererShouldPreviewFieldWithValue( | 46 void RendererShouldPreviewFieldWithValue( |
| 47 const base::string16& value) override; | 47 const base::string16& value) override; |
| 48 void PopupHidden() override; | 48 void PopupHidden() override; |
| 49 gfx::RectF TransformBoundingBoxToViewportCoordinates( | 49 gfx::RectF TransformBoundingBoxToViewportCoordinates( |
| 50 const gfx::RectF& bounding_box) override; | 50 const gfx::RectF& bounding_box) override; |
| 51 void DidInteractWithCreditCardForm() override; |
| 51 | 52 |
| 52 // Methods that tests can use to specialize functionality. | 53 // Methods that tests can use to specialize functionality. |
| 53 | 54 |
| 54 // Sets the URL request context for this instance. |url_request_context| | 55 // Sets the URL request context for this instance. |url_request_context| |
| 55 // should outlive this instance. | 56 // should outlive this instance. |
| 56 void SetURLRequestContext(net::URLRequestContextGetter* url_request_context); | 57 void SetURLRequestContext(net::URLRequestContextGetter* url_request_context); |
| 57 | 58 |
| 58 private: | 59 private: |
| 59 std::unique_ptr<base::SequencedWorkerPoolOwner> blocking_pool_owner_; | 60 std::unique_ptr<base::SequencedWorkerPoolOwner> blocking_pool_owner_; |
| 60 net::URLRequestContextGetter* url_request_context_; | 61 net::URLRequestContextGetter* url_request_context_; |
| 61 | 62 |
| 62 DISALLOW_COPY_AND_ASSIGN(TestAutofillDriver); | 63 DISALLOW_COPY_AND_ASSIGN(TestAutofillDriver); |
| 63 }; | 64 }; |
| 64 | 65 |
| 65 } // namespace autofill | 66 } // namespace autofill |
| 66 | 67 |
| 67 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_ | 68 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_ |
| OLD | NEW |