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_CORE_BROWSER_AUTOFILL_DRIVER_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DRIVER_H_ |
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DRIVER_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DRIVER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "components/autofill/core/common/form_data.h" | 10 #include "components/autofill/core/common/form_data.h" |
(...skipping 29 matching lines...) Expand all Loading... | |
40 // (i.e., incognito) context. | 40 // (i.e., incognito) context. |
41 virtual bool IsOffTheRecord() const = 0; | 41 virtual bool IsOffTheRecord() const = 0; |
42 | 42 |
43 // Returns the URL request context information associated with this driver. | 43 // Returns the URL request context information associated with this driver. |
44 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; | 44 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; |
45 | 45 |
46 // Returns the SequencedWorkerPool on which core Autofill code should run | 46 // Returns the SequencedWorkerPool on which core Autofill code should run |
47 // tasks that may block. This pool must live at least as long as the driver. | 47 // tasks that may block. This pool must live at least as long as the driver. |
48 virtual base::SequencedWorkerPool* GetBlockingPool() = 0; | 48 virtual base::SequencedWorkerPool* GetBlockingPool() = 0; |
49 | 49 |
50 // Returns true iff the renderer is available for communication. | 50 // Returns true if the renderer is available for communication. |
Ilya Sherman
2014/06/02 23:51:00
nit: "iff" was correct -- it stands for "if and on
| |
51 virtual bool RendererIsAvailable() = 0; | 51 virtual bool RendererIsAvailable() = 0; |
52 | 52 |
53 // Forwards |data| to the renderer. |query_id| is the id of the renderer's | 53 // Forwards |data| to the renderer. |query_id| is the id of the renderer's |
54 // original request for the data. |action| is the action the renderer should | 54 // original request for the data. |action| is the action the renderer should |
55 // perform with the |data|. This method is a no-op if the renderer is not | 55 // perform with the |data|. This method is a no-op if the renderer is not |
56 // currently available. | 56 // currently available. |
57 virtual void SendFormDataToRenderer(int query_id, | 57 virtual void SendFormDataToRenderer(int query_id, |
58 RendererFormDataAction action, | 58 RendererFormDataAction action, |
59 const FormData& data) = 0; | 59 const FormData& data) = 0; |
60 | 60 |
(...skipping 19 matching lines...) Expand all Loading... | |
80 | 80 |
81 // Tells the renderer to preview the node with suggested text. | 81 // Tells the renderer to preview the node with suggested text. |
82 virtual void RendererShouldPreviewFieldWithValue( | 82 virtual void RendererShouldPreviewFieldWithValue( |
83 const base::string16& value) = 0; | 83 const base::string16& value) = 0; |
84 | 84 |
85 }; | 85 }; |
86 | 86 |
87 } // namespace autofill | 87 } // namespace autofill |
88 | 88 |
89 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DRIVER_H_ | 89 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DRIVER_H_ |
OLD | NEW |