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

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 class in core/ 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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 } 817 }
817 818
818 DEFINE_TRACE(FrameFetchContext) 819 DEFINE_TRACE(FrameFetchContext)
819 { 820 {
820 visitor->trace(m_document); 821 visitor->trace(m_document);
821 visitor->trace(m_documentLoader); 822 visitor->trace(m_documentLoader);
822 FetchContext::trace(visitor); 823 FetchContext::trace(visitor);
823 } 824 }
824 825
825 } // namespace blink 826 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698