| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 #include "core/inspector/InspectorResourceContentLoader.h" | 6 #include "core/inspector/InspectorResourceContentLoader.h" |
| 7 | 7 |
| 8 #include "core/css/CSSStyleSheet.h" | 8 #include "core/css/CSSStyleSheet.h" |
| 9 #include "core/css/CSSStyleSheetResource.h" |
| 9 #include "core/css/StyleSheetContents.h" | 10 #include "core/css/StyleSheetContents.h" |
| 10 #include "core/dom/Document.h" | 11 #include "core/dom/Document.h" |
| 11 #include "core/fetch/CSSStyleSheetResource.h" | 12 #include "core/dom/StyleSheetResourceClient.h" |
| 12 #include "core/fetch/FetchInitiatorTypeNames.h" | 13 #include "core/fetch/FetchInitiatorTypeNames.h" |
| 13 #include "core/fetch/RawResource.h" | 14 #include "core/fetch/RawResource.h" |
| 14 #include "core/fetch/Resource.h" | 15 #include "core/fetch/Resource.h" |
| 15 #include "core/fetch/ResourceFetcher.h" | 16 #include "core/fetch/ResourceFetcher.h" |
| 16 #include "core/fetch/ResourcePtr.h" | 17 #include "core/fetch/ResourcePtr.h" |
| 17 #include "core/fetch/StyleSheetResourceClient.h" | |
| 18 #include "core/frame/LocalFrame.h" | 18 #include "core/frame/LocalFrame.h" |
| 19 #include "core/html/VoidCallback.h" | 19 #include "core/html/VoidCallback.h" |
| 20 #include "core/inspector/InspectorCSSAgent.h" | 20 #include "core/inspector/InspectorCSSAgent.h" |
| 21 #include "core/inspector/InspectorPageAgent.h" | 21 #include "core/inspector/InspectorPageAgent.h" |
| 22 #include "core/page/Page.h" | 22 #include "core/page/Page.h" |
| 23 #include "public/platform/WebURLRequest.h" | 23 #include "public/platform/WebURLRequest.h" |
| 24 | 24 |
| 25 namespace blink { | 25 namespace blink { |
| 26 | 26 |
| 27 class InspectorResourceContentLoader::ResourceClient final : private RawResource
Client, private StyleSheetResourceClient { | 27 class InspectorResourceContentLoader::ResourceClient final : private RawResource
Client, private StyleSheetResourceClient { |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 callback->handleEvent(); | 195 callback->handleEvent(); |
| 196 } | 196 } |
| 197 | 197 |
| 198 void InspectorResourceContentLoader::resourceFinished(ResourceClient* client) | 198 void InspectorResourceContentLoader::resourceFinished(ResourceClient* client) |
| 199 { | 199 { |
| 200 m_pendingResourceClients.remove(client); | 200 m_pendingResourceClients.remove(client); |
| 201 checkDone(); | 201 checkDone(); |
| 202 } | 202 } |
| 203 | 203 |
| 204 } // namespace blink | 204 } // namespace blink |
| OLD | NEW |