diff options
author | samuong <samuong@chromium.org> | 2016-01-15 16:50:27 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-16 00:51:33 +0000 |
commit | 9c44829b387dee90ccb64b1dccebce206bb2aae0 (patch) | |
tree | 4ea51f5d3a7775911b42554244599c0f400da23b /third_party/WebKit/Source/core/loader/LinkPreloadResourceClients.h | |
parent | cb3a909ff4878d3f491c881b1913e85e94308d64 (diff) | |
download | chromium_src-9c44829b387dee90ccb64b1dccebce206bb2aae0.zip chromium_src-9c44829b387dee90ccb64b1dccebce206bb2aae0.tar.gz chromium_src-9c44829b387dee90ccb64b1dccebce206bb2aae0.tar.bz2 |
Revert of Add <link rel=preload> onload support for scripts and styles (patchset #11 id:200001 of https://codereview.chromium.org/1577073005/ )
Reason for revert:
it broke the compile step on the WebKit Linux Oilpan Builder: http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20Oilpan%20Builder/builds/451
Original issue's description:
> Add <link rel=preload> onload support for scripts and styles
>
> This CL adds onload support for <link rel=preload> for scripts and styles.
>
> Support for other resource types will be added in a followup CL.
>
> BUG=552289
>
> Committed: https://crrev.com/f85424718ca7a8ea3f330141ee68b717ae02f2f0
> Cr-Commit-Position: refs/heads/master@{#369892}
TBR=japhet@chromium.org,yoav@yoav.ws
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=552289
Review URL: https://codereview.chromium.org/1595793002
Cr-Commit-Position: refs/heads/master@{#369897}
Diffstat (limited to 'third_party/WebKit/Source/core/loader/LinkPreloadResourceClients.h')
-rw-r--r-- | third_party/WebKit/Source/core/loader/LinkPreloadResourceClients.h | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/third_party/WebKit/Source/core/loader/LinkPreloadResourceClients.h b/third_party/WebKit/Source/core/loader/LinkPreloadResourceClients.h deleted file mode 100644 index 187f06c..0000000 --- a/third_party/WebKit/Source/core/loader/LinkPreloadResourceClients.h +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright 2016 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef LinkPreloadResourceClients_h -#define LinkPreloadResourceClients_h - -#include "core/fetch/CSSStyleSheetResource.h" -#include "core/fetch/FontResource.h" -#include "core/fetch/ImageResourceClient.h" -#include "core/fetch/ResourceOwner.h" -#include "core/fetch/ScriptResource.h" -#include "core/fetch/StyleSheetResourceClient.h" - -namespace blink { - -class LinkLoader; - -class LinkPreloadResourceClient : public NoBaseWillBeGarbageCollectedFinalized<LinkPreloadResourceClient> { -public: - virtual ~LinkPreloadResourceClient() { } - - void triggerEvents(const Resource*) const; - -protected: - LinkPreloadResourceClient(LinkLoader* loader) - : m_loader(loader) - { - ASSERT(loader); - } - -private: - LinkLoader* m_loader; -}; - -class LinkPreloadScriptResourceClient: public LinkPreloadResourceClient, public ResourceOwner<ScriptResource, ScriptResourceClient> { -public: - static PassOwnPtr<LinkPreloadScriptResourceClient> create(LinkLoader* loader, ScriptResource* resource) - { - return adoptPtr(new LinkPreloadScriptResourceClient(loader, resource)); - } - - virtual String debugName() const { return "LinkPreloadScript"; } - - void notifyFinished(Resource* resource) override - { - ASSERT(this->resource() == resource); - triggerEvents(resource); - } - -private: - LinkPreloadScriptResourceClient(LinkLoader* loader, ScriptResource* resource) - : LinkPreloadResourceClient(loader) - { - setResource(resource); - } -}; - -class LinkPreloadStyleResourceClient: public LinkPreloadResourceClient, public ResourceOwner<CSSStyleSheetResource, StyleSheetResourceClient> { -public: - static PassOwnPtr<LinkPreloadStyleResourceClient> create(LinkLoader* loader, CSSStyleSheetResource* resource) - { - return adoptPtr(new LinkPreloadStyleResourceClient(loader, resource)); - } - - virtual String debugName() const { return "LinkPreloadStyle"; } - - void setCSSStyleSheet(const String&, const KURL&, const String&, const CSSStyleSheetResource* resource) override - { - ASSERT(this->resource() == resource); - triggerEvents(static_cast<const Resource*>(resource)); - } - -private: - LinkPreloadStyleResourceClient(LinkLoader* loader, CSSStyleSheetResource* resource) - : LinkPreloadResourceClient(loader) - { - setResource(resource); - } -}; - -} - -#endif // LinkPreloadResourceClients_h |