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

Unified Diff: third_party/WebKit/Source/core/html/LinkResource.h

Issue 2553803003: Refactor HTMLLinkElement
Patch Set: a Created 4 years 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/html/LinkResource.h
diff --git a/third_party/WebKit/Source/core/html/LinkResource.h b/third_party/WebKit/Source/core/html/LinkResource.h
index 206ef6d40f2f7d177008e270013c0805ec69c715..80be79622a5734b809dbd8b15ca238d99b6a7d74 100644
--- a/third_party/WebKit/Source/core/html/LinkResource.h
+++ b/third_party/WebKit/Source/core/html/LinkResource.h
@@ -32,15 +32,11 @@
#define LinkResource_h
#include "core/CoreExport.h"
-#include "core/fetch/FetchRequest.h"
#include "platform/heap/Handle.h"
-#include "platform/weborigin/KURL.h"
-#include "wtf/text/WTFString.h"
namespace blink {
class HTMLLinkElement;
-class LocalFrame;
class CORE_EXPORT LinkResource
: public GarbageCollectedFinalized<LinkResource> {
@@ -52,9 +48,6 @@ class CORE_EXPORT LinkResource
explicit LinkResource(HTMLLinkElement*);
virtual ~LinkResource();
- bool shouldLoadResource() const;
- LocalFrame* loadingFrame() const;
-
virtual LinkResourceType type() const = 0;
virtual void process() = 0;
virtual void ownerRemoved() {}
@@ -67,23 +60,6 @@ class CORE_EXPORT LinkResource
Member<HTMLLinkElement> m_owner;
};
-class LinkRequestBuilder {
- STACK_ALLOCATED();
-
- public:
- explicit LinkRequestBuilder(HTMLLinkElement* owner);
-
- bool isValid() const { return !m_url.isEmpty() && m_url.isValid(); }
- const KURL& url() const { return m_url; }
- const AtomicString& charset() const { return m_charset; }
- FetchRequest build(bool lowPriority) const;
-
- private:
- Member<HTMLLinkElement> m_owner;
- KURL m_url;
- AtomicString m_charset;
-};
-
} // namespace blink
#endif // LinkResource_h
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLLinkElement.cpp ('k') | third_party/WebKit/Source/core/html/LinkResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698