OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "config.h" | 5 #include "config.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "Document.h" | 9 #include "Document.h" |
10 #include "EventListener.h" | 10 #include "EventListener.h" |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 void WebDevToolsAgentImpl::setApuAgentEnabled(bool enable) { | 271 void WebDevToolsAgentImpl::setApuAgentEnabled(bool enable) { |
272 apu_agent_enabled_ = enable; | 272 apu_agent_enabled_ = enable; |
273 SetApuAgentEnabledInUtilityContext(utility_context_, enable); | 273 SetApuAgentEnabledInUtilityContext(utility_context_, enable); |
274 InspectorController* ic = web_view_impl_->page()->inspectorController(); | 274 InspectorController* ic = web_view_impl_->page()->inspectorController(); |
275 if (enable) { | 275 if (enable) { |
276 resource_tracking_was_enabled_ = ic->resourceTrackingEnabled(); | 276 resource_tracking_was_enabled_ = ic->resourceTrackingEnabled(); |
277 ic->startTimelineProfiler(); | 277 ic->startTimelineProfiler(); |
278 if (!resource_tracking_was_enabled_) { | 278 if (!resource_tracking_was_enabled_) { |
279 // TODO(knorton): Introduce some kind of agents dependency here so that | 279 // TODO(knorton): Introduce some kind of agents dependency here so that |
280 // user could turn off resource tracking while apu agent is on. | 280 // user could turn off resource tracking while apu agent is on. |
281 ic->enableResourceTracking(false); | 281 ic->enableResourceTracking(false, false); |
282 } | 282 } |
283 } else { | 283 } else { |
284 ic->stopTimelineProfiler(); | 284 ic->stopTimelineProfiler(); |
285 if (!resource_tracking_was_enabled_) { | 285 if (!resource_tracking_was_enabled_) { |
286 ic->disableResourceTracking(false); | 286 ic->disableResourceTracking(false); |
287 } | 287 } |
288 resource_tracking_was_enabled_ = false; | 288 resource_tracking_was_enabled_ = false; |
289 } | 289 } |
290 } | 290 } |
291 | 291 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 webkit_glue::WebStringToString(command), caller_id); | 414 webkit_glue::WebStringToString(command), caller_id); |
415 } | 415 } |
416 | 416 |
417 // static | 417 // static |
418 void WebDevToolsAgent::setMessageLoopDispatchHandler( | 418 void WebDevToolsAgent::setMessageLoopDispatchHandler( |
419 MessageLoopDispatchHandler handler) { | 419 MessageLoopDispatchHandler handler) { |
420 DebuggerAgentManager::SetMessageLoopDispatchHandler(handler); | 420 DebuggerAgentManager::SetMessageLoopDispatchHandler(handler); |
421 } | 421 } |
422 | 422 |
423 } // namespace WebKit | 423 } // namespace WebKit |
OLD | NEW |