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

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

Issue 1738073002: DevTools: introduce protocol::Value, baseline for hierarchical data in remote debugging protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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) 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 , m_client(client) 51 , m_client(client)
52 , m_v8ProfilerAgent(V8ProfilerAgent::create(debugger)) 52 , m_v8ProfilerAgent(V8ProfilerAgent::create(debugger))
53 { 53 {
54 } 54 }
55 55
56 InspectorProfilerAgent::~InspectorProfilerAgent() 56 InspectorProfilerAgent::~InspectorProfilerAgent()
57 { 57 {
58 } 58 }
59 59
60 // InspectorBaseAgent overrides. 60 // InspectorBaseAgent overrides.
61 void InspectorProfilerAgent::setState(PassRefPtr<JSONObject> state) 61 void InspectorProfilerAgent::setState(PassRefPtr<protocol::DictionaryValue> stat e)
62 { 62 {
63 InspectorBaseAgent::setState(state); 63 InspectorBaseAgent::setState(state);
64 m_v8ProfilerAgent->setInspectorState(m_state); 64 m_v8ProfilerAgent->setInspectorState(m_state);
65 } 65 }
66 66
67 void InspectorProfilerAgent::setFrontend(protocol::Frontend* frontend) 67 void InspectorProfilerAgent::setFrontend(protocol::Frontend* frontend)
68 { 68 {
69 InspectorBaseAgent::setFrontend(frontend); 69 InspectorBaseAgent::setFrontend(frontend);
70 m_v8ProfilerAgent->setFrontend(protocol::Frontend::Profiler::from(frontend)) ; 70 m_v8ProfilerAgent->setFrontend(protocol::Frontend::Profiler::from(frontend)) ;
71 } 71 }
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 { 149 {
150 m_v8ProfilerAgent->idleFinished(); 150 m_v8ProfilerAgent->idleFinished();
151 } 151 }
152 152
153 DEFINE_TRACE(InspectorProfilerAgent) 153 DEFINE_TRACE(InspectorProfilerAgent)
154 { 154 {
155 InspectorBaseAgent::trace(visitor); 155 InspectorBaseAgent::trace(visitor);
156 } 156 }
157 157
158 } // namespace blink 158 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698