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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 if (!cachedResource) { | 340 if (!cachedResource) { |
341 Vector<Document*> allImports = InspectorPageAgent::importsForFrame(frame
); | 341 Vector<Document*> allImports = InspectorPageAgent::importsForFrame(frame
); |
342 for (Vector<Document*>::const_iterator it = allImports.begin(); it != al
lImports.end(); ++it) { | 342 for (Vector<Document*>::const_iterator it = allImports.begin(); it != al
lImports.end(); ++it) { |
343 Document* import = *it; | 343 Document* import = *it; |
344 cachedResource = import->fetcher()->cachedResource(url); | 344 cachedResource = import->fetcher()->cachedResource(url); |
345 if (cachedResource) | 345 if (cachedResource) |
346 break; | 346 break; |
347 } | 347 } |
348 } | 348 } |
349 if (!cachedResource) | 349 if (!cachedResource) |
350 cachedResource = memoryCache()->resourceForURL(url); | 350 cachedResource = memoryCache()->resourceForURL(url, document->fetcher()-
>getCacheIdentifier()); |
351 return cachedResource; | 351 return cachedResource; |
352 } | 352 } |
353 | 353 |
354 TypeBuilder::Page::ResourceType::Enum InspectorPageAgent::resourceTypeJson(Inspe
ctorPageAgent::ResourceType resourceType) | 354 TypeBuilder::Page::ResourceType::Enum InspectorPageAgent::resourceTypeJson(Inspe
ctorPageAgent::ResourceType resourceType) |
355 { | 355 { |
356 switch (resourceType) { | 356 switch (resourceType) { |
357 case DocumentResource: | 357 case DocumentResource: |
358 return TypeBuilder::Page::ResourceType::Document; | 358 return TypeBuilder::Page::ResourceType::Document; |
359 case FontResource: | 359 case FontResource: |
360 return TypeBuilder::Page::ResourceType::Font; | 360 return TypeBuilder::Page::ResourceType::Font; |
(...skipping 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1498 void InspectorPageAgent::trace(Visitor* visitor) | 1498 void InspectorPageAgent::trace(Visitor* visitor) |
1499 { | 1499 { |
1500 visitor->trace(m_page); | 1500 visitor->trace(m_page); |
1501 visitor->trace(m_injectedScriptManager); | 1501 visitor->trace(m_injectedScriptManager); |
1502 visitor->trace(m_inspectorResourceContentLoader); | 1502 visitor->trace(m_inspectorResourceContentLoader); |
1503 InspectorBaseAgent::trace(visitor); | 1503 InspectorBaseAgent::trace(visitor); |
1504 } | 1504 } |
1505 | 1505 |
1506 } // namespace blink | 1506 } // namespace blink |
1507 | 1507 |
OLD | NEW |