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

Side by Side Diff: webkit/glue/webdevtoolsagent_impl.cc

Issue 334022: Lets APU agent not force a reload when it is enabled. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 11 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698