| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_TRANSLATE_CORE_COMMON_TRANSLATE_ERRORS_H_ | 5 #ifndef COMPONENTS_TRANSLATE_CORE_COMMON_TRANSLATE_ERRORS_H_ |
| 6 #define COMPONENTS_TRANSLATE_CORE_COMMON_TRANSLATE_ERRORS_H_ | 6 #define COMPONENTS_TRANSLATE_CORE_COMMON_TRANSLATE_ERRORS_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 | 9 |
| 10 namespace translate { |
| 11 |
| 10 // This file consolidates all the error types for translation of a page. | 12 // This file consolidates all the error types for translation of a page. |
| 11 // Note: TranslateErrors is used for UMA and translate_internals.js. | 13 // Note: TranslateErrors is used for UMA and translate_internals.js. |
| 12 // Assigned numbers should be changed because the number is binded to UMA value. | 14 // Assigned numbers should be changed because the number is binded to UMA value. |
| 13 // enum TranslateError in histograms.xml and errorStrs in translate_internals.js | 15 // enum TranslateError in histograms.xml and errorStrs in translate_internals.js |
| 14 // should be updated when the type is updated. | 16 // should be updated when the type is updated. |
| 15 | 17 |
| 16 class TranslateErrors { | 18 class TranslateErrors { |
| 17 public: | 19 public: |
| 18 enum Type { | 20 enum Type { |
| 19 NONE = 0, | 21 NONE = 0, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 31 SCRIPT_LOAD_ERROR, // Loader fails to load a dependent JavaScript. | 33 SCRIPT_LOAD_ERROR, // Loader fails to load a dependent JavaScript. |
| 32 TRANSLATE_ERROR_MAX, | 34 TRANSLATE_ERROR_MAX, |
| 33 }; | 35 }; |
| 34 | 36 |
| 35 private: | 37 private: |
| 36 TranslateErrors() {} | 38 TranslateErrors() {} |
| 37 | 39 |
| 38 DISALLOW_COPY_AND_ASSIGN(TranslateErrors); | 40 DISALLOW_COPY_AND_ASSIGN(TranslateErrors); |
| 39 }; | 41 }; |
| 40 | 42 |
| 43 } // namespace translate |
| 44 |
| 41 #endif // COMPONENTS_TRANSLATE_CORE_COMMON_TRANSLATE_ERRORS_H_ | 45 #endif // COMPONENTS_TRANSLATE_CORE_COMMON_TRANSLATE_ERRORS_H_ |
| OLD | NEW |