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

Side by Side Diff: Source/core/testing/LayerRectList.h

Issue 189543014: Ensure proper finalization of garbage-collected types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: finalize HashTable Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 class ClientRectList; 43 class ClientRectList;
44 class LayerRect; 44 class LayerRect;
45 class Node; 45 class Node;
46 46
47 class LayerRectList : public RefCountedWillBeGarbageCollected<LayerRectList> { 47 class LayerRectList : public RefCountedWillBeGarbageCollected<LayerRectList> {
48 public: 48 public:
49 static PassRefPtrWillBeRawPtr<LayerRectList> create() 49 static PassRefPtrWillBeRawPtr<LayerRectList> create()
50 { 50 {
51 return adoptRefWillBeNoop(new LayerRectList); 51 return adoptRefWillBeNoop(new LayerRectList);
52 } 52 }
53 #if !ENABLE(OILPAN)
53 ~LayerRectList(); 54 ~LayerRectList();
55 #endif
54 56
55 unsigned length() const; 57 unsigned length() const;
56 LayerRect* item(unsigned index); 58 LayerRect* item(unsigned index);
57 void append(PassRefPtr<Node> layerRootNode, const String& layerName, PassRef Ptr<ClientRect> layerRelativeRect); 59 void append(PassRefPtr<Node> layerRootNode, const String& layerName, PassRef Ptr<ClientRect> layerRelativeRect);
58 60
59 void trace(Visitor*); 61 void trace(Visitor*);
60 62
61 private: 63 private:
62 LayerRectList(); 64 LayerRectList();
63 65
64 WillBeHeapVector<RefPtrWillBeMember<LayerRect> > m_list; 66 WillBeHeapVector<RefPtrWillBeMember<LayerRect> > m_list;
65 }; 67 };
66 68
67 } // namespace WebCore 69 } // namespace WebCore
68 70
69 #endif // ClientRectList_h 71 #endif // ClientRectList_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698