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

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, 10 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 23 matching lines...) Expand all
34 #include "core/fetch/FetchRequest.h" 34 #include "core/fetch/FetchRequest.h"
35 #include "platform/heap/Handle.h" 35 #include "platform/heap/Handle.h"
36 #include "platform/weborigin/KURL.h" 36 #include "platform/weborigin/KURL.h"
37 #include "wtf/text/WTFString.h" 37 #include "wtf/text/WTFString.h"
38 38
39 namespace blink { 39 namespace blink {
40 40
41 class HTMLLinkElement; 41 class HTMLLinkElement;
42 class LocalFrame; 42 class LocalFrame;
43 43
44 class LinkResource : public NoBaseWillBeGarbageCollectedFinalized<LinkResource> { 44 class LinkResource : public GarbageCollectedFinalized<LinkResource> {
45 WTF_MAKE_NONCOPYABLE(LinkResource); USING_FAST_MALLOC_WILL_BE_REMOVED(LinkRe source); 45 WTF_MAKE_NONCOPYABLE(LinkResource);
46 public: 46 public:
47 enum Type { 47 enum Type {
48 Style, 48 Style,
49 Import, 49 Import,
50 Manifest 50 Manifest
51 }; 51 };
52 52
53 explicit LinkResource(HTMLLinkElement*); 53 explicit LinkResource(HTMLLinkElement*);
54 virtual ~LinkResource(); 54 virtual ~LinkResource();
55 55
56 bool shouldLoadResource() const; 56 bool shouldLoadResource() const;
57 LocalFrame* loadingFrame() const; 57 LocalFrame* loadingFrame() const;
58 58
59 virtual Type type() const = 0; 59 virtual Type type() const = 0;
60 virtual void process() = 0; 60 virtual void process() = 0;
61 virtual void ownerRemoved() { } 61 virtual void ownerRemoved() { }
62 virtual void ownerInserted() { } 62 virtual void ownerInserted() { }
63 virtual bool hasLoaded() const = 0; 63 virtual bool hasLoaded() const = 0;
64 64
65 DECLARE_VIRTUAL_TRACE(); 65 DECLARE_VIRTUAL_TRACE();
66 66
67 protected: 67 protected:
68 RawPtrWillBeMember<HTMLLinkElement> m_owner; 68 Member<HTMLLinkElement> m_owner;
69 }; 69 };
70 70
71 class LinkRequestBuilder { 71 class LinkRequestBuilder {
72 STACK_ALLOCATED(); 72 STACK_ALLOCATED();
73 public: 73 public:
74 explicit LinkRequestBuilder(HTMLLinkElement* owner); 74 explicit LinkRequestBuilder(HTMLLinkElement* owner);
75 75
76 bool isValid() const { return !m_url.isEmpty() && m_url.isValid(); } 76 bool isValid() const { return !m_url.isEmpty() && m_url.isValid(); }
77 const KURL& url() const { return m_url; } 77 const KURL& url() const { return m_url; }
78 const AtomicString& charset() const { return m_charset; } 78 const AtomicString& charset() const { return m_charset; }
79 FetchRequest build(bool lowPriority) const; 79 FetchRequest build(bool lowPriority) const;
80 80
81 private: 81 private:
82 RawPtrWillBeMember<HTMLLinkElement> m_owner; 82 Member<HTMLLinkElement> m_owner;
83 KURL m_url; 83 KURL m_url;
84 AtomicString m_charset; 84 AtomicString m_charset;
85 }; 85 };
86 86
87 } // namespace blink 87 } // namespace blink
88 88
89 #endif // LinkResource_h 89 #endif // LinkResource_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698