OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "chrome/browser/extensions/api/autofill_private/autofill_private_api.h" | |
6 | |
7 #include "base/values.h" | |
Dan Beam
2015/04/23 20:49:12
don't include something in the .h and the .cc (onl
Kyle Horimoto
2015/04/23 22:00:26
Acknowledged.
| |
8 #include "chrome/common/extensions/api/autofill_private.h" | |
9 #include "extensions/browser/extension_function_registry.h" | |
10 | |
11 namespace extensions { | |
12 | |
13 //////////////////////////////////////////////////////////////////////////////// | |
14 // AutofillPrivateSaveAddressFunction | |
15 | |
16 AutofillPrivateSaveAddressFunction::~AutofillPrivateSaveAddressFunction() {} | |
17 | |
18 ExtensionFunction::ResponseAction AutofillPrivateSaveAddressFunction::Run() { | |
19 scoped_ptr<api::autofill_private::SaveAddress::Params> parameters = | |
20 api::autofill_private::SaveAddress::Params::Create(*args_); | |
21 EXTENSION_FUNCTION_VALIDATE(parameters.get()); | |
22 | |
23 // TODO(khorimoto): Implement. | |
24 | |
25 return RespondNow(NoArguments()); | |
26 } | |
27 | |
28 //////////////////////////////////////////////////////////////////////////////// | |
29 // AutofillPrivate*Function | |
30 | |
31 AutofillPrivateGetAddressComponentsFunction:: | |
32 ~AutofillPrivateGetAddressComponentsFunction() {} | |
33 | |
34 ExtensionFunction::ResponseAction | |
35 AutofillPrivateGetAddressComponentsFunction::Run() { | |
36 scoped_ptr<api::autofill_private::GetAddressComponents::Params> parameters = | |
37 api::autofill_private::GetAddressComponents::Params::Create(*args_); | |
38 EXTENSION_FUNCTION_VALIDATE(parameters.get()); | |
39 | |
40 // TODO(khorimoto): Implement. | |
41 | |
42 return RespondNow(NoArguments()); | |
43 } | |
44 | |
45 //////////////////////////////////////////////////////////////////////////////// | |
46 // AutofillPrivateSaveCreditCardFunction | |
47 | |
48 AutofillPrivateSaveCreditCardFunction:: | |
49 ~AutofillPrivateSaveCreditCardFunction() {} | |
50 | |
51 ExtensionFunction::ResponseAction AutofillPrivateSaveCreditCardFunction::Run() { | |
52 scoped_ptr<api::autofill_private::SaveCreditCard::Params> parameters = | |
53 api::autofill_private::SaveCreditCard::Params::Create(*args_); | |
54 EXTENSION_FUNCTION_VALIDATE(parameters.get()); | |
55 | |
56 // TODO(khorimoto): Implement. | |
57 | |
58 return RespondNow(NoArguments()); | |
59 } | |
60 | |
61 //////////////////////////////////////////////////////////////////////////////// | |
62 // AutofillPrivateRemoveEntryFunction | |
63 | |
64 AutofillPrivateRemoveEntryFunction::~AutofillPrivateRemoveEntryFunction() {} | |
65 | |
66 ExtensionFunction::ResponseAction AutofillPrivateRemoveEntryFunction::Run() { | |
67 scoped_ptr<api::autofill_private::RemoveEntry::Params> parameters = | |
68 api::autofill_private::RemoveEntry::Params::Create(*args_); | |
69 EXTENSION_FUNCTION_VALIDATE(parameters.get()); | |
70 | |
71 // TODO(khorimoto): Implement. | |
72 | |
73 return RespondNow(NoArguments()); | |
74 } | |
75 | |
76 //////////////////////////////////////////////////////////////////////////////// | |
77 // AutofillPrivateValidatePhoneNumbersFunction | |
78 | |
79 AutofillPrivateValidatePhoneNumbersFunction:: | |
80 ~AutofillPrivateValidatePhoneNumbersFunction() {} | |
81 | |
82 ExtensionFunction::ResponseAction | |
83 AutofillPrivateValidatePhoneNumbersFunction::Run() { | |
84 scoped_ptr<api::autofill_private::ValidatePhoneNumbers::Params> parameters = | |
85 api::autofill_private::ValidatePhoneNumbers::Params::Create(*args_); | |
86 EXTENSION_FUNCTION_VALIDATE(parameters.get()); | |
87 | |
88 // TODO(khorimoto): Implement. | |
89 | |
90 return RespondNow(NoArguments()); | |
91 } | |
92 | |
93 //////////////////////////////////////////////////////////////////////////////// | |
94 // AutofillPrivateMaskCreditCardFunction | |
95 | |
96 AutofillPrivateMaskCreditCardFunction:: | |
97 ~AutofillPrivateMaskCreditCardFunction() {} | |
98 | |
99 ExtensionFunction::ResponseAction AutofillPrivateMaskCreditCardFunction::Run() { | |
100 scoped_ptr<api::autofill_private::MaskCreditCard::Params> parameters = | |
101 api::autofill_private::MaskCreditCard::Params::Create(*args_); | |
102 EXTENSION_FUNCTION_VALIDATE(parameters.get()); | |
103 | |
104 // TODO(khorimoto): Implement. | |
105 | |
106 return RespondNow(NoArguments()); | |
107 } | |
108 | |
109 } // namespace extensions | |
OLD | NEW |