| 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 24 matching lines...) Expand all Loading... |
| 35 void PingRenderer() override; | 35 void PingRenderer() override; |
| 36 void SendAutofillTypePredictionsToRenderer( | 36 void SendAutofillTypePredictionsToRenderer( |
| 37 const std::vector<FormStructure*>& forms) override; | 37 const std::vector<FormStructure*>& forms) override; |
| 38 void RendererShouldAcceptDataListSuggestion( | 38 void RendererShouldAcceptDataListSuggestion( |
| 39 const base::string16& value) override; | 39 const base::string16& value) override; |
| 40 void RendererShouldClearFilledForm() override; | 40 void RendererShouldClearFilledForm() override; |
| 41 void RendererShouldClearPreviewedForm() override; | 41 void RendererShouldClearPreviewedForm() override; |
| 42 void RendererShouldFillFieldWithValue(const base::string16& value) override; | 42 void RendererShouldFillFieldWithValue(const base::string16& value) override; |
| 43 void RendererShouldPreviewFieldWithValue( | 43 void RendererShouldPreviewFieldWithValue( |
| 44 const base::string16& value) override; | 44 const base::string16& value) override; |
| 45 void LinkClicked(WindowOpenDisposition disposition) const 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_ |
| OLD | NEW |