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 28 matching lines...) Expand all Loading... |
39 public: | 39 public: |
40 static void CreateForWebContentsAndDelegate( | 40 static void CreateForWebContentsAndDelegate( |
41 content::WebContents* contents, | 41 content::WebContents* contents, |
42 autofill::AutofillManagerDelegate* delegate, | 42 autofill::AutofillManagerDelegate* delegate, |
43 const std::string& app_locale, | 43 const std::string& app_locale, |
44 AutofillManager::AutofillDownloadManagerState enable_download_manager); | 44 AutofillManager::AutofillDownloadManagerState enable_download_manager); |
45 static AutofillDriverImpl* FromWebContents(content::WebContents* contents); | 45 static AutofillDriverImpl* FromWebContents(content::WebContents* contents); |
46 | 46 |
47 // AutofillDriver: | 47 // AutofillDriver: |
48 virtual content::WebContents* GetWebContents() OVERRIDE; | 48 virtual content::WebContents* GetWebContents() OVERRIDE; |
| 49 virtual bool RendererIsAvailable() OVERRIDE; |
| 50 virtual void SendFormDataToRenderer(int query_id, |
| 51 const FormData& data) OVERRIDE; |
49 | 52 |
50 AutofillExternalDelegate* autofill_external_delegate() { | 53 AutofillExternalDelegate* autofill_external_delegate() { |
51 return autofill_external_delegate_.get(); | 54 return autofill_external_delegate_.get(); |
52 } | 55 } |
53 | 56 |
54 // Sets the external delegate to |delegate| both within this class and in the | 57 // Sets the external delegate to |delegate| both within this class and in the |
55 // shared Autofill code. Takes ownership of |delegate|. | 58 // shared Autofill code. Takes ownership of |delegate|. |
56 void SetAutofillExternalDelegate( | 59 void SetAutofillExternalDelegate( |
57 scoped_ptr<AutofillExternalDelegate> delegate); | 60 scoped_ptr<AutofillExternalDelegate> delegate); |
58 | 61 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 scoped_ptr<AutofillExternalDelegate> autofill_external_delegate_; | 93 scoped_ptr<AutofillExternalDelegate> autofill_external_delegate_; |
91 | 94 |
92 // AutofillManager instance via which this object drives the shared Autofill | 95 // AutofillManager instance via which this object drives the shared Autofill |
93 // code. | 96 // code. |
94 scoped_ptr<AutofillManager> autofill_manager_; | 97 scoped_ptr<AutofillManager> autofill_manager_; |
95 }; | 98 }; |
96 | 99 |
97 } // namespace autofill | 100 } // namespace autofill |
98 | 101 |
99 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IMPL_H_ | 102 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IMPL_H_ |
OLD | NEW |