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

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

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 LinkManifest_h 5 #ifndef LinkManifest_h
6 #define LinkManifest_h 6 #define LinkManifest_h
7 7
8 #include "core/html/LinkResource.h" 8 #include "core/html/LinkResource.h"
9 #include "wtf/Allocator.h" 9 #include "wtf/Allocator.h"
10 #include "wtf/PassOwnPtr.h"
10 #include "wtf/RefPtr.h" 11 #include "wtf/RefPtr.h"
11 12
12 namespace blink { 13 namespace blink {
13 14
14 class HTMLLinkElement; 15 class HTMLLinkElement;
15 16
16 class LinkManifest final : public LinkResource { 17 class LinkManifest final : public LinkResource {
17 public: 18 public:
18 19
19 static LinkManifest* create(HTMLLinkElement* owner); 20 static LinkManifest* create(HTMLLinkElement* owner);
20 21
21 ~LinkManifest() override; 22 ~LinkManifest() override;
22 23
23 // LinkResource 24 // LinkResource
24 void process() override; 25 void process() override;
25 LinkResourceType type() const override { return Manifest; } 26 LinkResourceType type() const override { return Manifest; }
26 bool hasLoaded() const override; 27 bool hasLoaded() const override;
27 void ownerRemoved() override; 28 void ownerRemoved() override;
28 29
29 private: 30 private:
30 explicit LinkManifest(HTMLLinkElement* owner); 31 explicit LinkManifest(HTMLLinkElement* owner);
31 }; 32 };
32 33
33 } // namespace blink 34 } // namespace blink
34 35
35 #endif // LinkManifest_h 36 #endif // LinkManifest_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLVideoElementTest.cpp ('k') | third_party/WebKit/Source/core/html/PublicURLManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698