Chromium Code Reviews| Index: components/autofill/core/browser/autofill_driver.h |
| diff --git a/components/autofill/core/browser/autofill_driver.h b/components/autofill/core/browser/autofill_driver.h |
| index b690191ffd411a7c4b3fd0e4708bd641657ba4f8..b44b3404924c33bf2dfdcc6a6df83b07d4294679 100644 |
| --- a/components/autofill/core/browser/autofill_driver.h |
| +++ b/components/autofill/core/browser/autofill_driver.h |
| @@ -7,7 +7,9 @@ |
| #include <vector> |
| +#include "base/memory/weak_ptr.h" |
| #include "components/autofill/core/common/form_data.h" |
| +#include "ui/base/window_open_disposition.h" |
| namespace base { |
| class SequencedWorkerPool; |
| @@ -24,7 +26,7 @@ class FormStructure; |
| // Interface that allows Autofill core code to interact with its driver (i.e., |
| // obtain information from it and give information to it). A concrete |
| // implementation must be provided by the driver. |
| -class AutofillDriver { |
| +class AutofillDriver : public base::SupportsWeakPtr<AutofillDriver> { |
| public: |
| // The possible actions that the renderer can take on receiving form data. |
| enum RendererFormDataAction { |
| @@ -89,6 +91,11 @@ class AutofillDriver { |
| // Tells the renderer to preview the node with suggested text. |
| virtual void RendererShouldPreviewFieldWithValue( |
| const base::string16& value) = 0; |
| + |
| + // Opens the help |url| with |disposition| on link click perfromed on the |
| + // infobar. |
|
Peter Kasting
2014/12/23 21:20:35
Nit: How about:
Opens |url| with the supplied |di
Pritam Nikam
2014/12/24 11:16:57
Done.
|
| + virtual void LinkClicked(const GURL& url, |
| + WindowOpenDisposition disposition) = 0; |
| }; |
| } // namespace autofill |