| OLD | NEW |
| 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" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 public: | 23 public: |
| 24 static PassOwnPtr<IncrementLoadEventDelayCount> create(Document&); | 24 static PassOwnPtr<IncrementLoadEventDelayCount> create(Document&); |
| 25 ~IncrementLoadEventDelayCount(); | 25 ~IncrementLoadEventDelayCount(); |
| 26 | 26 |
| 27 // Increments the new document's count and decrements the old count. | 27 // Increments the new document's count and decrements the old count. |
| 28 void documentChanged(Document& newDocument); | 28 void documentChanged(Document& newDocument); |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 IncrementLoadEventDelayCount(Document&); | 31 IncrementLoadEventDelayCount(Document&); |
| 32 RefPtrWillBePersistent<Document> m_document; | 32 Persistent<Document> m_document; |
| 33 }; | 33 }; |
| 34 } // namespace blink | 34 } // namespace blink |
| 35 | 35 |
| 36 #endif | 36 #endif |
| OLD | NEW |