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

Side by Side Diff: components/translate/core/common/translate_errors.h

Issue 646543003: [components] Apply automatic range checks to content enum types across IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « components/translate/content/common/translate_messages.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 { 10 namespace translate {
(...skipping 14 matching lines...) Expand all
25 UNSUPPORTED_LANGUAGE, // The server detected a language that the browser 25 UNSUPPORTED_LANGUAGE, // The server detected a language that the browser
26 // does not know. 26 // does not know.
27 IDENTICAL_LANGUAGES, // The original and target languages are the same. 27 IDENTICAL_LANGUAGES, // The original and target languages are the same.
28 TRANSLATION_ERROR, // An error was reported by the translation script 28 TRANSLATION_ERROR, // An error was reported by the translation script
29 // during translation. 29 // during translation.
30 TRANSLATION_TIMEOUT, // The library doesn't finish the translation. 30 TRANSLATION_TIMEOUT, // The library doesn't finish the translation.
31 UNEXPECTED_SCRIPT_ERROR, // The library raises an unexpected exception. 31 UNEXPECTED_SCRIPT_ERROR, // The library raises an unexpected exception.
32 BAD_ORIGIN, // The library is blocked because of bad origin. 32 BAD_ORIGIN, // The library is blocked because of bad origin.
33 SCRIPT_LOAD_ERROR, // Loader fails to load a dependent JavaScript. 33 SCRIPT_LOAD_ERROR, // Loader fails to load a dependent JavaScript.
34 TRANSLATE_ERROR_MAX, 34 TRANSLATE_ERROR_MAX,
35 TYPE_LAST = TRANSLATE_ERROR_MAX
35 }; 36 };
36 37
37 private: 38 private:
38 TranslateErrors() {} 39 TranslateErrors() {}
39 40
40 DISALLOW_COPY_AND_ASSIGN(TranslateErrors); 41 DISALLOW_COPY_AND_ASSIGN(TranslateErrors);
41 }; 42 };
42 43
43 } // namespace translate 44 } // namespace translate
44 45
45 #endif // COMPONENTS_TRANSLATE_CORE_COMMON_TRANSLATE_ERRORS_H_ 46 #endif // COMPONENTS_TRANSLATE_CORE_COMMON_TRANSLATE_ERRORS_H_
OLDNEW
« no previous file with comments | « components/translate/content/common/translate_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698