OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 29 matching lines...) Expand all Loading... |
40 #include "core/inspector/InspectorCounters.h" | 40 #include "core/inspector/InspectorCounters.h" |
41 #include "core/rendering/RenderObject.h" | 41 #include "core/rendering/RenderObject.h" |
42 #include "modules/webaudio/AudioNode.h" | 42 #include "modules/webaudio/AudioNode.h" |
43 #include "platform/Timer.h" | 43 #include "platform/Timer.h" |
44 #include "public/web/WebDocument.h" | 44 #include "public/web/WebDocument.h" |
45 #include "public/web/WebLocalFrame.h" | 45 #include "public/web/WebLocalFrame.h" |
46 #include "web/WebEmbeddedWorkerImpl.h" | 46 #include "web/WebEmbeddedWorkerImpl.h" |
47 | 47 |
48 #include <v8.h> | 48 #include <v8.h> |
49 | 49 |
50 using namespace blink; | |
51 | |
52 namespace blink { | 50 namespace blink { |
53 | 51 |
54 namespace { | 52 namespace { |
55 | 53 |
56 // FIXME: Oilpan: It may take multiple GC to collect on-heap objects referenced
from off-heap objects. | 54 // FIXME: Oilpan: It may take multiple GC to collect on-heap objects referenced
from off-heap objects. |
57 // Please see comment in Heap::collectAllGarbage() | 55 // Please see comment in Heap::collectAllGarbage() |
58 static const int kNumberOfGCsToClaimChains = 5; | 56 static const int kNumberOfGCsToClaimChains = 5; |
59 | 57 |
60 class WebLeakDetectorImpl FINAL : public WebLeakDetector { | 58 class WebLeakDetectorImpl FINAL : public WebLeakDetector { |
61 WTF_MAKE_NONCOPYABLE(WebLeakDetectorImpl); | 59 WTF_MAKE_NONCOPYABLE(WebLeakDetectorImpl); |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 } | 142 } |
145 | 143 |
146 } // namespace | 144 } // namespace |
147 | 145 |
148 WebLeakDetector* WebLeakDetector::create(WebLeakDetectorClient* client) | 146 WebLeakDetector* WebLeakDetector::create(WebLeakDetectorClient* client) |
149 { | 147 { |
150 return new WebLeakDetectorImpl(client); | 148 return new WebLeakDetectorImpl(client); |
151 } | 149 } |
152 | 150 |
153 } // namespace blink | 151 } // namespace blink |
OLD | NEW |