| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 ALLOW_UNUSED_LOCAL(current); | 86 ALLOW_UNUSED_LOCAL(current); |
| 87 ++count; | 87 ++count; |
| 88 } | 88 } |
| 89 return count; | 89 return count; |
| 90 } | 90 } |
| 91 | 91 |
| 92 intptr_t RetainedDOMInfo::GetEquivalenceClass() { | 92 intptr_t RetainedDOMInfo::GetEquivalenceClass() { |
| 93 return reinterpret_cast<intptr_t>(m_root.get()); | 93 return reinterpret_cast<intptr_t>(m_root.get()); |
| 94 } | 94 } |
| 95 | 95 |
| 96 ActiveDOMObjectsInfo::ActiveDOMObjectsInfo( | 96 SuspendableObjectsInfo::SuspendableObjectsInfo( |
| 97 int numberOfObjectsWithPendingActivity) | 97 int numberOfObjectsWithPendingActivity) |
| 98 : m_numberOfObjectsWithPendingActivity(numberOfObjectsWithPendingActivity) { | 98 : m_numberOfObjectsWithPendingActivity(numberOfObjectsWithPendingActivity) { |
| 99 } | 99 } |
| 100 | 100 |
| 101 ActiveDOMObjectsInfo::~ActiveDOMObjectsInfo() {} | 101 SuspendableObjectsInfo::~SuspendableObjectsInfo() {} |
| 102 | 102 |
| 103 void ActiveDOMObjectsInfo::Dispose() { | 103 void SuspendableObjectsInfo::Dispose() { |
| 104 delete this; | 104 delete this; |
| 105 } | 105 } |
| 106 | 106 |
| 107 bool ActiveDOMObjectsInfo::IsEquivalent(v8::RetainedObjectInfo* other) { | 107 bool SuspendableObjectsInfo::IsEquivalent(v8::RetainedObjectInfo* other) { |
| 108 return this == other; | 108 return this == other; |
| 109 } | 109 } |
| 110 | 110 |
| 111 intptr_t ActiveDOMObjectsInfo::GetHash() { | 111 intptr_t SuspendableObjectsInfo::GetHash() { |
| 112 return PtrHash<void>::hash(this); | 112 return PtrHash<void>::hash(this); |
| 113 } | 113 } |
| 114 | 114 |
| 115 const char* ActiveDOMObjectsInfo::GetGroupLabel() { | 115 const char* SuspendableObjectsInfo::GetGroupLabel() { |
| 116 return "(Pending activities group)"; | 116 return "(Pending activities group)"; |
| 117 } | 117 } |
| 118 | 118 |
| 119 const char* ActiveDOMObjectsInfo::GetLabel() { | 119 const char* SuspendableObjectsInfo::GetLabel() { |
| 120 return "Pending activities"; | 120 return "Pending activities"; |
| 121 } | 121 } |
| 122 | 122 |
| 123 intptr_t ActiveDOMObjectsInfo::GetElementCount() { | 123 intptr_t SuspendableObjectsInfo::GetElementCount() { |
| 124 return m_numberOfObjectsWithPendingActivity; | 124 return m_numberOfObjectsWithPendingActivity; |
| 125 } | 125 } |
| 126 | 126 |
| 127 intptr_t ActiveDOMObjectsInfo::GetEquivalenceClass() { | 127 intptr_t SuspendableObjectsInfo::GetEquivalenceClass() { |
| 128 return reinterpret_cast<intptr_t>(this); | 128 return reinterpret_cast<intptr_t>(this); |
| 129 } | 129 } |
| 130 | 130 |
| 131 } // namespace blink | 131 } // namespace blink |
| OLD | NEW |