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

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

Issue 306053010: Tried using CrossThreadPersistent for workerDebuggerAgents (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
« no previous file with comments | « Source/core/inspector/WorkerRuntimeAgent.h ('k') | Source/core/page/Page.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 WorkerRuntimeAgent::WorkerRuntimeAgent(InjectedScriptManager* injectedScriptMana ger, ScriptDebugServer* scriptDebugServer, WorkerGlobalScope* workerGlobalScope) 45 WorkerRuntimeAgent::WorkerRuntimeAgent(InjectedScriptManager* injectedScriptMana ger, ScriptDebugServer* scriptDebugServer, WorkerGlobalScope* workerGlobalScope)
46 : InspectorRuntimeAgent(injectedScriptManager, scriptDebugServer) 46 : InspectorRuntimeAgent(injectedScriptManager, scriptDebugServer)
47 , m_workerGlobalScope(workerGlobalScope) 47 , m_workerGlobalScope(workerGlobalScope)
48 , m_paused(false) 48 , m_paused(false)
49 { 49 {
50 } 50 }
51 51
52 WorkerRuntimeAgent::~WorkerRuntimeAgent() 52 WorkerRuntimeAgent::~WorkerRuntimeAgent()
53 { 53 {
54 #if !ENABLE(OILPAN)
54 m_instrumentingAgents->setWorkerRuntimeAgent(0); 55 m_instrumentingAgents->setWorkerRuntimeAgent(0);
56 #endif
55 } 57 }
56 58
57 void WorkerRuntimeAgent::init() 59 void WorkerRuntimeAgent::init()
58 { 60 {
59 m_instrumentingAgents->setWorkerRuntimeAgent(this); 61 m_instrumentingAgents->setWorkerRuntimeAgent(this);
60 } 62 }
61 63
62 void WorkerRuntimeAgent::enable(ErrorString* errorString) 64 void WorkerRuntimeAgent::enable(ErrorString* errorString)
63 { 65 {
64 if (m_enabled) 66 if (m_enabled)
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 108
107 m_paused = true; 109 m_paused = true;
108 MessageQueueWaitResult result; 110 MessageQueueWaitResult result;
109 do { 111 do {
110 result = context->thread()->runLoop().runDebuggerTask(); 112 result = context->thread()->runLoop().runDebuggerTask();
111 // Keep waiting until execution is resumed. 113 // Keep waiting until execution is resumed.
112 } while (result == MessageQueueMessageReceived && m_paused); 114 } while (result == MessageQueueMessageReceived && m_paused);
113 } 115 }
114 116
115 } // namespace WebCore 117 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/inspector/WorkerRuntimeAgent.h ('k') | Source/core/page/Page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698