| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 } | 114 } |
| 115 | 115 |
| 116 static void ensurePageScriptDebugServerCreated(WebDevToolsAgentClient* clien
t) | 116 static void ensurePageScriptDebugServerCreated(WebDevToolsAgentClient* clien
t) |
| 117 { | 117 { |
| 118 if (s_instance) | 118 if (s_instance) |
| 119 return; | 119 return; |
| 120 OwnPtr<ClientMessageLoopAdapter> instance = adoptPtr(new ClientMessageLo
opAdapter(adoptPtr(client->createClientMessageLoop()))); | 120 OwnPtr<ClientMessageLoopAdapter> instance = adoptPtr(new ClientMessageLo
opAdapter(adoptPtr(client->createClientMessageLoop()))); |
| 121 s_instance = instance.get(); | 121 s_instance = instance.get(); |
| 122 v8::Isolate* isolate = V8PerIsolateData::mainThreadIsolate(); | 122 v8::Isolate* isolate = V8PerIsolateData::mainThreadIsolate(); |
| 123 V8PerIsolateData* data = V8PerIsolateData::from(isolate); | 123 V8PerIsolateData* data = V8PerIsolateData::from(isolate); |
| 124 data->setScriptDebugServer(adoptPtr(new PageScriptDebugServer(instance.r
elease(), isolate))); | 124 data->setScriptDebugServer(adoptPtrWillBeNoop(new PageScriptDebugServer(
instance.release(), isolate))); |
| 125 } | 125 } |
| 126 | 126 |
| 127 static void inspectedViewClosed(WebViewImpl* view) | 127 static void inspectedViewClosed(WebViewImpl* view) |
| 128 { | 128 { |
| 129 if (s_instance) | 129 if (s_instance) |
| 130 s_instance->m_frozenViews.remove(view); | 130 s_instance->m_frozenViews.remove(view); |
| 131 } | 131 } |
| 132 | 132 |
| 133 static void didNavigate() | 133 static void didNavigate() |
| 134 { | 134 { |
| (...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 904 if (!InspectorBackendDispatcher::getCommandName(message, &commandName)) | 904 if (!InspectorBackendDispatcher::getCommandName(message, &commandName)) |
| 905 return false; | 905 return false; |
| 906 return commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_pauseCmd) | 906 return commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_pauseCmd) |
| 907 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_setBreakpointCmd) | 907 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_setBreakpointCmd) |
| 908 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_setBreakpointByUrlCmd) | 908 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_setBreakpointByUrlCmd) |
| 909 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_removeBreakpointCmd) | 909 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_removeBreakpointCmd) |
| 910 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_setBreakpointsActiveCmd); | 910 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_setBreakpointsActiveCmd); |
| 911 } | 911 } |
| 912 | 912 |
| 913 } // namespace blink | 913 } // namespace blink |
| OLD | NEW |