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

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

Issue 306053010: Tried using CrossThreadPersistent for workerDebuggerAgents (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) 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Google Inc. All rights reserved. 3 * Copyright (C) 2010 Google 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 class InspectorProfilerAgent::ProfileDescriptor { 77 class InspectorProfilerAgent::ProfileDescriptor {
78 public: 78 public:
79 ProfileDescriptor(const String& id, const String& title) 79 ProfileDescriptor(const String& id, const String& title)
80 : m_id(id) 80 : m_id(id)
81 , m_title(title) { } 81 , m_title(title) { }
82 String m_id; 82 String m_id;
83 String m_title; 83 String m_title;
84 }; 84 };
85 85
86 PassOwnPtr<InspectorProfilerAgent> InspectorProfilerAgent::create(InjectedScript Manager* injectedScriptManager, InspectorOverlay* overlay) 86 PassOwnPtrWillBeRawPtr<InspectorProfilerAgent> InspectorProfilerAgent::create(In jectedScriptManager* injectedScriptManager, InspectorOverlay* overlay)
87 { 87 {
88 return adoptPtr(new InspectorProfilerAgent(injectedScriptManager, overlay)); 88 return adoptPtrWillBeNoop(new InspectorProfilerAgent(injectedScriptManager, overlay));
89 } 89 }
90 90
91 InspectorProfilerAgent::InspectorProfilerAgent(InjectedScriptManager* injectedSc riptManager, InspectorOverlay* overlay) 91 InspectorProfilerAgent::InspectorProfilerAgent(InjectedScriptManager* injectedSc riptManager, InspectorOverlay* overlay)
92 : InspectorBaseAgent<InspectorProfilerAgent>("Profiler") 92 : InspectorBaseAgent<InspectorProfilerAgent>("Profiler")
93 , m_injectedScriptManager(injectedScriptManager) 93 , m_injectedScriptManager(injectedScriptManager)
94 , m_frontend(0) 94 , m_frontend(0)
95 , m_recordingCPUProfile(false) 95 , m_recordingCPUProfile(false)
96 , m_profileNameIdleTimeMap(ScriptProfiler::currentProfileNameIdleTimeMap()) 96 , m_profileNameIdleTimeMap(ScriptProfiler::currentProfileNameIdleTimeMap())
97 , m_idleStartTime(0.0) 97 , m_idleStartTime(0.0)
98 , m_overlay(overlay) 98 , m_overlay(overlay)
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 idleStarted(); 290 idleStarted();
291 } 291 }
292 292
293 void InspectorProfilerAgent::didLeaveNestedRunLoop() 293 void InspectorProfilerAgent::didLeaveNestedRunLoop()
294 { 294 {
295 idleFinished(); 295 idleFinished();
296 } 296 }
297 297
298 } // namespace WebCore 298 } // namespace WebCore
299 299
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorProfilerAgent.h ('k') | Source/core/inspector/InspectorResourceAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698