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

Side by Side Diff: Source/core/inspector/NetworkResourcesData.h

Issue 1311923004: Rename FormData/FormDataBuilder to EncodedFormData/FormDataEncoder respectively. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update comments Created 5 years, 3 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
OLDNEW
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 25 matching lines...) Expand all
36 #include "platform/network/HTTPHeaderMap.h" 36 #include "platform/network/HTTPHeaderMap.h"
37 #include "platform/weborigin/KURL.h" 37 #include "platform/weborigin/KURL.h"
38 #include "wtf/Deque.h" 38 #include "wtf/Deque.h"
39 #include "wtf/HashMap.h" 39 #include "wtf/HashMap.h"
40 #include "wtf/RefCounted.h" 40 #include "wtf/RefCounted.h"
41 #include "wtf/text/WTFString.h" 41 #include "wtf/text/WTFString.h"
42 42
43 43
44 namespace blink { 44 namespace blink {
45 45
46 class EncodedFormData;
46 class ExecutionContext; 47 class ExecutionContext;
47 class Resource; 48 class Resource;
48 class FormData;
49 class ResourceResponse; 49 class ResourceResponse;
50 class SharedBuffer; 50 class SharedBuffer;
51 class TextResourceDecoder; 51 class TextResourceDecoder;
52 52
53 class XHRReplayData final 53 class XHRReplayData final
54 : public RefCountedWillBeGarbageCollectedFinalized<XHRReplayData> 54 : public RefCountedWillBeGarbageCollectedFinalized<XHRReplayData>
55 , public ContextLifecycleObserver { 55 , public ContextLifecycleObserver {
56 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(XHRReplayData); 56 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(XHRReplayData);
57 public: 57 public:
58 static PassRefPtrWillBeRawPtr<XHRReplayData> create(ExecutionContext*, const AtomicString& method, const KURL&, bool async, PassRefPtr<FormData>, bool inclu deCredentials); 58 static PassRefPtrWillBeRawPtr<XHRReplayData> create(ExecutionContext*, const AtomicString& method, const KURL&, bool async, PassRefPtr<EncodedFormData>, boo l includeCredentials);
59 59
60 void addHeader(const AtomicString& key, const AtomicString& value); 60 void addHeader(const AtomicString& key, const AtomicString& value);
61 const AtomicString& method() const { return m_method; } 61 const AtomicString& method() const { return m_method; }
62 const KURL& url() const { return m_url; } 62 const KURL& url() const { return m_url; }
63 bool async() const { return m_async; } 63 bool async() const { return m_async; }
64 PassRefPtr<FormData> formData() const { return m_formData; } 64 PassRefPtr<EncodedFormData> formData() const { return m_formData; }
65 const HTTPHeaderMap& headers() const { return m_headers; } 65 const HTTPHeaderMap& headers() const { return m_headers; }
66 bool includeCredentials() const { return m_includeCredentials; } 66 bool includeCredentials() const { return m_includeCredentials; }
67 67
68 DECLARE_VIRTUAL_TRACE(); 68 DECLARE_VIRTUAL_TRACE();
69 69
70 private: 70 private:
71 XHRReplayData(ExecutionContext*, const AtomicString& method, const KURL&, bo ol async, PassRefPtr<FormData>, bool includeCredentials); 71 XHRReplayData(ExecutionContext*, const AtomicString& method, const KURL&, bo ol async, PassRefPtr<EncodedFormData>, bool includeCredentials);
72 72
73 AtomicString m_method; 73 AtomicString m_method;
74 KURL m_url; 74 KURL m_url;
75 bool m_async; 75 bool m_async;
76 RefPtr<FormData> m_formData; 76 RefPtr<EncodedFormData> m_formData;
77 HTTPHeaderMap m_headers; 77 HTTPHeaderMap m_headers;
78 bool m_includeCredentials; 78 bool m_includeCredentials;
79 }; 79 };
80 80
81 class NetworkResourcesData { 81 class NetworkResourcesData {
82 WTF_MAKE_FAST_ALLOCATED(NetworkResourcesData); 82 WTF_MAKE_FAST_ALLOCATED(NetworkResourcesData);
83 public: 83 public:
84 class ResourceData { 84 class ResourceData {
85 WTF_MAKE_FAST_ALLOCATED(ResourceData); 85 WTF_MAKE_FAST_ALLOCATED(ResourceData);
86 friend class NetworkResourcesData; 86 friend class NetworkResourcesData;
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 ResourceDataMap m_requestIdToResourceDataMap; 194 ResourceDataMap m_requestIdToResourceDataMap;
195 size_t m_contentSize; 195 size_t m_contentSize;
196 size_t m_maximumResourcesContentSize; 196 size_t m_maximumResourcesContentSize;
197 size_t m_maximumSingleResourceContentSize; 197 size_t m_maximumSingleResourceContentSize;
198 }; 198 };
199 199
200 } // namespace blink 200 } // namespace blink
201 201
202 202
203 #endif // !defined(NetworkResourcesData_h) 203 #endif // !defined(NetworkResourcesData_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorResourceAgent.cpp ('k') | Source/core/inspector/NetworkResourcesData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698