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

Side by Side Diff: Source/core/workers/WorkerMessagingProxy.h

Issue 460363002: Record DevTools metadata events on worker threads when starting recoring tracing based Timeline (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // Implementations of WorkerGlobalScopeProxy. 53 // Implementations of WorkerGlobalScopeProxy.
54 // (Only use these methods in the worker object thread.) 54 // (Only use these methods in the worker object thread.)
55 virtual void startWorkerGlobalScope(const KURL& scriptURL, const String& use rAgent, const String& sourceCode, WorkerThreadStartMode) OVERRIDE; 55 virtual void startWorkerGlobalScope(const KURL& scriptURL, const String& use rAgent, const String& sourceCode, WorkerThreadStartMode) OVERRIDE;
56 virtual void terminateWorkerGlobalScope() OVERRIDE; 56 virtual void terminateWorkerGlobalScope() OVERRIDE;
57 virtual void postMessageToWorkerGlobalScope(PassRefPtr<SerializedScriptValue >, PassOwnPtr<MessagePortChannelArray>) OVERRIDE; 57 virtual void postMessageToWorkerGlobalScope(PassRefPtr<SerializedScriptValue >, PassOwnPtr<MessagePortChannelArray>) OVERRIDE;
58 virtual bool hasPendingActivity() const OVERRIDE; 58 virtual bool hasPendingActivity() const OVERRIDE;
59 virtual void workerObjectDestroyed() OVERRIDE; 59 virtual void workerObjectDestroyed() OVERRIDE;
60 virtual void connectToInspector(WorkerGlobalScopeProxy::PageInspector*) OVER RIDE; 60 virtual void connectToInspector(WorkerGlobalScopeProxy::PageInspector*) OVER RIDE;
61 virtual void disconnectFromInspector() OVERRIDE; 61 virtual void disconnectFromInspector() OVERRIDE;
62 virtual void sendMessageToInspector(const String&) OVERRIDE; 62 virtual void sendMessageToInspector(const String&) OVERRIDE;
63 virtual void writeTimelineStartedEvent(const String& sessionId) OVERRIDE;
63 64
64 // These methods come from worker context thread via WorkerObjectProxy 65 // These methods come from worker context thread via WorkerObjectProxy
65 // and are called on the worker object thread (e.g. main thread). 66 // and are called on the worker object thread (e.g. main thread).
66 void postMessageToWorkerObject(PassRefPtr<SerializedScriptValue>, PassOwnPtr <MessagePortChannelArray>); 67 void postMessageToWorkerObject(PassRefPtr<SerializedScriptValue>, PassOwnPtr <MessagePortChannelArray>);
67 void reportException(const String& errorMessage, int lineNumber, int columnN umber, const String& sourceURL); 68 void reportException(const String& errorMessage, int lineNumber, int columnN umber, const String& sourceURL);
68 void reportConsoleMessage(MessageSource, MessageLevel, const String& message , int lineNumber, const String& sourceURL); 69 void reportConsoleMessage(MessageSource, MessageLevel, const String& message , int lineNumber, const String& sourceURL);
69 void postMessageToPageInspector(const String&); 70 void postMessageToPageInspector(const String&);
70 void confirmMessageFromWorkerObject(bool hasPendingActivity); 71 void confirmMessageFromWorkerObject(bool hasPendingActivity);
71 void reportPendingActivity(bool hasPendingActivity); 72 void reportPendingActivity(bool hasPendingActivity);
72 void workerGlobalScopeClosed(); 73 void workerGlobalScopeClosed();
(...skipping 26 matching lines...) Expand all
99 100
100 Vector<OwnPtr<ExecutionContextTask> > m_queuedEarlyTasks; // Tasks are queue d here until there's a thread object created. 101 Vector<OwnPtr<ExecutionContextTask> > m_queuedEarlyTasks; // Tasks are queue d here until there's a thread object created.
101 WorkerGlobalScopeProxy::PageInspector* m_pageInspector; 102 WorkerGlobalScopeProxy::PageInspector* m_pageInspector;
102 103
103 OwnPtrWillBePersistent<WorkerClients> m_workerClients; 104 OwnPtrWillBePersistent<WorkerClients> m_workerClients;
104 }; 105 };
105 106
106 } // namespace blink 107 } // namespace blink
107 108
108 #endif // WorkerMessagingProxy_h 109 #endif // WorkerMessagingProxy_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698