Chromium Code Reviews| Index: components/contextual_search/browser/native_int_storage.h |
| diff --git a/components/contextual_search/browser/native_int_storage.h b/components/contextual_search/browser/native_int_storage.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4a351614bfcfbb00089d0eef4499356e672c8066 |
| --- /dev/null |
| +++ b/components/contextual_search/browser/native_int_storage.h |
| @@ -0,0 +1,28 @@ |
| +// Copyright 2016 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 COMPONENTS_CONTEXTUAL_SEARCH_BROWSER_NATIVE_INT_STORAGE_H_ |
| +#define COMPONENTS_CONTEXTUAL_SEARCH_BROWSER_NATIVE_INT_STORAGE_H_ |
| + |
| +#include <string> |
| + |
| +#include "base/macros.h" |
| + |
| +namespace contextual_search { |
| + |
| +class NativeIntStorage { |
|
Theresa
2016/08/26 23:32:08
I think DeviceIntStorage does make more sense or P
Donn Denman
2016/08/29 22:58:06
Done.
|
| + public: |
| + NativeIntStorage() {} |
| + virtual ~NativeIntStorage() {} |
| + |
| + virtual int ReadInt(std::string storage_key) = 0; |
| + virtual void WriteInt(std::string storage_key, int value) = 0; |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(NativeIntStorage); |
| +}; |
| + |
| +} // namespace contextual_search |
| + |
| +#endif // COMPONENTS_CONTEXTUAL_SEARCH_BROWSER_NATIVE_INT_STORAGE_H_ |