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

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

Issue 527183002: Oilpan: Prepare moving InspectorResourceContentLoader to Oilpan (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 updateViewMetricsFromState(); 473 updateViewMetricsFromState();
474 updateTouchEventEmulationInPage(m_state->getBoolean(PageAgentState::touc hEventEmulationEnabled)); 474 updateTouchEventEmulationInPage(m_state->getBoolean(PageAgentState::touc hEventEmulationEnabled));
475 } 475 }
476 } 476 }
477 477
478 void InspectorPageAgent::enable(ErrorString*) 478 void InspectorPageAgent::enable(ErrorString*)
479 { 479 {
480 m_enabled = true; 480 m_enabled = true;
481 m_state->setBoolean(PageAgentState::pageAgentEnabled, true); 481 m_state->setBoolean(PageAgentState::pageAgentEnabled, true);
482 m_instrumentingAgents->setInspectorPageAgent(this); 482 m_instrumentingAgents->setInspectorPageAgent(this);
483 m_inspectorResourceContentLoader = adoptPtr(new InspectorResourceContentLoad er(m_page)); 483 m_inspectorResourceContentLoader = adoptPtrWillBeNoop(new InspectorResourceC ontentLoader(m_page));
sof 2014/09/02 07:02:31 nit: for consistency, having InspectorResourceCont
484 } 484 }
485 485
486 void InspectorPageAgent::disable(ErrorString*) 486 void InspectorPageAgent::disable(ErrorString*)
487 { 487 {
488 m_enabled = false; 488 m_enabled = false;
489 m_state->setBoolean(PageAgentState::pageAgentEnabled, false); 489 m_state->setBoolean(PageAgentState::pageAgentEnabled, false);
490 m_state->remove(PageAgentState::pageAgentScriptsToEvaluateOnLoad); 490 m_state->remove(PageAgentState::pageAgentScriptsToEvaluateOnLoad);
491 m_overlay->hide(); 491 m_overlay->hide();
492 m_instrumentingAgents->setInspectorPageAgent(0); 492 m_instrumentingAgents->setInspectorPageAgent(0);
493 m_inspectorResourceContentLoader.clear(); 493 m_inspectorResourceContentLoader.clear();
(...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after
1442 if (!m_editedResourceContent.contains(url)) 1442 if (!m_editedResourceContent.contains(url))
1443 return false; 1443 return false;
1444 *content = m_editedResourceContent.get(url); 1444 *content = m_editedResourceContent.get(url);
1445 return true; 1445 return true;
1446 } 1446 }
1447 1447
1448 void InspectorPageAgent::trace(Visitor* visitor) 1448 void InspectorPageAgent::trace(Visitor* visitor)
1449 { 1449 {
1450 visitor->trace(m_page); 1450 visitor->trace(m_page);
1451 visitor->trace(m_injectedScriptManager); 1451 visitor->trace(m_injectedScriptManager);
1452 visitor->trace(m_inspectorResourceContentLoader);
1452 InspectorBaseAgent::trace(visitor); 1453 InspectorBaseAgent::trace(visitor);
1453 } 1454 }
1454 1455
1455 } // namespace blink 1456 } // namespace blink
1456 1457
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698