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

Side by Side Diff: Source/web/ApplicationCacheHost.cpp

Issue 23702040: Send synchronous loads through the cache. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/xml/parser/XMLDocumentParser.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 143
144 void ApplicationCacheHost::willStartLoadingResource(ResourceRequest& request) 144 void ApplicationCacheHost::willStartLoadingResource(ResourceRequest& request)
145 { 145 {
146 // FIXME: look into the purpose of the unused KURL& originalURL parameter 146 // FIXME: look into the purpose of the unused KURL& originalURL parameter
147 if (m_internal) { 147 if (m_internal) {
148 WrappedResourceRequest wrapped(request); 148 WrappedResourceRequest wrapped(request);
149 m_internal->m_outerHost->willStartSubResourceRequest(wrapped); 149 m_internal->m_outerHost->willStartSubResourceRequest(wrapped);
150 } 150 }
151 } 151 }
152 152
153 void ApplicationCacheHost::willStartLoadingSynchronously(ResourceRequest& reques t)
154 {
155 if (m_internal) {
156 WrappedResourceRequest wrapped(request);
157 m_internal->m_outerHost->willStartSubResourceRequest(wrapped);
158 }
159 }
160
161 void ApplicationCacheHost::setApplicationCache(ApplicationCache* domApplicationC ache) 153 void ApplicationCacheHost::setApplicationCache(ApplicationCache* domApplicationC ache)
162 { 154 {
163 ASSERT(!m_domApplicationCache || !domApplicationCache); 155 ASSERT(!m_domApplicationCache || !domApplicationCache);
164 m_domApplicationCache = domApplicationCache; 156 m_domApplicationCache = domApplicationCache;
165 } 157 }
166 158
167 void ApplicationCacheHost::notifyApplicationCache(EventID id, int total, int don e) 159 void ApplicationCacheHost::notifyApplicationCache(EventID id, int total, int don e)
168 { 160 {
169 if (id != PROGRESS_EVENT) 161 if (id != PROGRESS_EVENT)
170 InspectorInstrumentation::updateApplicationCacheStatus(m_documentLoader- >frame()); 162 InspectorInstrumentation::updateApplicationCacheStatus(m_documentLoader- >frame());
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 } 242 }
251 243
252 bool ApplicationCacheHost::isApplicationCacheEnabled() 244 bool ApplicationCacheHost::isApplicationCacheEnabled()
253 { 245 {
254 ASSERT(m_documentLoader->frame()); 246 ASSERT(m_documentLoader->frame());
255 return m_documentLoader->frame()->settings() 247 return m_documentLoader->frame()->settings()
256 && m_documentLoader->frame()->settings()->offlineWebApplicationCacheE nabled(); 248 && m_documentLoader->frame()->settings()->offlineWebApplicationCacheE nabled();
257 } 249 }
258 250
259 } // namespace WebCore 251 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/xml/parser/XMLDocumentParser.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698