OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef LinkDefaultPresentation_h | 5 #ifndef LinkDefaultPresentation_h |
6 #define LinkDefaultPresentation_h | 6 #define LinkDefaultPresentation_h |
7 | 7 |
8 #include "core/html/LinkResource.h" | 8 #include "core/html/LinkResource.h" |
9 #include "wtf/FastAllocBase.h" | 9 #include "wtf/FastAllocBase.h" |
10 #include "wtf/PassOwnPtr.h" | 10 #include "wtf/PassOwnPtr.h" |
11 #include "wtf/RefPtr.h" | 11 #include "wtf/RefPtr.h" |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 class HTMLLinkElement; | 15 class HTMLLinkElement; |
16 | 16 |
17 // Represents the default presentation URL resource associated with the <link> t
ag. | 17 // Represents the default presentation URL resource associated with the <link> t
ag. |
18 // Notifies the WebFrameClient about the change of its value. | 18 // Notifies the WebFrameClient about the change of its value. |
19 class LinkDefaultPresentation final : public LinkResource { | 19 class LinkDefaultPresentation final : public LinkResource { |
20 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(LinkDefaultPresentation); | 20 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(LinkDefaultPresentation); |
21 public: | 21 public: |
22 | 22 |
23 static PassOwnPtrWillBeRawPtr<LinkDefaultPresentation> create(HTMLLinkElemen
t* owner); | 23 static PassOwnPtrWillBeRawPtr<LinkDefaultPresentation> create(HTMLLinkElemen
t* owner); |
24 | 24 |
25 virtual ~LinkDefaultPresentation(); | 25 ~LinkDefaultPresentation() override; |
26 | 26 |
27 // LinkResource | 27 // LinkResource |
28 virtual void process() override; | 28 void process() override; |
29 virtual Type type() const override { return Manifest; } | 29 Type type() const override { return Manifest; } |
30 virtual bool hasLoaded() const override; | 30 bool hasLoaded() const override; |
31 virtual void ownerRemoved() override; | 31 void ownerRemoved() override; |
32 | 32 |
33 private: | 33 private: |
34 explicit LinkDefaultPresentation(HTMLLinkElement* owner); | 34 explicit LinkDefaultPresentation(HTMLLinkElement* owner); |
35 }; | 35 }; |
36 | 36 |
37 } | 37 } |
38 | 38 |
39 #endif // LinkDefaultPresentation_h | 39 #endif // LinkDefaultPresentation_h |
OLD | NEW |