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

Side by Side Diff: Source/core/fetch/ResourceFetcher.h

Issue 47923008: Block execution of failed 'crossorigin' <script>s. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Minimize code changes + remove redundant leftovers. Created 7 years, 1 month 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) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de)
3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> 3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org>
4 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 4 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
5 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ 5 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/
6 6
7 This library is free software; you can redistribute it and/or 7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public 8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either 9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version. 10 version 2 of the License, or (at your option) any later version.
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 void garbageCollectDocumentResources(); 123 void garbageCollectDocumentResources();
124 124
125 int requestCount() const { return m_requestCount; } 125 int requestCount() const { return m_requestCount; }
126 126
127 bool isPreloaded(const String& urlString) const; 127 bool isPreloaded(const String& urlString) const;
128 void clearPreloads(); 128 void clearPreloads();
129 void clearPendingPreloads(); 129 void clearPendingPreloads();
130 void preload(Resource::Type, FetchRequest&, const String& charset); 130 void preload(Resource::Type, FetchRequest&, const String& charset);
131 void checkForPendingPreloads(); 131 void checkForPendingPreloads();
132 void printPreloadStats(); 132 void printPreloadStats();
133 bool canAccess(Resource*); 133 bool canAccess(Resource*, bool isPotentiallyCORSEnabled);
134 134
135 void setDefersLoading(bool); 135 void setDefersLoading(bool);
136 void stopFetching(); 136 void stopFetching();
137 bool isFetching() const; 137 bool isFetching() const;
138 138
139 // ResourceLoaderHost 139 // ResourceLoaderHost
140 virtual void incrementRequestCount(const Resource*) OVERRIDE; 140 virtual void incrementRequestCount(const Resource*) OVERRIDE;
141 virtual void decrementRequestCount(const Resource*) OVERRIDE; 141 virtual void decrementRequestCount(const Resource*) OVERRIDE;
142 virtual void didLoadResource(Resource*) OVERRIDE; 142 virtual void didLoadResource(Resource*) OVERRIDE;
143 virtual void redirectReceived(Resource*, const ResourceResponse&) OVERRIDE; 143 virtual void redirectReceived(Resource*, const ResourceResponse&) OVERRIDE;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 m_loader->m_allowStaleResources = m_previousState; 239 m_loader->m_allowStaleResources = m_previousState;
240 } 240 }
241 private: 241 private:
242 ResourceFetcher* m_loader; 242 ResourceFetcher* m_loader;
243 bool m_previousState; 243 bool m_previousState;
244 }; 244 };
245 245
246 } // namespace WebCore 246 } // namespace WebCore
247 247
248 #endif 248 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698