| OLD | NEW |
| 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 26 matching lines...) Expand all Loading... |
| 37 #include "platform/wtf/text/WTFString.h" | 37 #include "platform/wtf/text/WTFString.h" |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 using protocol::Response; | 41 using protocol::Response; |
| 42 | 42 |
| 43 namespace WorkerAgentState { | 43 namespace WorkerAgentState { |
| 44 static const char kAutoAttach[] = "autoAttach"; | 44 static const char kAutoAttach[] = "autoAttach"; |
| 45 static const char kWaitForDebuggerOnStart[] = "waitForDebuggerOnStart"; | 45 static const char kWaitForDebuggerOnStart[] = "waitForDebuggerOnStart"; |
| 46 static const char kAttachedWorkerIds[] = "attachedWorkerIds"; | 46 static const char kAttachedWorkerIds[] = "attachedWorkerIds"; |
| 47 }; | 47 }; // namespace WorkerAgentState |
| 48 | 48 |
| 49 InspectorWorkerAgent::InspectorWorkerAgent(InspectedFrames* inspected_frames) | 49 InspectorWorkerAgent::InspectorWorkerAgent(InspectedFrames* inspected_frames) |
| 50 : inspected_frames_(inspected_frames) {} | 50 : inspected_frames_(inspected_frames) {} |
| 51 | 51 |
| 52 InspectorWorkerAgent::~InspectorWorkerAgent() {} | 52 InspectorWorkerAgent::~InspectorWorkerAgent() {} |
| 53 | 53 |
| 54 void InspectorWorkerAgent::Restore() { | 54 void InspectorWorkerAgent::Restore() { |
| 55 if (!AutoAttachEnabled()) | 55 if (!AutoAttachEnabled()) |
| 56 return; | 56 return; |
| 57 instrumenting_agents_->addInspectorWorkerAgent(this); | 57 instrumenting_agents_->addInspectorWorkerAgent(this); |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 GetFrontend()->receivedMessageFromTarget(proxy->InspectorId(), message); | 210 GetFrontend()->receivedMessageFromTarget(proxy->InspectorId(), message); |
| 211 } | 211 } |
| 212 | 212 |
| 213 DEFINE_TRACE(InspectorWorkerAgent) { | 213 DEFINE_TRACE(InspectorWorkerAgent) { |
| 214 visitor->Trace(connected_proxies_); | 214 visitor->Trace(connected_proxies_); |
| 215 visitor->Trace(inspected_frames_); | 215 visitor->Trace(inspected_frames_); |
| 216 InspectorBaseAgent::Trace(visitor); | 216 InspectorBaseAgent::Trace(visitor); |
| 217 } | 217 } |
| 218 | 218 |
| 219 } // namespace blink | 219 } // namespace blink |
| OLD | NEW |