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

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

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 UseCounter::count(document, 125 UseCounter::count(document,
126 UseCounter::ApplicationCacheManifestSelectSecureOrigin); 126 UseCounter::ApplicationCacheManifestSelectSecureOrigin);
127 UseCounter::countCrossOriginIframe( 127 UseCounter::countCrossOriginIframe(
128 *document, UseCounter::ApplicationCacheManifestSelectSecureOrigin); 128 *document, UseCounter::ApplicationCacheManifestSelectSecureOrigin);
129 } else { 129 } else {
130 Deprecation::countDeprecation( 130 Deprecation::countDeprecation(
131 document, UseCounter::ApplicationCacheManifestSelectInsecureOrigin); 131 document, UseCounter::ApplicationCacheManifestSelectInsecureOrigin);
132 Deprecation::countDeprecationCrossOriginIframe( 132 Deprecation::countDeprecationCrossOriginIframe(
133 *document, UseCounter::ApplicationCacheManifestSelectInsecureOrigin); 133 *document, UseCounter::ApplicationCacheManifestSelectInsecureOrigin);
134 HostsUsingFeatures::countAnyWorld( 134 HostsUsingFeatures::countAnyWorld(
135 *document, HostsUsingFeatures::Feature:: 135 *document,
136 ApplicationCacheManifestSelectInsecureHost); 136 HostsUsingFeatures::Feature::
137 ApplicationCacheManifestSelectInsecureHost);
137 } 138 }
138 if (m_host && !m_host->selectCacheWithManifest(manifestURL)) { 139 if (m_host && !m_host->selectCacheWithManifest(manifestURL)) {
139 // It's a foreign entry, restart the current navigation from the top of the 140 // It's a foreign entry, restart the current navigation from the top of the
140 // navigation algorithm. The navigation will not result in the same resource 141 // navigation algorithm. The navigation will not result in the same resource
141 // being loaded, because "foreign" entries are never picked during 142 // being loaded, because "foreign" entries are never picked during
142 // navigation. see ApplicationCacheGroup::selectCache() 143 // navigation. see ApplicationCacheGroup::selectCache()
143 frame->navigate(*document, document->url(), true, UserGestureStatus::None); 144 frame->navigate(*document, document->url(), true, UserGestureStatus::None);
144 } 145 }
145 } 146 }
146 147
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 notifyApplicationCache(kErrorEvent, 0, 0, reason, url.string(), status, 336 notifyApplicationCache(kErrorEvent, 0, 0, reason, url.string(), status,
336 message); 337 message);
337 } 338 }
338 339
339 DEFINE_TRACE(ApplicationCacheHost) { 340 DEFINE_TRACE(ApplicationCacheHost) {
340 visitor->trace(m_domApplicationCache); 341 visitor->trace(m_domApplicationCache);
341 visitor->trace(m_documentLoader); 342 visitor->trace(m_documentLoader);
342 } 343 }
343 344
344 } // namespace blink 345 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698