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

Side by Side Diff: third_party/libaddressinput/chromium/cpp/include/libaddressinput/storage.h

Issue 145553009: rAc: use libaddressinput to validate international addresses. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (C) 2013 Google Inc. 1 // Copyright (C) 2013 Google Inc.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with 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 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 public: 44 public:
45 typedef i18n::addressinput::Callback<std::string, std::string> Callback; 45 typedef i18n::addressinput::Callback<std::string, std::string> Callback;
46 46
47 virtual ~Storage() {} 47 virtual ~Storage() {}
48 48
49 // Stores |data| for |key|. 49 // Stores |data| for |key|.
50 virtual void Put(const std::string& key, const std::string& data) = 0; 50 virtual void Put(const std::string& key, const std::string& data) = 0;
51 51
52 // Retrieves the data for |key| and invokes the |data_ready| callback. 52 // Retrieves the data for |key| and invokes the |data_ready| callback.
53 virtual void Get(const std::string& key, 53 virtual void Get(const std::string& key,
54 scoped_ptr<Callback> data_ready) const = 0; 54 scoped_ptr<Callback> data_ready) = 0;
Evan Stade 2014/01/27 23:11:15 I'd rather you didn't make this change --- this is
Dan Beam 2014/01/28 02:22:36 Done.
55 }; 55 };
56 56
57 } // namespace addressinput 57 } // namespace addressinput
58 } // namespace i18n 58 } // namespace i18n
59 59
60 #endif // I18N_ADDRESSINPUT_STORAGE_H_ 60 #endif // I18N_ADDRESSINPUT_STORAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698