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

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

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. 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 /* 1 /*
2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. 2 * Copyright (C) 2010 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 11 matching lines...) Expand all
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef HTMLParserScheduler_h 26 #ifndef HTMLParserScheduler_h
27 #define HTMLParserScheduler_h 27 #define HTMLParserScheduler_h
28 28
29 #include "core/html/parser/NestingLevelIncrementer.h" 29 #include "core/html/parser/NestingLevelIncrementer.h"
30 #include "platform/scheduler/CancellableTaskFactory.h" 30 #include "platform/scheduler/CancellableTaskFactory.h"
31 #include "wtf/Allocator.h" 31 #include "wtf/Allocator.h"
32 #include "wtf/PassOwnPtr.h"
33 #include "wtf/RefPtr.h" 32 #include "wtf/RefPtr.h"
33 #include <memory>
34 34
35 namespace blink { 35 namespace blink {
36 36
37 class HTMLDocumentParser; 37 class HTMLDocumentParser;
38 class WebTaskRunner; 38 class WebTaskRunner;
39 39
40 class PumpSession : public NestingLevelIncrementer { 40 class PumpSession : public NestingLevelIncrementer {
41 STACK_ALLOCATED(); 41 STACK_ALLOCATED();
42 public: 42 public:
43 PumpSession(unsigned& nestingLevel); 43 PumpSession(unsigned& nestingLevel);
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 DECLARE_TRACE(); 90 DECLARE_TRACE();
91 91
92 private: 92 private:
93 HTMLParserScheduler(HTMLDocumentParser*, WebTaskRunner*); 93 HTMLParserScheduler(HTMLDocumentParser*, WebTaskRunner*);
94 94
95 bool shouldYield(const SpeculationsPumpSession&, bool startingScript) const; 95 bool shouldYield(const SpeculationsPumpSession&, bool startingScript) const;
96 void continueParsing(); 96 void continueParsing();
97 97
98 Member<HTMLDocumentParser> m_parser; 98 Member<HTMLDocumentParser> m_parser;
99 OwnPtr<WebTaskRunner> m_loadingTaskRunner; 99 std::unique_ptr<WebTaskRunner> m_loadingTaskRunner;
100 100
101 OwnPtr<CancellableTaskFactory> m_cancellableContinueParse; 101 std::unique_ptr<CancellableTaskFactory> m_cancellableContinueParse;
102 bool m_isSuspendedWithActiveTimer; 102 bool m_isSuspendedWithActiveTimer;
103 }; 103 };
104 104
105 } // namespace blink 105 } // namespace blink
106 106
107 #endif 107 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698