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

Side by Side Diff: public/platform/WebIDBDatabaseError.h

Issue 401973003: Rename WebCore namespace to blink in Public (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | « public/platform/WebHTTPLoadInfo.h ('k') | public/platform/WebIDBKey.h » ('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 15 matching lines...) Expand all
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 #ifndef WebIDBDatabaseError_h 29 #ifndef WebIDBDatabaseError_h
30 #define WebIDBDatabaseError_h 30 #define WebIDBDatabaseError_h
31 31
32 #include "WebCommon.h" 32 #include "WebCommon.h"
33 #include "WebPrivatePtr.h" 33 #include "WebPrivatePtr.h"
34 #include "WebString.h" 34 #include "WebString.h"
35 35
36 namespace WebCore { class DOMError; } 36 namespace blink { class DOMError; }
37 37
38 namespace blink { 38 namespace blink {
39 39
40 // See comment in WebIDBFactory for a high level overview these classes. 40 // See comment in WebIDBFactory for a high level overview these classes.
41 class WebIDBDatabaseError { 41 class WebIDBDatabaseError {
42 public: 42 public:
43 ~WebIDBDatabaseError() { reset(); } 43 ~WebIDBDatabaseError() { reset(); }
44 44
45 WebIDBDatabaseError(unsigned short code) { assign(code); } 45 WebIDBDatabaseError(unsigned short code) { assign(code); }
46 WebIDBDatabaseError(unsigned short code, const WebString& message) { assign( code, message); } 46 WebIDBDatabaseError(unsigned short code, const WebString& message) { assign( code, message); }
47 WebIDBDatabaseError(const WebIDBDatabaseError& error) { assign(error); } 47 WebIDBDatabaseError(const WebIDBDatabaseError& error) { assign(error); }
48 WebIDBDatabaseError& operator=(const WebIDBDatabaseError& error) 48 WebIDBDatabaseError& operator=(const WebIDBDatabaseError& error)
49 { 49 {
50 assign(error); 50 assign(error);
51 return *this; 51 return *this;
52 } 52 }
53 53
54 BLINK_EXPORT void assign(const WebIDBDatabaseError&); 54 BLINK_EXPORT void assign(const WebIDBDatabaseError&);
55 BLINK_EXPORT void reset(); 55 BLINK_EXPORT void reset();
56 56
57 #if BLINK_IMPLEMENTATION 57 #if BLINK_IMPLEMENTATION
58 operator PassRefPtrWillBeRawPtr<WebCore::DOMError>() const; 58 operator PassRefPtrWillBeRawPtr<blink::DOMError>() const;
59 #endif 59 #endif
60 60
61 private: 61 private:
62 BLINK_EXPORT void assign(unsigned short code); 62 BLINK_EXPORT void assign(unsigned short code);
63 BLINK_EXPORT void assign(unsigned short code, const WebString& message); 63 BLINK_EXPORT void assign(unsigned short code, const WebString& message);
64 64
65 WebPrivatePtr<WebCore::DOMError> m_private; 65 WebPrivatePtr<blink::DOMError> m_private;
66 }; 66 };
67 67
68 } // namespace blink 68 } // namespace blink
69 69
70 #endif // WebIDBDatabaseError_h 70 #endif // WebIDBDatabaseError_h
OLDNEW
« no previous file with comments | « public/platform/WebHTTPLoadInfo.h ('k') | public/platform/WebIDBKey.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698