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

Side by Side Diff: Source/modules/indexeddb/IDBDatabaseException.h

Issue 17379011: Make ExceptionCode be an enum that does not encode the "code" property (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/ExceptionCode.h ('k') | Source/modules/indexeddb/IDBDatabaseException.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 static int ErrorCodeToExceptionCode(int errorCode) 65 static int ErrorCodeToExceptionCode(int errorCode)
66 { 66 {
67 if (!errorCode) 67 if (!errorCode)
68 return 0; 68 return 0;
69 return errorCode + IDBDatabaseExceptionOffset; 69 return errorCode + IDBDatabaseExceptionOffset;
70 } 70 }
71 71
72 static bool initializeDescription(ExceptionCode, ExceptionCodeDescription*); 72 static bool initializeDescription(ExceptionCode, ExceptionCodeDescription*);
73 static String getErrorName(ExceptionCode); 73 static String getErrorName(ExceptionCode);
74 static String getErrorDescription(ExceptionCode); 74 static String getErrorDescription(ExceptionCode);
75 static ExceptionCode getLegacyErrorCode(ExceptionCode); 75 static int getLegacyErrorCode(ExceptionCode);
76 76
77 private: 77 private:
78 IDBDatabaseException(const ExceptionCodeDescription& description) 78 IDBDatabaseException(const ExceptionCodeDescription& description)
79 : ExceptionBase(description) 79 : ExceptionBase(description)
80 { 80 {
81 } 81 }
82 }; 82 };
83 83
84 } // namespace WebCore 84 } // namespace WebCore
85 85
86 #endif // IDBDatabaseException_h 86 #endif // IDBDatabaseException_h
OLDNEW
« no previous file with comments | « Source/core/dom/ExceptionCode.h ('k') | Source/modules/indexeddb/IDBDatabaseException.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698