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

Side by Side Diff: third_party/WebKit/Source/core/html/LinkResource.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 24 matching lines...) Expand all
35 #include "core/fetch/FetchRequest.h" 35 #include "core/fetch/FetchRequest.h"
36 #include "platform/heap/Handle.h" 36 #include "platform/heap/Handle.h"
37 #include "platform/weborigin/KURL.h" 37 #include "platform/weborigin/KURL.h"
38 #include "wtf/text/WTFString.h" 38 #include "wtf/text/WTFString.h"
39 39
40 namespace blink { 40 namespace blink {
41 41
42 class HTMLLinkElement; 42 class HTMLLinkElement;
43 class LocalFrame; 43 class LocalFrame;
44 44
45 class CORE_EXPORT LinkResource : public NoBaseWillBeGarbageCollectedFinalized<Li nkResource> { 45 class CORE_EXPORT LinkResource : public GarbageCollectedFinalized<LinkResource> {
46 WTF_MAKE_NONCOPYABLE(LinkResource); USING_FAST_MALLOC_WILL_BE_REMOVED(LinkRe source); 46 WTF_MAKE_NONCOPYABLE(LinkResource);
47 public: 47 public:
48 enum LinkResourceType { 48 enum LinkResourceType {
49 Style, 49 Style,
50 Import, 50 Import,
51 Manifest, 51 Manifest,
52 Other 52 Other
53 }; 53 };
54 54
55 explicit LinkResource(HTMLLinkElement*); 55 explicit LinkResource(HTMLLinkElement*);
56 virtual ~LinkResource(); 56 virtual ~LinkResource();
57 57
58 bool shouldLoadResource() const; 58 bool shouldLoadResource() const;
59 LocalFrame* loadingFrame() const; 59 LocalFrame* loadingFrame() const;
60 60
61 virtual LinkResourceType type() const = 0; 61 virtual LinkResourceType type() const = 0;
62 virtual void process() = 0; 62 virtual void process() = 0;
63 virtual void ownerRemoved() { } 63 virtual void ownerRemoved() { }
64 virtual void ownerInserted() { } 64 virtual void ownerInserted() { }
65 virtual bool hasLoaded() const = 0; 65 virtual bool hasLoaded() const = 0;
66 66
67 DECLARE_VIRTUAL_TRACE(); 67 DECLARE_VIRTUAL_TRACE();
68 68
69 protected: 69 protected:
70 RawPtrWillBeMember<HTMLLinkElement> m_owner; 70 Member<HTMLLinkElement> m_owner;
71 }; 71 };
72 72
73 class LinkRequestBuilder { 73 class LinkRequestBuilder {
74 STACK_ALLOCATED(); 74 STACK_ALLOCATED();
75 public: 75 public:
76 explicit LinkRequestBuilder(HTMLLinkElement* owner); 76 explicit LinkRequestBuilder(HTMLLinkElement* owner);
77 77
78 bool isValid() const { return !m_url.isEmpty() && m_url.isValid(); } 78 bool isValid() const { return !m_url.isEmpty() && m_url.isValid(); }
79 const KURL& url() const { return m_url; } 79 const KURL& url() const { return m_url; }
80 const AtomicString& charset() const { return m_charset; } 80 const AtomicString& charset() const { return m_charset; }
81 FetchRequest build(bool lowPriority) const; 81 FetchRequest build(bool lowPriority) const;
82 82
83 private: 83 private:
84 RawPtrWillBeMember<HTMLLinkElement> m_owner; 84 Member<HTMLLinkElement> m_owner;
85 KURL m_url; 85 KURL m_url;
86 AtomicString m_charset; 86 AtomicString m_charset;
87 }; 87 };
88 88
89 } // namespace blink 89 } // namespace blink
90 90
91 #endif // LinkResource_h 91 #endif // LinkResource_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/LinkManifest.cpp ('k') | third_party/WebKit/Source/core/html/MediaDocument.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698