OLD | NEW |
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 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 29 matching lines...) Expand all Loading... |
40 | 40 |
41 namespace WebKit { | 41 namespace WebKit { |
42 class WebString; | 42 class WebString; |
43 | 43 |
44 class WebHTTPLoadInfo { | 44 class WebHTTPLoadInfo { |
45 public: | 45 public: |
46 WebHTTPLoadInfo() { initialize(); } | 46 WebHTTPLoadInfo() { initialize(); } |
47 ~WebHTTPLoadInfo() { reset(); } | 47 ~WebHTTPLoadInfo() { reset(); } |
48 WebHTTPLoadInfo(const WebHTTPLoadInfo& r) { assign(r); } | 48 WebHTTPLoadInfo(const WebHTTPLoadInfo& r) { assign(r); } |
49 WebHTTPLoadInfo& operator =(const WebHTTPLoadInfo& r) | 49 WebHTTPLoadInfo& operator =(const WebHTTPLoadInfo& r) |
50 { | 50 { |
51 assign(r); | 51 assign(r); |
52 return *this; | 52 return *this; |
53 } | 53 } |
54 | 54 |
55 WEBKIT_EXPORT void initialize(); | 55 WEBKIT_EXPORT void initialize(); |
56 WEBKIT_EXPORT void reset(); | 56 WEBKIT_EXPORT void reset(); |
57 WEBKIT_EXPORT void assign(const WebHTTPLoadInfo& r); | 57 WEBKIT_EXPORT void assign(const WebHTTPLoadInfo& r); |
58 | 58 |
59 WEBKIT_EXPORT int httpStatusCode() const; | 59 WEBKIT_EXPORT int httpStatusCode() const; |
60 WEBKIT_EXPORT void setHTTPStatusCode(int); | 60 WEBKIT_EXPORT void setHTTPStatusCode(int); |
(...skipping 18 matching lines...) Expand all Loading... |
79 operator WTF::PassRefPtr<WebCore::ResourceLoadInfo>() const; | 79 operator WTF::PassRefPtr<WebCore::ResourceLoadInfo>() const; |
80 #endif | 80 #endif |
81 | 81 |
82 private: | 82 private: |
83 WebPrivatePtr<WebCore::ResourceLoadInfo> m_private; | 83 WebPrivatePtr<WebCore::ResourceLoadInfo> m_private; |
84 }; | 84 }; |
85 | 85 |
86 } // namespace WebKit | 86 } // namespace WebKit |
87 | 87 |
88 #endif | 88 #endif |
OLD | NEW |