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

Side by Side Diff: third_party/WebKit/Source/core/testing/Internals.cpp

Issue 2872613002: Remove ENABLE(INSTANCE_COUNTER) code. (Closed)
Patch Set: gn Created 3 years, 7 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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 #include "platform/heap/Handle.h" 138 #include "platform/heap/Handle.h"
139 #include "platform/instrumentation/tracing/TraceEvent.h" 139 #include "platform/instrumentation/tracing/TraceEvent.h"
140 #include "platform/loader/fetch/MemoryCache.h" 140 #include "platform/loader/fetch/MemoryCache.h"
141 #include "platform/loader/fetch/ResourceFetcher.h" 141 #include "platform/loader/fetch/ResourceFetcher.h"
142 #include "platform/loader/fetch/ResourceLoadPriority.h" 142 #include "platform/loader/fetch/ResourceLoadPriority.h"
143 #include "platform/network/NetworkStateNotifier.h" 143 #include "platform/network/NetworkStateNotifier.h"
144 #include "platform/scroll/ProgrammaticScrollAnimator.h" 144 #include "platform/scroll/ProgrammaticScrollAnimator.h"
145 #include "platform/scroll/ScrollbarTheme.h" 145 #include "platform/scroll/ScrollbarTheme.h"
146 #include "platform/testing/URLTestHelpers.h" 146 #include "platform/testing/URLTestHelpers.h"
147 #include "platform/weborigin/SchemeRegistry.h" 147 #include "platform/weborigin/SchemeRegistry.h"
148 #include "platform/wtf/InstanceCounter.h"
149 #include "platform/wtf/Optional.h" 148 #include "platform/wtf/Optional.h"
150 #include "platform/wtf/PtrUtil.h" 149 #include "platform/wtf/PtrUtil.h"
151 #include "platform/wtf/dtoa.h" 150 #include "platform/wtf/dtoa.h"
152 #include "platform/wtf/text/StringBuffer.h" 151 #include "platform/wtf/text/StringBuffer.h"
153 #include "public/platform/Platform.h" 152 #include "public/platform/Platform.h"
154 #include "public/platform/WebConnectionType.h" 153 #include "public/platform/WebConnectionType.h"
155 #include "public/platform/WebGraphicsContext3DProvider.h" 154 #include "public/platform/WebGraphicsContext3DProvider.h"
156 #include "public/platform/WebLayer.h" 155 #include "public/platform/WebLayer.h"
157 #include "public/platform/modules/remoteplayback/WebRemotePlaybackAvailability.h " 156 #include "public/platform/modules/remoteplayback/WebRemotePlaybackAvailability.h "
158 #include "v8/include/v8.h" 157 #include "v8/include/v8.h"
(...skipping 1815 matching lines...) Expand 10 before | Expand all | Expand 10 after
1974 } 1973 }
1975 1974
1976 unsigned Internals::numberOfLiveNodes() const { 1975 unsigned Internals::numberOfLiveNodes() const {
1977 return InstanceCounters::CounterValue(InstanceCounters::kNodeCounter); 1976 return InstanceCounters::CounterValue(InstanceCounters::kNodeCounter);
1978 } 1977 }
1979 1978
1980 unsigned Internals::numberOfLiveDocuments() const { 1979 unsigned Internals::numberOfLiveDocuments() const {
1981 return InstanceCounters::CounterValue(InstanceCounters::kDocumentCounter); 1980 return InstanceCounters::CounterValue(InstanceCounters::kDocumentCounter);
1982 } 1981 }
1983 1982
1984 String Internals::dumpRefCountedInstanceCounts() const {
1985 return WTF::DumpRefCountedInstanceCounts();
1986 }
1987
1988 bool Internals::hasGrammarMarker(Document* document, 1983 bool Internals::hasGrammarMarker(Document* document,
1989 int from, 1984 int from,
1990 int length, 1985 int length,
1991 ExceptionState& exception_state) { 1986 ExceptionState& exception_state) {
1992 if (!document || !document->GetFrame()) { 1987 if (!document || !document->GetFrame()) {
1993 exception_state.ThrowDOMException( 1988 exception_state.ThrowDOMException(
1994 kInvalidAccessError, 1989 kInvalidAccessError,
1995 "No frame can be obtained from the provided document."); 1990 "No frame can be obtained from the provided document.");
1996 return false; 1991 return false;
1997 } 1992 }
(...skipping 1279 matching lines...) Expand 10 before | Expand all | Expand 10 after
3277 3272
3278 void Internals::crash() { 3273 void Internals::crash() {
3279 CHECK(false) << "Intentional crash"; 3274 CHECK(false) << "Intentional crash";
3280 } 3275 }
3281 3276
3282 void Internals::setIsLowEndDevice(bool is_low_end_device) { 3277 void Internals::setIsLowEndDevice(bool is_low_end_device) {
3283 MemoryCoordinator::SetIsLowEndDeviceForTesting(is_low_end_device); 3278 MemoryCoordinator::SetIsLowEndDeviceForTesting(is_low_end_device);
3284 } 3279 }
3285 3280
3286 } // namespace blink 3281 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.h ('k') | third_party/WebKit/Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698