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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 m_inspectedFrames->root()->reload(reloadType, | 456 m_inspectedFrames->root()->reload(reloadType, |
457 ClientRedirectPolicy::NotClientRedirect); | 457 ClientRedirectPolicy::NotClientRedirect); |
458 return Response::OK(); | 458 return Response::OK(); |
459 } | 459 } |
460 | 460 |
461 Response InspectorPageAgent::navigate(const String& url, String* outFrameId) { | 461 Response InspectorPageAgent::navigate(const String& url, String* outFrameId) { |
462 *outFrameId = frameId(m_inspectedFrames->root()); | 462 *outFrameId = frameId(m_inspectedFrames->root()); |
463 return Response::OK(); | 463 return Response::OK(); |
464 } | 464 } |
465 | 465 |
| 466 Response InspectorPageAgent::stopLoading() { |
| 467 return Response::OK(); |
| 468 } |
| 469 |
466 static void cachedResourcesForDocument(Document* document, | 470 static void cachedResourcesForDocument(Document* document, |
467 HeapVector<Member<Resource>>& result, | 471 HeapVector<Member<Resource>>& result, |
468 bool skipXHRs) { | 472 bool skipXHRs) { |
469 const ResourceFetcher::DocumentResourceMap& allResources = | 473 const ResourceFetcher::DocumentResourceMap& allResources = |
470 document->fetcher()->allResources(); | 474 document->fetcher()->allResources(); |
471 for (const auto& resource : allResources) { | 475 for (const auto& resource : allResources) { |
472 Resource* cachedResource = resource.value.get(); | 476 Resource* cachedResource = resource.value.get(); |
473 if (!cachedResource) | 477 if (!cachedResource) |
474 continue; | 478 continue; |
475 | 479 |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
881 return Response::OK(); | 885 return Response::OK(); |
882 } | 886 } |
883 | 887 |
884 DEFINE_TRACE(InspectorPageAgent) { | 888 DEFINE_TRACE(InspectorPageAgent) { |
885 visitor->trace(m_inspectedFrames); | 889 visitor->trace(m_inspectedFrames); |
886 visitor->trace(m_inspectorResourceContentLoader); | 890 visitor->trace(m_inspectorResourceContentLoader); |
887 InspectorBaseAgent::trace(visitor); | 891 InspectorBaseAgent::trace(visitor); |
888 } | 892 } |
889 | 893 |
890 } // namespace blink | 894 } // namespace blink |
OLD | NEW |