| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 } | 386 } |
| 387 | 387 |
| 388 static PassOwnPtr<TracedValue> loadResourceTraceData(unsigned long identifier, c
onst KURL& url, int priority) | 388 static PassOwnPtr<TracedValue> loadResourceTraceData(unsigned long identifier, c
onst KURL& url, int priority) |
| 389 { | 389 { |
| 390 String requestId = IdentifiersFactory::requestId(identifier); | 390 String requestId = IdentifiersFactory::requestId(identifier); |
| 391 | 391 |
| 392 OwnPtr<TracedValue> value = TracedValue::create(); | 392 OwnPtr<TracedValue> value = TracedValue::create(); |
| 393 value->setString("requestId", requestId); | 393 value->setString("requestId", requestId); |
| 394 value->setString("url", url.getString()); | 394 value->setString("url", url.getString()); |
| 395 value->setInteger("priority", priority); | 395 value->setInteger("priority", priority); |
| 396 return value.release(); | 396 return value; |
| 397 } | 397 } |
| 398 | 398 |
| 399 void FrameFetchContext::willStartLoadingResource(Resource* resource, ResourceReq
uest& request) | 399 void FrameFetchContext::willStartLoadingResource(Resource* resource, ResourceReq
uest& request) |
| 400 { | 400 { |
| 401 TRACE_EVENT_ASYNC_BEGIN1("blink.net", "Resource", resource, "data", loadReso
urceTraceData(resource->identifier(), resource->url(), resource->resourceRequest
().priority())); | 401 TRACE_EVENT_ASYNC_BEGIN1("blink.net", "Resource", resource, "data", loadReso
urceTraceData(resource->identifier(), resource->url(), resource->resourceRequest
().priority())); |
| 402 | 402 |
| 403 if (!m_documentLoader) | 403 if (!m_documentLoader) |
| 404 return; | 404 return; |
| 405 if (resource->getType() == Resource::MainResource) | 405 if (resource->getType() == Resource::MainResource) |
| 406 m_documentLoader->applicationCacheHost()->willStartLoadingMainResource(r
equest); | 406 m_documentLoader->applicationCacheHost()->willStartLoadingMainResource(r
equest); |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 816 } | 816 } |
| 817 | 817 |
| 818 DEFINE_TRACE(FrameFetchContext) | 818 DEFINE_TRACE(FrameFetchContext) |
| 819 { | 819 { |
| 820 visitor->trace(m_document); | 820 visitor->trace(m_document); |
| 821 visitor->trace(m_documentLoader); | 821 visitor->trace(m_documentLoader); |
| 822 FetchContext::trace(visitor); | 822 FetchContext::trace(visitor); |
| 823 } | 823 } |
| 824 | 824 |
| 825 } // namespace blink | 825 } // namespace blink |
| OLD | NEW |