OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 * 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 * | 10 * |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 namespace WebCore { | 42 namespace WebCore { |
43 | 43 |
44 class Resource; | 44 class Resource; |
45 class FormData; | 45 class FormData; |
46 class ResourceResponse; | 46 class ResourceResponse; |
47 class SharedBuffer; | 47 class SharedBuffer; |
48 class TextResourceDecoder; | 48 class TextResourceDecoder; |
49 | 49 |
50 class XHRReplayData : public RefCounted<XHRReplayData> { | 50 class XHRReplayData : public RefCounted<XHRReplayData> { |
51 public: | 51 public: |
52 static PassRefPtr<XHRReplayData> create(const String &method, const KURL&, b
ool async, PassRefPtr<FormData>, bool includeCredentials); | 52 static PassRefPtr<XHRReplayData> create(const AtomicString& method, const KU
RL&, bool async, PassRefPtr<FormData>, bool includeCredentials); |
53 | 53 |
54 void addHeader(const AtomicString& key, const String& value); | 54 void addHeader(const AtomicString& key, const AtomicString& value); |
55 const String& method() const { return m_method; } | 55 const AtomicString& method() const { return m_method; } |
56 const KURL& url() const { return m_url; } | 56 const KURL& url() const { return m_url; } |
57 bool async() const { return m_async; } | 57 bool async() const { return m_async; } |
58 PassRefPtr<FormData> formData() const { return m_formData; } | 58 PassRefPtr<FormData> formData() const { return m_formData; } |
59 const HTTPHeaderMap& headers() const { return m_headers; } | 59 const HTTPHeaderMap& headers() const { return m_headers; } |
60 bool includeCredentials() const { return m_includeCredentials; } | 60 bool includeCredentials() const { return m_includeCredentials; } |
61 | 61 |
62 private: | 62 private: |
63 XHRReplayData(const String &method, const KURL&, bool async, PassRefPtr<Form
Data>, bool includeCredentials); | 63 XHRReplayData(const AtomicString& method, const KURL&, bool async, PassRefPt
r<FormData>, bool includeCredentials); |
64 | 64 |
65 String m_method; | 65 AtomicString m_method; |
66 KURL m_url; | 66 KURL m_url; |
67 bool m_async; | 67 bool m_async; |
68 RefPtr<FormData> m_formData; | 68 RefPtr<FormData> m_formData; |
69 HTTPHeaderMap m_headers; | 69 HTTPHeaderMap m_headers; |
70 bool m_includeCredentials; | 70 bool m_includeCredentials; |
71 }; | 71 }; |
72 | 72 |
73 class NetworkResourcesData { | 73 class NetworkResourcesData { |
74 WTF_MAKE_FAST_ALLOCATED; | 74 WTF_MAKE_FAST_ALLOCATED; |
75 public: | 75 public: |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 ResourceDataMap m_requestIdToResourceDataMap; | 180 ResourceDataMap m_requestIdToResourceDataMap; |
181 size_t m_contentSize; | 181 size_t m_contentSize; |
182 size_t m_maximumResourcesContentSize; | 182 size_t m_maximumResourcesContentSize; |
183 size_t m_maximumSingleResourceContentSize; | 183 size_t m_maximumSingleResourceContentSize; |
184 }; | 184 }; |
185 | 185 |
186 } // namespace WebCore | 186 } // namespace WebCore |
187 | 187 |
188 | 188 |
189 #endif // !defined(NetworkResourcesData_h) | 189 #endif // !defined(NetworkResourcesData_h) |
OLD | NEW |