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

Unified Diff: third_party/WebKit/Source/core/fetch/StyleSheetResourceClient.h

Issue 1976463003: Preload scan external CSS for @import (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase + minor style tweaks Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/fetch/StyleSheetResourceClient.h
diff --git a/third_party/WebKit/Source/core/fetch/StyleSheetResourceClient.h b/third_party/WebKit/Source/core/fetch/StyleSheetResourceClient.h
index a95d456f46acb7c712e3ee7f5c35ad6619123295..ec16b9d3cca1f1dc3e1690ee20df2d2c551b97b3 100644
--- a/third_party/WebKit/Source/core/fetch/StyleSheetResourceClient.h
+++ b/third_party/WebKit/Source/core/fetch/StyleSheetResourceClient.h
@@ -26,6 +26,7 @@
#ifndef StyleSheetResourceClient_h
#define StyleSheetResourceClient_h
+#include "core/CoreExport.h"
#include "core/fetch/ResourceClient.h"
#include "platform/weborigin/KURL.h"
#include "wtf/Forward.h"
@@ -33,7 +34,7 @@
namespace blink {
class CSSStyleSheetResource;
-class StyleSheetResourceClient : public GarbageCollectedMixin, public ResourceClient {
+class CORE_EXPORT StyleSheetResourceClient : public GarbageCollectedMixin, public ResourceClient {
public:
~StyleSheetResourceClient() override {}
static bool isExpectedType(ResourceClient* client) { return client->getResourceClientType() == StyleSheetType; }
@@ -41,6 +42,11 @@ public:
virtual void setCSSStyleSheet(const String& /* href */, const KURL& /* baseURL */, const String& /* charset */, const CSSStyleSheetResource*) {}
virtual void setXSLStyleSheet(const String& /* href */, const KURL& /* baseURL */, const String& /* sheet */) {}
+ // This gets called on the very first appendData call for the
+ // CSSStyleSheetResource. Note this is not called for StyleSheetResources
+ // other than CSSStyleSheetResources.
+ virtual void didAppendFirstData(const CSSStyleSheetResource*) {}
+
DEFINE_INLINE_VIRTUAL_TRACE() {}
};
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ResourceOwner.h ('k') | third_party/WebKit/Source/core/frame/Settings.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698