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

Side by Side Diff: Source/core/inspector/InspectorHeapProfilerAgent.cpp

Issue 307943002: Oilpan: Prepare moving InspectorController and InspectorAgents to oilpan. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 HeapStatsUpdateTask(InspectorHeapProfilerAgent*); 53 HeapStatsUpdateTask(InspectorHeapProfilerAgent*);
54 void startTimer(); 54 void startTimer();
55 void resetTimer() { m_timer.stop(); } 55 void resetTimer() { m_timer.stop(); }
56 void onTimer(Timer<HeapStatsUpdateTask>*); 56 void onTimer(Timer<HeapStatsUpdateTask>*);
57 57
58 private: 58 private:
59 InspectorHeapProfilerAgent* m_heapProfilerAgent; 59 InspectorHeapProfilerAgent* m_heapProfilerAgent;
60 Timer<HeapStatsUpdateTask> m_timer; 60 Timer<HeapStatsUpdateTask> m_timer;
61 }; 61 };
62 62
63 PassOwnPtr<InspectorHeapProfilerAgent> InspectorHeapProfilerAgent::create(Inject edScriptManager* injectedScriptManager) 63 PassOwnPtrWillBeRawPtr<InspectorHeapProfilerAgent> InspectorHeapProfilerAgent::c reate(InjectedScriptManager* injectedScriptManager)
64 { 64 {
65 return adoptPtr(new InspectorHeapProfilerAgent(injectedScriptManager)); 65 return adoptPtrWillBeNoop(new InspectorHeapProfilerAgent(injectedScriptManag er));
66 } 66 }
67 67
68 InspectorHeapProfilerAgent::InspectorHeapProfilerAgent(InjectedScriptManager* in jectedScriptManager) 68 InspectorHeapProfilerAgent::InspectorHeapProfilerAgent(InjectedScriptManager* in jectedScriptManager)
69 : InspectorBaseAgent<InspectorHeapProfilerAgent>("HeapProfiler") 69 : InspectorBaseAgent<InspectorHeapProfilerAgent>("HeapProfiler")
70 , m_injectedScriptManager(injectedScriptManager) 70 , m_injectedScriptManager(injectedScriptManager)
71 , m_frontend(0) 71 , m_frontend(0)
72 , m_nextUserInitiatedHeapSnapshotNumber(1) 72 , m_nextUserInitiatedHeapSnapshotNumber(1)
73 { 73 {
74 } 74 }
75 75
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 if (value.isEmpty() || value.isUndefined()) { 307 if (value.isEmpty() || value.isUndefined()) {
308 *errorString = "Object with given id not found"; 308 *errorString = "Object with given id not found";
309 return; 309 return;
310 } 310 }
311 unsigned id = ScriptProfiler::getHeapObjectId(value); 311 unsigned id = ScriptProfiler::getHeapObjectId(value);
312 *heapSnapshotObjectId = String::number(id); 312 *heapSnapshotObjectId = String::number(id);
313 } 313 }
314 314
315 } // namespace WebCore 315 } // namespace WebCore
316 316
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698