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

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

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
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 22 matching lines...) Expand all
33 33
34 #include "core/inspector/InspectorRuntimeAgent.h" 34 #include "core/inspector/InspectorRuntimeAgent.h"
35 #include "wtf/PassOwnPtr.h" 35 #include "wtf/PassOwnPtr.h"
36 36
37 namespace WebCore { 37 namespace WebCore {
38 38
39 class WorkerGlobalScope; 39 class WorkerGlobalScope;
40 40
41 class WorkerRuntimeAgent FINAL : public InspectorRuntimeAgent { 41 class WorkerRuntimeAgent FINAL : public InspectorRuntimeAgent {
42 public: 42 public:
43 static PassOwnPtr<WorkerRuntimeAgent> create(InjectedScriptManager* injected ScriptManager, ScriptDebugServer* scriptDebugServer, WorkerGlobalScope* context) 43 static PassOwnPtrWillBeRawPtr<WorkerRuntimeAgent> create(InjectedScriptManag er* injectedScriptManager, ScriptDebugServer* scriptDebugServer, WorkerGlobalSco pe* context)
44 { 44 {
45 return adoptPtr(new WorkerRuntimeAgent(injectedScriptManager, scriptDebu gServer, context)); 45 return adoptPtrWillBeNoop(new WorkerRuntimeAgent(injectedScriptManager, scriptDebugServer, context));
46 } 46 }
47 virtual ~WorkerRuntimeAgent(); 47 virtual ~WorkerRuntimeAgent();
48 48
49 virtual void init() OVERRIDE; 49 virtual void init() OVERRIDE;
50 virtual void enable(ErrorString*) OVERRIDE; 50 virtual void enable(ErrorString*) OVERRIDE;
51 51
52 // Protocol commands. 52 // Protocol commands.
53 virtual void run(ErrorString*) OVERRIDE; 53 virtual void run(ErrorString*) OVERRIDE;
54 virtual void isRunRequired(ErrorString*, bool* out_result) OVERRIDE; 54 virtual void isRunRequired(ErrorString*, bool* out_result) OVERRIDE;
55 55
56 void willEvaluateWorkerScript(WorkerGlobalScope*, int workerThreadStartMode) ; 56 void willEvaluateWorkerScript(WorkerGlobalScope*, int workerThreadStartMode) ;
57 57
58 private: 58 private:
59 WorkerRuntimeAgent(InjectedScriptManager*, ScriptDebugServer*, WorkerGlobalS cope*); 59 WorkerRuntimeAgent(InjectedScriptManager*, ScriptDebugServer*, WorkerGlobalS cope*);
60 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut ionContextId) OVERRIDE; 60 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut ionContextId) OVERRIDE;
61 virtual void muteConsole() OVERRIDE; 61 virtual void muteConsole() OVERRIDE;
62 virtual void unmuteConsole() OVERRIDE; 62 virtual void unmuteConsole() OVERRIDE;
63 WorkerGlobalScope* m_workerGlobalScope; 63 WorkerGlobalScope* m_workerGlobalScope;
64 bool m_paused; 64 bool m_paused;
65 }; 65 };
66 66
67 } // namespace WebCore 67 } // namespace WebCore
68 68
69 #endif // !defined(InspectorPagerAgent_h) 69 #endif // !defined(InspectorPagerAgent_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/WorkerInspectorController.cpp ('k') | Source/core/inspector/WorkerRuntimeAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698