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

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

Issue 2727633006: DevTools: Rename InspectorInstrumentation:: namespace into probe:: (Closed)
Patch Set: Created 3 years, 9 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) 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 191
192 void ApplicationCacheHost::notifyApplicationCache( 192 void ApplicationCacheHost::notifyApplicationCache(
193 EventID id, 193 EventID id,
194 int progressTotal, 194 int progressTotal,
195 int progressDone, 195 int progressDone,
196 WebApplicationCacheHost::ErrorReason errorReason, 196 WebApplicationCacheHost::ErrorReason errorReason,
197 const String& errorURL, 197 const String& errorURL,
198 int errorStatus, 198 int errorStatus,
199 const String& errorMessage) { 199 const String& errorMessage) {
200 if (id != kProgressEvent) { 200 if (id != kProgressEvent) {
201 InspectorInstrumentation::updateApplicationCacheStatus( 201 probe::updateApplicationCacheStatus(m_documentLoader->frame());
202 m_documentLoader->frame());
203 } 202 }
204 203
205 if (m_defersEvents) { 204 if (m_defersEvents) {
206 // Event dispatching is deferred until document.onload has fired. 205 // Event dispatching is deferred until document.onload has fired.
207 m_deferredEvents.push_back(DeferredEvent(id, progressTotal, progressDone, 206 m_deferredEvents.push_back(DeferredEvent(id, progressTotal, progressDone,
208 errorReason, errorURL, errorStatus, 207 errorReason, errorURL, errorStatus,
209 errorMessage)); 208 errorMessage));
210 return; 209 return;
211 } 210 }
212 dispatchDOMEvent(id, progressTotal, progressDone, errorReason, errorURL, 211 dispatchDOMEvent(id, progressTotal, progressDone, errorReason, errorURL,
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 return m_host ? static_cast<Status>(m_host->getStatus()) : kUncached; 280 return m_host ? static_cast<Status>(m_host->getStatus()) : kUncached;
282 } 281 }
283 282
284 bool ApplicationCacheHost::update() { 283 bool ApplicationCacheHost::update() {
285 return m_host ? m_host->startUpdate() : false; 284 return m_host ? m_host->startUpdate() : false;
286 } 285 }
287 286
288 bool ApplicationCacheHost::swapCache() { 287 bool ApplicationCacheHost::swapCache() {
289 bool success = m_host ? m_host->swapCache() : false; 288 bool success = m_host ? m_host->swapCache() : false;
290 if (success) { 289 if (success) {
291 InspectorInstrumentation::updateApplicationCacheStatus( 290 probe::updateApplicationCacheStatus(m_documentLoader->frame());
292 m_documentLoader->frame());
293 } 291 }
294 return success; 292 return success;
295 } 293 }
296 294
297 void ApplicationCacheHost::abort() { 295 void ApplicationCacheHost::abort() {
298 if (m_host) 296 if (m_host)
299 m_host->abort(); 297 m_host->abort();
300 } 298 }
301 299
302 bool ApplicationCacheHost::isApplicationCacheEnabled() { 300 bool ApplicationCacheHost::isApplicationCacheEnabled() {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 notifyApplicationCache(kErrorEvent, 0, 0, reason, url.string(), status, 333 notifyApplicationCache(kErrorEvent, 0, 0, reason, url.string(), status,
336 message); 334 message);
337 } 335 }
338 336
339 DEFINE_TRACE(ApplicationCacheHost) { 337 DEFINE_TRACE(ApplicationCacheHost) {
340 visitor->trace(m_domApplicationCache); 338 visitor->trace(m_domApplicationCache);
341 visitor->trace(m_documentLoader); 339 visitor->trace(m_documentLoader);
342 } 340 }
343 341
344 } // namespace blink 342 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/ProgressTracker.cpp ('k') | third_party/WebKit/Source/core/page/ChromeClient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698