| 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_CONTENT_BROWSER_AUTOFILL_DRIVER_IMPL_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IMPL_H_ |
| 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IMPL_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IMPL_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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 // AutofillDriver: | 47 // AutofillDriver: |
| 48 virtual content::WebContents* GetWebContents() OVERRIDE; | 48 virtual content::WebContents* GetWebContents() OVERRIDE; |
| 49 virtual bool RendererIsAvailable() OVERRIDE; | 49 virtual bool RendererIsAvailable() OVERRIDE; |
| 50 virtual void SetRendererActionOnFormDataReception( | 50 virtual void SetRendererActionOnFormDataReception( |
| 51 RendererFormDataAction action) OVERRIDE; | 51 RendererFormDataAction action) OVERRIDE; |
| 52 virtual void SendFormDataToRenderer(int query_id, | 52 virtual void SendFormDataToRenderer(int query_id, |
| 53 const FormData& data) OVERRIDE; | 53 const FormData& data) OVERRIDE; |
| 54 virtual void SendAutofillTypePredictionsToRenderer( | 54 virtual void SendAutofillTypePredictionsToRenderer( |
| 55 const std::vector<FormStructure*>& forms) OVERRIDE; | 55 const std::vector<FormStructure*>& forms) OVERRIDE; |
| 56 virtual void RendererShouldClearForm() OVERRIDE; | 56 virtual void RendererShouldClearFilledForm() OVERRIDE; |
| 57 virtual void RendererShouldClearPreviewedForm() OVERRIDE; |
| 57 | 58 |
| 58 AutofillExternalDelegate* autofill_external_delegate() { | 59 AutofillExternalDelegate* autofill_external_delegate() { |
| 59 return autofill_external_delegate_.get(); | 60 return autofill_external_delegate_.get(); |
| 60 } | 61 } |
| 61 | 62 |
| 62 // Sets the external delegate to |delegate| both within this class and in the | 63 // Sets the external delegate to |delegate| both within this class and in the |
| 63 // shared Autofill code. Takes ownership of |delegate|. | 64 // shared Autofill code. Takes ownership of |delegate|. |
| 64 void SetAutofillExternalDelegate( | 65 void SetAutofillExternalDelegate( |
| 65 scoped_ptr<AutofillExternalDelegate> delegate); | 66 scoped_ptr<AutofillExternalDelegate> delegate); |
| 66 | 67 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 scoped_ptr<AutofillExternalDelegate> autofill_external_delegate_; | 99 scoped_ptr<AutofillExternalDelegate> autofill_external_delegate_; |
| 99 | 100 |
| 100 // AutofillManager instance via which this object drives the shared Autofill | 101 // AutofillManager instance via which this object drives the shared Autofill |
| 101 // code. | 102 // code. |
| 102 scoped_ptr<AutofillManager> autofill_manager_; | 103 scoped_ptr<AutofillManager> autofill_manager_; |
| 103 }; | 104 }; |
| 104 | 105 |
| 105 } // namespace autofill | 106 } // namespace autofill |
| 106 | 107 |
| 107 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IMPL_H_ | 108 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IMPL_H_ |
| OLD | NEW |