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

Side by Side Diff: third_party/WebKit/Source/core/loader/resource/CSSStyleSheetResource.h

Issue 2807533003: [WIP2] off-main-thread loading
Patch Set: call set_is_secure_context in EmbeddedSharedWorkerStub::CreateWorkerFetchContext() Created 3 years, 7 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) 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) 2006 Samuel Weinig (sam.weinig@gmail.com) 4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
5 Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 5 Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 void AppendData(const char* data, size_t length) override; 59 void AppendData(const char* data, size_t length) override;
60 60
61 private: 61 private:
62 class CSSStyleSheetResourceFactory : public ResourceFactory { 62 class CSSStyleSheetResourceFactory : public ResourceFactory {
63 public: 63 public:
64 CSSStyleSheetResourceFactory() 64 CSSStyleSheetResourceFactory()
65 : ResourceFactory(Resource::kCSSStyleSheet) {} 65 : ResourceFactory(Resource::kCSSStyleSheet) {}
66 66
67 Resource* Create(const ResourceRequest& request, 67 Resource* Create(const ResourceRequest& request,
68 const ResourceLoaderOptions& options, 68 const ResourceLoaderOptions& options,
69 const String& charset) const override { 69 const String& charset,
70 FetchContext*) const override {
70 return new CSSStyleSheetResource(request, options, charset); 71 return new CSSStyleSheetResource(request, options, charset);
71 } 72 }
72 }; 73 };
73 CSSStyleSheetResource(const ResourceRequest&, 74 CSSStyleSheetResource(const ResourceRequest&,
74 const ResourceLoaderOptions&, 75 const ResourceLoaderOptions&,
75 const String& charset); 76 const String& charset);
76 77
77 bool CanUseSheet(MIMETypeCheck) const; 78 bool CanUseSheet(MIMETypeCheck) const;
78 void CheckNotify() override; 79 void CheckNotify() override;
79 80
(...skipping 11 matching lines...) Expand all
91 Member<StyleSheetContents> parsed_style_sheet_cache_; 92 Member<StyleSheetContents> parsed_style_sheet_cache_;
92 93
93 bool did_notify_first_data_; 94 bool did_notify_first_data_;
94 }; 95 };
95 96
96 DEFINE_RESOURCE_TYPE_CASTS(CSSStyleSheet); 97 DEFINE_RESOURCE_TYPE_CASTS(CSSStyleSheet);
97 98
98 } // namespace blink 99 } // namespace blink
99 100
100 #endif 101 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698