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

Side by Side Diff: third_party/WebKit/Source/core/dom/IncrementLoadEventDelayCount.h

Issue 1866663002: Remove unnecessary includes from dom. (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 // 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 IncrementLoadEventDelayCount_h 5 #ifndef IncrementLoadEventDelayCount_h
6 #define IncrementLoadEventDelayCount_h 6 #define IncrementLoadEventDelayCount_h
7 7
8 #include "platform/heap/Handle.h" 8 #include "platform/heap/Handle.h"
9 #include "wtf/Allocator.h" 9 #include "wtf/Allocator.h"
10 #include "wtf/Noncopyable.h" 10 #include "wtf/Noncopyable.h"
11 #include "wtf/RefPtr.h"
12 11
13 namespace blink { 12 namespace blink {
14 13
15 class Document; 14 class Document;
16 15
17 // A helper class that will increment a document's loadEventDelayCount on 16 // A helper class that will increment a document's loadEventDelayCount on
18 // contruction and decrement it on destruction (semantics similar to RefPtr). 17 // contruction and decrement it on destruction (semantics similar to RefPtr).
19 class IncrementLoadEventDelayCount { 18 class IncrementLoadEventDelayCount {
20 USING_FAST_MALLOC(IncrementLoadEventDelayCount); 19 USING_FAST_MALLOC(IncrementLoadEventDelayCount);
21 WTF_MAKE_NONCOPYABLE(IncrementLoadEventDelayCount); 20 WTF_MAKE_NONCOPYABLE(IncrementLoadEventDelayCount);
22 21
23 public: 22 public:
24 static PassOwnPtr<IncrementLoadEventDelayCount> create(Document&); 23 static PassOwnPtr<IncrementLoadEventDelayCount> create(Document&);
25 ~IncrementLoadEventDelayCount(); 24 ~IncrementLoadEventDelayCount();
26 25
27 // Increments the new document's count and decrements the old count. 26 // Increments the new document's count and decrements the old count.
28 void documentChanged(Document& newDocument); 27 void documentChanged(Document& newDocument);
29 28
30 private: 29 private:
31 IncrementLoadEventDelayCount(Document&); 30 IncrementLoadEventDelayCount(Document&);
32 Persistent<Document> m_document; 31 Persistent<Document> m_document;
33 }; 32 };
34 } // namespace blink 33 } // namespace blink
35 34
36 #endif 35 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/EmptyNodeList.h ('k') | third_party/WebKit/Source/core/dom/LiveNodeList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698