OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 20 matching lines...) Expand all Loading... |
31 #ifndef WebURLError_h | 31 #ifndef WebURLError_h |
32 #define WebURLError_h | 32 #define WebURLError_h |
33 | 33 |
34 #include "WebString.h" | 34 #include "WebString.h" |
35 #include "WebURL.h" | 35 #include "WebURL.h" |
36 | 36 |
37 #if INSIDE_BLINK | 37 #if INSIDE_BLINK |
38 namespace WebCore { class ResourceError; } | 38 namespace WebCore { class ResourceError; } |
39 #endif | 39 #endif |
40 | 40 |
41 namespace WebKit { | 41 namespace blink { |
42 | 42 |
43 struct WebURLError { | 43 struct WebURLError { |
44 // A namespace for "reason" to support various layers generating | 44 // A namespace for "reason" to support various layers generating |
45 // resource errors. WebKit does not care about the value of this | 45 // resource errors. WebKit does not care about the value of this |
46 // string as it will just be passed via callbacks to the consumer. | 46 // string as it will just be passed via callbacks to the consumer. |
47 WebString domain; | 47 WebString domain; |
48 | 48 |
49 // A numeric error code detailing the reason for this error. A value | 49 // A numeric error code detailing the reason for this error. A value |
50 // of 0 means no error. WebKit does not interpret the meaning of other | 50 // of 0 means no error. WebKit does not interpret the meaning of other |
51 // values and normally just forwards this error information back to the | 51 // values and normally just forwards this error information back to the |
(...skipping 12 matching lines...) Expand all Loading... |
64 | 64 |
65 WebURLError() : reason(0), isCancellation(false) { } | 65 WebURLError() : reason(0), isCancellation(false) { } |
66 | 66 |
67 #if INSIDE_BLINK | 67 #if INSIDE_BLINK |
68 BLINK_PLATFORM_EXPORT WebURLError(const WebCore::ResourceError&); | 68 BLINK_PLATFORM_EXPORT WebURLError(const WebCore::ResourceError&); |
69 BLINK_PLATFORM_EXPORT WebURLError& operator=(const WebCore::ResourceError&); | 69 BLINK_PLATFORM_EXPORT WebURLError& operator=(const WebCore::ResourceError&); |
70 BLINK_PLATFORM_EXPORT operator WebCore::ResourceError() const; | 70 BLINK_PLATFORM_EXPORT operator WebCore::ResourceError() const; |
71 #endif | 71 #endif |
72 }; | 72 }; |
73 | 73 |
74 } // namespace WebKit | 74 } // namespace blink |
75 | 75 |
76 #endif | 76 #endif |
OLD | NEW |