Index: third_party/libaddressinput/chromium/fallback_data_store.h |
diff --git a/third_party/libaddressinput/chromium/fallback_data_store.h b/third_party/libaddressinput/chromium/fallback_data_store.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fd8d680576cbcabb4a082edbb305e1207cb4c284 |
--- /dev/null |
+++ b/third_party/libaddressinput/chromium/fallback_data_store.h |
@@ -0,0 +1,22 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef THIRD_PARTY_LIBADDRESSINPUT_CHROMIUM_FALLBACK_DATA_STORE_H_ |
+#define THIRD_PARTY_LIBADDRESSINPUT_CHROMIUM_FALLBACK_DATA_STORE_H_ |
+ |
+#include <string> |
+ |
+namespace autofill { |
+ |
+class FallbackDataStore { |
+ public: |
+ // Gets stale, but valid static data for |key|. Should only be used as a last |
+ // resort after attempts to check the local cache or the webserver have |
+ // failed. |
+ static bool Get(const std::string& key, std::string* data); |
+}; |
+ |
+} // namespace autofill |
+ |
+#endif // THIRD_PARTY_LIBADDRESSINPUT_CHROMIUM_FALLBACK_DATA_STORE_H_ |