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

Side by Side Diff: third_party/libaddressinput/chromium/cpp/src/address_validator.cc

Issue 106863006: [rac] Add AddressValidator API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update header comments with new enum name (Status). Created 7 years 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (C) 2013 Google Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 #include <libaddressinput/address_validator.h>
16
17 #include <libaddressinput/downloader.h>
18 #include <libaddressinput/load_rules_delegate.h>
19 #include <libaddressinput/localization.h>
20 #include <libaddressinput/storage.h>
21
22 #include <string>
23
24 #include "retriever.h"
25 #include "rule_retriever.h"
26 #include "validating_storage.h"
27
28 namespace i18n {
29 namespace addressinput {
30
31 AddressValidator::AddressValidator(const Downloader* downloader,
32 Storage* storage,
33 LoadRulesDelegate* load_rules_delegate)
34 : rule_retriever_(new RuleRetriever(new Retriever(
35 VALIDATION_DATA_URL, downloader, new ValidatingStorage(storage)))),
36 load_rules_delegate_(load_rules_delegate) {}
37
38 AddressValidator::~AddressValidator() {}
39
40 void AddressValidator::LoadRules(const std::string& country_code) {}
41
42 AddressValidator::Status AddressValidator::ValidateAddress(
43 const AddressData& address,
44 const AddressProblemFilter& filter,
45 const Localization& localization,
46 AddressProblems* problems) const {
47 return RULES_UNAVAILABLE;
48 }
49
50 } // namespace addressinput
51 } // namespace i18n
OLDNEW
« no previous file with comments | « third_party/libaddressinput/chromium/cpp/libaddressinput.gyp ('k') | third_party/libaddressinput/libaddressinput.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698