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 * * 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 | 148 |
149 class InspectorFileReaderLoaderClient final : public FileReaderLoaderClient { | 149 class InspectorFileReaderLoaderClient final : public FileReaderLoaderClient { |
150 WTF_MAKE_NONCOPYABLE(InspectorFileReaderLoaderClient); | 150 WTF_MAKE_NONCOPYABLE(InspectorFileReaderLoaderClient); |
151 | 151 |
152 public: | 152 public: |
153 InspectorFileReaderLoaderClient( | 153 InspectorFileReaderLoaderClient( |
154 PassRefPtr<BlobDataHandle> blob, | 154 PassRefPtr<BlobDataHandle> blob, |
155 const String& mimeType, | 155 const String& mimeType, |
156 const String& textEncodingName, | 156 const String& textEncodingName, |
157 std::unique_ptr<GetResponseBodyCallback> callback) | 157 std::unique_ptr<GetResponseBodyCallback> callback) |
158 : m_blob(blob), | 158 : m_blob(std::move(blob)), |
159 m_mimeType(mimeType), | 159 m_mimeType(mimeType), |
160 m_textEncodingName(textEncodingName), | 160 m_textEncodingName(textEncodingName), |
161 m_callback(std::move(callback)) { | 161 m_callback(std::move(callback)) { |
162 m_loader = FileReaderLoader::create(FileReaderLoader::ReadByClient, this); | 162 m_loader = FileReaderLoader::create(FileReaderLoader::ReadByClient, this); |
163 } | 163 } |
164 | 164 |
165 ~InspectorFileReaderLoaderClient() override {} | 165 ~InspectorFileReaderLoaderClient() override {} |
166 | 166 |
167 void start(ExecutionContext* executionContext) { | 167 void start(ExecutionContext* executionContext) { |
168 m_rawData = SharedBuffer::create(); | 168 m_rawData = SharedBuffer::create(); |
(...skipping 1377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1546 TaskRunnerHelper::get(TaskType::UnspecedLoading, | 1546 TaskRunnerHelper::get(TaskType::UnspecedLoading, |
1547 inspectedFrames->root()), | 1547 inspectedFrames->root()), |
1548 this, | 1548 this, |
1549 &InspectorNetworkAgent::removeFinishedReplayXHRFired) {} | 1549 &InspectorNetworkAgent::removeFinishedReplayXHRFired) {} |
1550 | 1550 |
1551 bool InspectorNetworkAgent::shouldForceCORSPreflight() { | 1551 bool InspectorNetworkAgent::shouldForceCORSPreflight() { |
1552 return m_state->booleanProperty(NetworkAgentState::cacheDisabled, false); | 1552 return m_state->booleanProperty(NetworkAgentState::cacheDisabled, false); |
1553 } | 1553 } |
1554 | 1554 |
1555 } // namespace blink | 1555 } // namespace blink |
OLD | NEW |