| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010-2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2010-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 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 589 } | 589 } |
| 590 | 590 |
| 591 WebString WebDevToolsAgentImpl::evaluateInWebInspectorOverlay( | 591 WebString WebDevToolsAgentImpl::evaluateInWebInspectorOverlay( |
| 592 const WebString& script) { | 592 const WebString& script) { |
| 593 if (!m_overlay) | 593 if (!m_overlay) |
| 594 return WebString(); | 594 return WebString(); |
| 595 | 595 |
| 596 return m_overlay->evaluateInOverlayForTest(script); | 596 return m_overlay->evaluateInOverlayForTest(script); |
| 597 } | 597 } |
| 598 | 598 |
| 599 bool WebDevToolsAgentImpl::cacheDisabled() { |
| 600 if (!m_networkAgent) |
| 601 return false; |
| 602 return m_networkAgent->cacheDisabled(); |
| 603 } |
| 604 |
| 599 void WebDevToolsAgentImpl::flushProtocolNotifications() { | 605 void WebDevToolsAgentImpl::flushProtocolNotifications() { |
| 600 if (m_session) | 606 if (m_session) |
| 601 m_session->flushProtocolNotifications(); | 607 m_session->flushProtocolNotifications(); |
| 602 } | 608 } |
| 603 | 609 |
| 604 void WebDevToolsAgentImpl::willProcessTask() { | 610 void WebDevToolsAgentImpl::willProcessTask() { |
| 605 if (!attached()) | 611 if (!attached()) |
| 606 return; | 612 return; |
| 607 ThreadDebugger::idleFinished(V8PerIsolateData::mainThreadIsolate()); | 613 ThreadDebugger::idleFinished(V8PerIsolateData::mainThreadIsolate()); |
| 608 } | 614 } |
| (...skipping 29 matching lines...) Expand all Loading... |
| 638 } | 644 } |
| 639 | 645 |
| 640 bool WebDevToolsAgent::shouldInterruptForMethod(const WebString& method) { | 646 bool WebDevToolsAgent::shouldInterruptForMethod(const WebString& method) { |
| 641 return method == "Debugger.pause" || method == "Debugger.setBreakpoint" || | 647 return method == "Debugger.pause" || method == "Debugger.setBreakpoint" || |
| 642 method == "Debugger.setBreakpointByUrl" || | 648 method == "Debugger.setBreakpointByUrl" || |
| 643 method == "Debugger.removeBreakpoint" || | 649 method == "Debugger.removeBreakpoint" || |
| 644 method == "Debugger.setBreakpointsActive"; | 650 method == "Debugger.setBreakpointsActive"; |
| 645 } | 651 } |
| 646 | 652 |
| 647 } // namespace blink | 653 } // namespace blink |
| OLD | NEW |