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

Side by Side Diff: Source/WebCore/bindings/v8/ScriptGCEvent.h

Issue 13646003: DevTools: Remove ENABLE(INSPECTOR) and ENABLE(JAVASCRIPT_DEBUGGER) from the code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: comments addressed Created 7 years, 8 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 void setStartTime(double startTime) { m_startTime = startTime; } 72 void setStartTime(double startTime) { m_startTime = startTime; }
73 size_t usedHeapSize() { return m_usedHeapSize; } 73 size_t usedHeapSize() { return m_usedHeapSize; }
74 void setUsedHeapSize(size_t usedHeapSize) { m_usedHeapSize = usedHeapSize; } 74 void setUsedHeapSize(size_t usedHeapSize) { m_usedHeapSize = usedHeapSize; }
75 75
76 private: 76 private:
77 double m_startTime; 77 double m_startTime;
78 size_t m_usedHeapSize; 78 size_t m_usedHeapSize;
79 GCEventListeners m_listeners; 79 GCEventListeners m_listeners;
80 }; 80 };
81 81
82 #if ENABLE(INSPECTOR)
83 82
84 class ScriptGCEvent 83 class ScriptGCEvent
85 { 84 {
86 public: 85 public:
87 static void addEventListener(ScriptGCEventListener*); 86 static void addEventListener(ScriptGCEventListener*);
88 static void removeEventListener(ScriptGCEventListener*); 87 static void removeEventListener(ScriptGCEventListener*);
89 static void getHeapSize(HeapInfo&); 88 static void getHeapSize(HeapInfo&);
90 89
91 private: 90 private:
92 static void gcEpilogueCallback(v8::GCType type, v8::GCCallbackFlags flags); 91 static void gcEpilogueCallback(v8::GCType type, v8::GCCallbackFlags flags);
93 static void gcPrologueCallback(v8::GCType type, v8::GCCallbackFlags flags); 92 static void gcPrologueCallback(v8::GCType type, v8::GCCallbackFlags flags);
94 static size_t getUsedHeapSize(); 93 static size_t getUsedHeapSize();
95 }; 94 };
96 95
97 #endif // ENABLE(INSPECTOR)
98 96
99 } // namespace WebCore 97 } // namespace WebCore
100 98
101 #endif // !defined(ScriptGCEvent_h) 99 #endif // !defined(ScriptGCEvent_h)
OLDNEW
« no previous file with comments | « Source/WebCore/bindings/v8/ScriptDebugServer.cpp ('k') | Source/WebCore/bindings/v8/ScriptGCEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698