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

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

Issue 29123004: Move core/platform/network to platform/network (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: One more file Created 7 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 | Annotate | Revision Log
« no previous file with comments | « public/platform/WebHTTPBody.h ('k') | public/platform/WebURLLoadTiming.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 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 BLINK_EXPORT void initialize(); 55 BLINK_PLATFORM_EXPORT void initialize();
56 BLINK_EXPORT void reset(); 56 BLINK_PLATFORM_EXPORT void reset();
57 BLINK_EXPORT void assign(const WebHTTPLoadInfo& r); 57 BLINK_PLATFORM_EXPORT void assign(const WebHTTPLoadInfo& r);
58 58
59 BLINK_EXPORT int httpStatusCode() const; 59 BLINK_PLATFORM_EXPORT int httpStatusCode() const;
60 BLINK_EXPORT void setHTTPStatusCode(int); 60 BLINK_PLATFORM_EXPORT void setHTTPStatusCode(int);
61 61
62 BLINK_EXPORT WebString httpStatusText() const; 62 BLINK_PLATFORM_EXPORT WebString httpStatusText() const;
63 BLINK_EXPORT void setHTTPStatusText(const WebString&); 63 BLINK_PLATFORM_EXPORT void setHTTPStatusText(const WebString&);
64 64
65 BLINK_EXPORT long long encodedDataLength() const; 65 BLINK_PLATFORM_EXPORT long long encodedDataLength() const;
66 BLINK_EXPORT void setEncodedDataLength(long long); 66 BLINK_PLATFORM_EXPORT void setEncodedDataLength(long long);
67 67
68 BLINK_EXPORT void addRequestHeader(const WebString& name, const WebString& v alue); 68 BLINK_PLATFORM_EXPORT void addRequestHeader(const WebString& name, const Web String& value);
69 BLINK_EXPORT void addResponseHeader(const WebString& name, const WebString& value); 69 BLINK_PLATFORM_EXPORT void addResponseHeader(const WebString& name, const We bString& value);
70 70
71 BLINK_EXPORT WebString requestHeadersText() const; 71 BLINK_PLATFORM_EXPORT WebString requestHeadersText() const;
72 BLINK_EXPORT void setRequestHeadersText(const WebString&); 72 BLINK_PLATFORM_EXPORT void setRequestHeadersText(const WebString&);
73 73
74 BLINK_EXPORT WebString responseHeadersText() const; 74 BLINK_PLATFORM_EXPORT WebString responseHeadersText() const;
75 BLINK_EXPORT void setResponseHeadersText(const WebString&); 75 BLINK_PLATFORM_EXPORT void setResponseHeadersText(const WebString&);
76 76
77 #if BLINK_IMPLEMENTATION 77 #if INSIDE_BLINK
78 WebHTTPLoadInfo(WTF::PassRefPtr<WebCore::ResourceLoadInfo>); 78 BLINK_PLATFORM_EXPORT WebHTTPLoadInfo(WTF::PassRefPtr<WebCore::ResourceLoadI nfo>);
79 operator WTF::PassRefPtr<WebCore::ResourceLoadInfo>() const; 79 BLINK_PLATFORM_EXPORT 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
OLDNEW
« no previous file with comments | « public/platform/WebHTTPBody.h ('k') | public/platform/WebURLLoadTiming.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698