Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(325)

Side by Side Diff: components/autofill/core/browser/autofill_driver.h

Issue 286243002: Mac: Autofill should not immediately request access to address book. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add IPCs. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
61 // Pings renderer. The renderer will return an IPC acknowledging the ping.
62 virtual void PingRenderer() = 0;
63
61 // Sends the field type predictions specified in |forms| to the renderer. This 64 // Sends the field type predictions specified in |forms| to the renderer. This
62 // method is a no-op if the renderer is not available or the appropriate 65 // method is a no-op if the renderer is not available or the appropriate
63 // command-line flag is not set. 66 // command-line flag is not set.
64 virtual void SendAutofillTypePredictionsToRenderer( 67 virtual void SendAutofillTypePredictionsToRenderer(
65 const std::vector<FormStructure*>& forms) = 0; 68 const std::vector<FormStructure*>& forms) = 0;
66 69
67 // Tells the renderer to accept data list suggestions for |value|. 70 // Tells the renderer to accept data list suggestions for |value|.
68 virtual void RendererShouldAcceptDataListSuggestion( 71 virtual void RendererShouldAcceptDataListSuggestion(
69 const base::string16& value) = 0; 72 const base::string16& value) = 0;
70 73
71 // Tells the renderer to clear the currently filled Autofill results. 74 // Tells the renderer to clear the currently filled Autofill results.
72 virtual void RendererShouldClearFilledForm() = 0; 75 virtual void RendererShouldClearFilledForm() = 0;
73 76
74 // Tells the renderer to clear the currently previewed Autofill results. 77 // Tells the renderer to clear the currently previewed Autofill results.
75 virtual void RendererShouldClearPreviewedForm() = 0; 78 virtual void RendererShouldClearPreviewedForm() = 0;
76 79
77 // Tells the renderer to set the node text. 80 // Tells the renderer to set the node text.
78 virtual void RendererShouldFillFieldWithValue( 81 virtual void RendererShouldFillFieldWithValue(
79 const base::string16& value) = 0; 82 const base::string16& value) = 0;
80 83
81 // Tells the renderer to preview the node with suggested text. 84 // Tells the renderer to preview the node with suggested text.
82 virtual void RendererShouldPreviewFieldWithValue( 85 virtual void RendererShouldPreviewFieldWithValue(
83 const base::string16& value) = 0; 86 const base::string16& value) = 0;
84
85 }; 87 };
86 88
87 } // namespace autofill 89 } // namespace autofill
88 90
89 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DRIVER_H_ 91 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DRIVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698