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

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorResourceAgent.cpp

Issue 1835773002: Rename AtomicString::string() to AtomicString::getString(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Windows Created 4 years, 9 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
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 * * 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 return false; 116 return false;
117 pos += part.length(); 117 pos += part.length();
118 } 118 }
119 return true; 119 return true;
120 } 120 }
121 121
122 static PassOwnPtr<protocol::Network::Headers> buildObjectForHeaders(const HTTPHe aderMap& headers) 122 static PassOwnPtr<protocol::Network::Headers> buildObjectForHeaders(const HTTPHe aderMap& headers)
123 { 123 {
124 OwnPtr<protocol::DictionaryValue> headersObject = protocol::DictionaryValue: :create(); 124 OwnPtr<protocol::DictionaryValue> headersObject = protocol::DictionaryValue: :create();
125 for (const auto& header : headers) 125 for (const auto& header : headers)
126 headersObject->setString(header.key.string(), header.value); 126 headersObject->setString(header.key.getString(), header.value);
127 protocol::ErrorSupport errors; 127 protocol::ErrorSupport errors;
128 return protocol::Network::Headers::parse(headersObject.get(), &errors); 128 return protocol::Network::Headers::parse(headersObject.get(), &errors);
129 } 129 }
130 130
131 class InspectorFileReaderLoaderClient final : public FileReaderLoaderClient { 131 class InspectorFileReaderLoaderClient final : public FileReaderLoaderClient {
132 WTF_MAKE_NONCOPYABLE(InspectorFileReaderLoaderClient); 132 WTF_MAKE_NONCOPYABLE(InspectorFileReaderLoaderClient);
133 public: 133 public:
134 InspectorFileReaderLoaderClient(PassRefPtr<BlobDataHandle> blob, PassOwnPtr< TextResourceDecoder> decoder, PassOwnPtr<GetResponseBodyCallback> callback) 134 InspectorFileReaderLoaderClient(PassRefPtr<BlobDataHandle> blob, PassOwnPtr< TextResourceDecoder> decoder, PassOwnPtr<GetResponseBodyCallback> callback)
135 : m_blob(blob) 135 : m_blob(blob)
136 , m_decoder(decoder) 136 , m_decoder(decoder)
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 ASSERT(!m_pendingRequest); 741 ASSERT(!m_pendingRequest);
742 m_pendingRequest = eventSource; 742 m_pendingRequest = eventSource;
743 m_pendingRequestType = InspectorPageAgent::EventSourceResource; 743 m_pendingRequestType = InspectorPageAgent::EventSourceResource;
744 } 744 }
745 745
746 void InspectorResourceAgent::willDispatchEventSourceEvent(ThreadableLoaderClient * eventSource, const AtomicString& eventName, const AtomicString& eventId, const String& data) 746 void InspectorResourceAgent::willDispatchEventSourceEvent(ThreadableLoaderClient * eventSource, const AtomicString& eventName, const AtomicString& eventId, const String& data)
747 { 747 {
748 ThreadableLoaderClientRequestIdMap::iterator it = m_knownRequestIdMap.find(e ventSource); 748 ThreadableLoaderClientRequestIdMap::iterator it = m_knownRequestIdMap.find(e ventSource);
749 if (it == m_knownRequestIdMap.end()) 749 if (it == m_knownRequestIdMap.end())
750 return; 750 return;
751 frontend()->eventSourceMessageReceived(IdentifiersFactory::requestId(it->val ue), monotonicallyIncreasingTime(), eventName.string(), eventId.string(), data); 751 frontend()->eventSourceMessageReceived(IdentifiersFactory::requestId(it->val ue), monotonicallyIncreasingTime(), eventName.getString(), eventId.getString(), data);
752 } 752 }
753 753
754 void InspectorResourceAgent::didFinishEventSourceRequest(ThreadableLoaderClient* eventSource) 754 void InspectorResourceAgent::didFinishEventSourceRequest(ThreadableLoaderClient* eventSource)
755 { 755 {
756 m_knownRequestIdMap.remove(eventSource); 756 m_knownRequestIdMap.remove(eventSource);
757 m_pendingRequest = nullptr; 757 m_pendingRequest = nullptr;
758 } 758 }
759 759
760 void InspectorResourceAgent::removedResourceFromMemoryCache(Resource* cachedReso urce) 760 void InspectorResourceAgent::removedResourceFromMemoryCache(Resource* cachedReso urce)
761 { 761 {
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
1127 , m_removeFinishedReplayXHRTimer(this, &InspectorResourceAgent::removeFinish edReplayXHRFired) 1127 , m_removeFinishedReplayXHRTimer(this, &InspectorResourceAgent::removeFinish edReplayXHRFired)
1128 { 1128 {
1129 } 1129 }
1130 1130
1131 bool InspectorResourceAgent::shouldForceCORSPreflight() 1131 bool InspectorResourceAgent::shouldForceCORSPreflight()
1132 { 1132 {
1133 return m_state->booleanProperty(ResourceAgentState::cacheDisabled, false); 1133 return m_state->booleanProperty(ResourceAgentState::cacheDisabled, false);
1134 } 1134 }
1135 1135
1136 } // namespace blink 1136 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698