| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef EXTENSIONS_COMMON_MANIFEST_HANDLERS_DEFAULT_LOCALE_HANDLER_H_ | 5 #ifndef EXTENSIONS_COMMON_MANIFEST_HANDLERS_DEFAULT_LOCALE_HANDLER_H_ |
| 6 #define EXTENSIONS_COMMON_MANIFEST_HANDLERS_DEFAULT_LOCALE_HANDLER_H_ | 6 #define EXTENSIONS_COMMON_MANIFEST_HANDLERS_DEFAULT_LOCALE_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" |
| 10 #include "extensions/common/extension.h" | 11 #include "extensions/common/extension.h" |
| 11 #include "extensions/common/manifest_handler.h" | 12 #include "extensions/common/manifest_handler.h" |
| 12 | 13 |
| 13 namespace extensions { | 14 namespace extensions { |
| 14 | 15 |
| 15 // A structure to hold the locale information for an extension. | 16 // A structure to hold the locale information for an extension. |
| 16 struct LocaleInfo : public Extension::ManifestData { | 17 struct LocaleInfo : public Extension::ManifestData { |
| 17 // Default locale for fall back. Can be empty if extension is not localized. | 18 // Default locale for fall back. Can be empty if extension is not localized. |
| 18 std::string default_locale; | 19 std::string default_locale; |
| 19 | 20 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 37 | 38 |
| 38 private: | 39 private: |
| 39 const std::vector<std::string> Keys() const override; | 40 const std::vector<std::string> Keys() const override; |
| 40 | 41 |
| 41 DISALLOW_COPY_AND_ASSIGN(DefaultLocaleHandler); | 42 DISALLOW_COPY_AND_ASSIGN(DefaultLocaleHandler); |
| 42 }; | 43 }; |
| 43 | 44 |
| 44 } // namespace extensions | 45 } // namespace extensions |
| 45 | 46 |
| 46 #endif // EXTENSIONS_COMMON_MANIFEST_HANDLERS_DEFAULT_LOCALE_HANDLER_H_ | 47 #endif // EXTENSIONS_COMMON_MANIFEST_HANDLERS_DEFAULT_LOCALE_HANDLER_H_ |
| OLD | NEW |