OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_H_ |
6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 const std::vector<FormStructure*>& forms) OVERRIDE; | 55 const std::vector<FormStructure*>& forms) OVERRIDE; |
56 virtual void RendererShouldAcceptDataListSuggestion( | 56 virtual void RendererShouldAcceptDataListSuggestion( |
57 const base::string16& value) OVERRIDE; | 57 const base::string16& value) OVERRIDE; |
58 virtual void RendererShouldClearFilledForm() OVERRIDE; | 58 virtual void RendererShouldClearFilledForm() OVERRIDE; |
59 virtual void RendererShouldClearPreviewedForm() OVERRIDE; | 59 virtual void RendererShouldClearPreviewedForm() OVERRIDE; |
60 virtual void RendererShouldFillFieldWithValue( | 60 virtual void RendererShouldFillFieldWithValue( |
61 const base::string16& value) OVERRIDE; | 61 const base::string16& value) OVERRIDE; |
62 virtual void RendererShouldPreviewFieldWithValue( | 62 virtual void RendererShouldPreviewFieldWithValue( |
63 const base::string16& value) OVERRIDE; | 63 const base::string16& value) OVERRIDE; |
64 | 64 |
65 // Returns the WebContents with which this instance is associated. | |
66 content::WebContents* GetWebContents(); | |
67 | |
68 AutofillExternalDelegate* autofill_external_delegate() { | 65 AutofillExternalDelegate* autofill_external_delegate() { |
69 return &autofill_external_delegate_; | 66 return &autofill_external_delegate_; |
70 } | 67 } |
71 | 68 |
72 AutofillManager* autofill_manager() { return autofill_manager_.get(); } | 69 AutofillManager* autofill_manager() { return autofill_manager_.get(); } |
73 | 70 |
74 protected: | 71 protected: |
75 ContentAutofillDriver( | 72 ContentAutofillDriver( |
76 content::WebContents* web_contents, | 73 content::WebContents* web_contents, |
77 AutofillClient* client, | 74 AutofillClient* client, |
(...skipping 23 matching lines...) Expand all Loading... |
101 // case where the Autofill native UI is enabled. | 98 // case where the Autofill native UI is enabled. |
102 AutofillExternalDelegate autofill_external_delegate_; | 99 AutofillExternalDelegate autofill_external_delegate_; |
103 | 100 |
104 // Driver for the interactive autocomplete dialog. | 101 // Driver for the interactive autocomplete dialog. |
105 RequestAutocompleteManager request_autocomplete_manager_; | 102 RequestAutocompleteManager request_autocomplete_manager_; |
106 }; | 103 }; |
107 | 104 |
108 } // namespace autofill | 105 } // namespace autofill |
109 | 106 |
110 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_H_ | 107 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_H_ |
OLD | NEW |