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

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

Issue 99733002: Update HTTPHeaderMap wrappers to use AtomicString type for header values (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase on master Created 7 years 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
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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)
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