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

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

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
« no previous file with comments | « Source/core/inspector/NetworkResourcesData.h ('k') | Source/core/loader/FrameLoader.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) 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 27 matching lines...) Expand all
38 // 100MB 38 // 100MB
39 static size_t maximumResourcesContentSize = 100 * 1000 * 1000; 39 static size_t maximumResourcesContentSize = 100 * 1000 * 1000;
40 40
41 // 10MB 41 // 10MB
42 static size_t maximumSingleResourceContentSize = 10 * 1000 * 1000; 42 static size_t maximumSingleResourceContentSize = 10 * 1000 * 1000;
43 } 43 }
44 44
45 namespace WebCore { 45 namespace WebCore {
46 46
47 47
48 PassRefPtr<XHRReplayData> XHRReplayData::create(const String &method, const KURL & url, bool async, PassRefPtr<FormData> formData, bool includeCredentials) 48 PassRefPtr<XHRReplayData> XHRReplayData::create(const AtomicString& method, cons t KURL& url, bool async, PassRefPtr<FormData> formData, bool includeCredentials)
49 { 49 {
50 return adoptRef(new XHRReplayData(method, url, async, formData, includeCrede ntials)); 50 return adoptRef(new XHRReplayData(method, url, async, formData, includeCrede ntials));
51 } 51 }
52 52
53 void XHRReplayData::addHeader(const AtomicString& key, const String& value) 53 void XHRReplayData::addHeader(const AtomicString& key, const AtomicString& value )
54 { 54 {
55 m_headers.set(key, value); 55 m_headers.set(key, value);
56 } 56 }
57 57
58 XHRReplayData::XHRReplayData(const String &method, const KURL& url, bool async, PassRefPtr<FormData> formData, bool includeCredentials) 58 XHRReplayData::XHRReplayData(const AtomicString& method, const KURL& url, bool a sync, PassRefPtr<FormData> formData, bool includeCredentials)
59 : m_method(method) 59 : m_method(method)
60 , m_url(url) 60 , m_url(url)
61 , m_async(async) 61 , m_async(async)
62 , m_formData(formData) 62 , m_formData(formData)
63 , m_includeCredentials(includeCredentials) 63 , m_includeCredentials(includeCredentials)
64 { 64 {
65 } 65 }
66 66
67 // ResourceData 67 // ResourceData
68 NetworkResourcesData::ResourceData::ResourceData(const String& requestId, const String& loaderId) 68 NetworkResourcesData::ResourceData::ResourceData(const String& requestId, const String& loaderId)
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 String requestId = m_requestIdsDeque.takeFirst(); 388 String requestId = m_requestIdsDeque.takeFirst();
389 ResourceData* resourceData = resourceDataForRequestId(requestId); 389 ResourceData* resourceData = resourceDataForRequestId(requestId);
390 if (resourceData) 390 if (resourceData)
391 m_contentSize -= resourceData->evictContent(); 391 m_contentSize -= resourceData->evictContent();
392 } 392 }
393 return true; 393 return true;
394 } 394 }
395 395
396 } // namespace WebCore 396 } // namespace WebCore
397 397
OLDNEW
« no previous file with comments | « Source/core/inspector/NetworkResourcesData.h ('k') | Source/core/loader/FrameLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698