| 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" |
| 11 #include "base/supports_user_data.h" | 11 #include "base/supports_user_data.h" |
| 12 #include "components/autofill/content/browser/request_autocomplete_manager.h" | 12 #include "components/autofill/content/browser/request_autocomplete_manager.h" |
| 13 #include "components/autofill/core/browser/autofill_driver.h" | 13 #include "components/autofill/core/browser/autofill_driver.h" |
| 14 #include "components/autofill/core/browser/autofill_external_delegate.h" | 14 #include "components/autofill/core/browser/autofill_external_delegate.h" |
| 15 #include "components/autofill/core/browser/autofill_manager.h" | 15 #include "components/autofill/core/browser/autofill_manager.h" |
| 16 #include "content/public/browser/web_contents_observer.h" | 16 #include "content/public/browser/web_contents_observer.h" |
| 17 | 17 |
| 18 namespace content { | 18 namespace content { |
| 19 class WebContents; | 19 class WebContents; |
| 20 } | 20 } |
| 21 | 21 |
| 22 namespace IPC { | 22 namespace IPC { |
| 23 class Message; | 23 class Message; |
| 24 } | 24 } |
| 25 | 25 |
| 26 namespace autofill { | 26 namespace autofill { |
| 27 | 27 |
| 28 class AutofillContext; | |
| 29 class AutofillClient; | 28 class AutofillClient; |
| 30 | 29 |
| 31 // Class that drives autofill flow in the browser process based on | 30 // Class that drives autofill flow in the browser process based on |
| 32 // communication from the renderer and from the external world. There is one | 31 // communication from the renderer and from the external world. There is one |
| 33 // instance per WebContents. | 32 // instance per WebContents. |
| 34 class ContentAutofillDriver : public AutofillDriver, | 33 class ContentAutofillDriver : public AutofillDriver, |
| 35 public content::WebContentsObserver, | 34 public content::WebContentsObserver, |
| 36 public base::SupportsUserData::Data { | 35 public base::SupportsUserData::Data { |
| 37 public: | 36 public: |
| 38 static void CreateForWebContentsAndDelegate( | 37 static void CreateForWebContentsAndDelegate( |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 // case where the Autofill native UI is enabled. | 97 // case where the Autofill native UI is enabled. |
| 99 AutofillExternalDelegate autofill_external_delegate_; | 98 AutofillExternalDelegate autofill_external_delegate_; |
| 100 | 99 |
| 101 // Driver for the interactive autocomplete dialog. | 100 // Driver for the interactive autocomplete dialog. |
| 102 RequestAutocompleteManager request_autocomplete_manager_; | 101 RequestAutocompleteManager request_autocomplete_manager_; |
| 103 }; | 102 }; |
| 104 | 103 |
| 105 } // namespace autofill | 104 } // namespace autofill |
| 106 | 105 |
| 107 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_H_ | 106 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_H_ |
| OLD | NEW |