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 25 matching lines...) Expand all Loading... |
36 public: | 36 public: |
37 static void CreateForWebContentsAndDelegate( | 37 static void CreateForWebContentsAndDelegate( |
38 content::WebContents* contents, | 38 content::WebContents* contents, |
39 autofill::AutofillManagerDelegate* delegate, | 39 autofill::AutofillManagerDelegate* delegate, |
40 const std::string& app_locale, | 40 const std::string& app_locale, |
41 AutofillManager::AutofillDownloadManagerState enable_download_manager); | 41 AutofillManager::AutofillDownloadManagerState enable_download_manager); |
42 static AutofillDriverImpl* FromWebContents(content::WebContents* contents); | 42 static AutofillDriverImpl* FromWebContents(content::WebContents* contents); |
43 | 43 |
44 // AutofillDriver: | 44 // AutofillDriver: |
45 virtual content::WebContents* GetWebContents() OVERRIDE; | 45 virtual content::WebContents* GetWebContents() OVERRIDE; |
| 46 virtual bool CanSendToRenderer() OVERRIDE; |
| 47 virtual void SendFormDataToRenderer(int query_id, FormData data) OVERRIDE; |
46 | 48 |
47 AutofillExternalDelegate* autofill_external_delegate() { | 49 AutofillExternalDelegate* autofill_external_delegate() { |
48 return autofill_external_delegate_.get(); | 50 return autofill_external_delegate_.get(); |
49 } | 51 } |
50 | 52 |
51 // Sets the external delegate to |delegate| both within this class and in the | 53 // Sets the external delegate to |delegate| both within this class and in the |
52 // shared Autofill code. Takes ownership of |delegate|. | 54 // shared Autofill code. Takes ownership of |delegate|. |
53 void SetAutofillExternalDelegate( | 55 void SetAutofillExternalDelegate( |
54 scoped_ptr<AutofillExternalDelegate> delegate); | 56 scoped_ptr<AutofillExternalDelegate> delegate); |
55 | 57 |
(...skipping 23 matching lines...) Expand all Loading... |
79 scoped_ptr<AutofillExternalDelegate> autofill_external_delegate_; | 81 scoped_ptr<AutofillExternalDelegate> autofill_external_delegate_; |
80 | 82 |
81 // AutofillManager instance via which this object drives the shared Autofill | 83 // AutofillManager instance via which this object drives the shared Autofill |
82 // code. | 84 // code. |
83 scoped_ptr<AutofillManager> autofill_manager_; | 85 scoped_ptr<AutofillManager> autofill_manager_; |
84 }; | 86 }; |
85 | 87 |
86 } // namespace autofill | 88 } // namespace autofill |
87 | 89 |
88 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IMPL_H_ | 90 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IMPL_H_ |
OLD | NEW |