Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(274)

Side by Side Diff: third_party/WebKit/Source/core/loader/FrameFetchContext.cpp

Issue 1860743002: Add a flag to change when android's progress bar completes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: enum classes, et al. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
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.release();
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 frame()->loader().progress().willStartLoading(resource);
402 403
403 if (!m_documentLoader) 404 if (!m_documentLoader)
404 return; 405 return;
405 if (resource->getType() == Resource::MainResource) 406 if (resource->getType() == Resource::MainResource)
406 m_documentLoader->applicationCacheHost()->willStartLoadingMainResource(r equest); 407 m_documentLoader->applicationCacheHost()->willStartLoadingMainResource(r equest);
407 else 408 else
408 m_documentLoader->applicationCacheHost()->willStartLoadingResource(reque st); 409 m_documentLoader->applicationCacheHost()->willStartLoadingResource(reque st);
409 } 410 }
410 411
411 void FrameFetchContext::didLoadResource(Resource* resource) 412 void FrameFetchContext::didLoadResource(Resource* resource)
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
814 } 815 }
815 816
816 DEFINE_TRACE(FrameFetchContext) 817 DEFINE_TRACE(FrameFetchContext)
817 { 818 {
818 visitor->trace(m_document); 819 visitor->trace(m_document);
819 visitor->trace(m_documentLoader); 820 visitor->trace(m_documentLoader);
820 FetchContext::trace(visitor); 821 FetchContext::trace(visitor);
821 } 822 }
822 823
823 } // namespace blink 824 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698