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

Side by Side Diff: Source/web/WebSharedWorkerImpl.h

Issue 106353005: Expose performance.memory in workers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@Perf-Memory-SharedWorker
Patch Set: Created 6 years, 9 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #ifndef WebSharedWorkerImpl_h 31 #ifndef WebSharedWorkerImpl_h
32 #define WebSharedWorkerImpl_h 32 #define WebSharedWorkerImpl_h
33 33
34 #include "WebSharedWorker.h" 34 #include "WebSharedWorker.h"
35 35
36 #include "WebContentSecurityPolicy.h" 36 #include "WebContentSecurityPolicy.h"
37 #include "WebFrameClient.h" 37 #include "WebFrameClient.h"
38 #include "WebSharedWorkerClient.h" 38 #include "WebSharedWorkerClient.h"
39 #include "WebWorkerSettings.h"
39 #include "core/dom/ExecutionContext.h" 40 #include "core/dom/ExecutionContext.h"
40 #include "core/workers/WorkerLoaderProxy.h" 41 #include "core/workers/WorkerLoaderProxy.h"
41 #include "core/workers/WorkerReportingProxy.h" 42 #include "core/workers/WorkerReportingProxy.h"
42 #include "core/workers/WorkerScriptLoaderClient.h" 43 #include "core/workers/WorkerScriptLoaderClient.h"
43 #include "core/workers/WorkerThread.h" 44 #include "core/workers/WorkerThread.h"
44 #include "wtf/PassOwnPtr.h" 45 #include "wtf/PassOwnPtr.h"
45 #include "wtf/RefPtr.h" 46 #include "wtf/RefPtr.h"
46 #include "wtf/WeakPtr.h" 47 #include "wtf/WeakPtr.h"
47 48
48 namespace WebCore { 49 namespace WebCore {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 87
87 // WebCore::WorkerLoaderProxy methods: 88 // WebCore::WorkerLoaderProxy methods:
88 virtual void postTaskToLoader(PassOwnPtr<WebCore::ExecutionContextTask>) OVE RRIDE; 89 virtual void postTaskToLoader(PassOwnPtr<WebCore::ExecutionContextTask>) OVE RRIDE;
89 virtual bool postTaskToWorkerGlobalScope(PassOwnPtr<WebCore::ExecutionContex tTask>) OVERRIDE; 90 virtual bool postTaskToWorkerGlobalScope(PassOwnPtr<WebCore::ExecutionContex tTask>) OVERRIDE;
90 91
91 // WebFrameClient methods to support resource loading thru the 'shadow page' . 92 // WebFrameClient methods to support resource loading thru the 'shadow page' .
92 virtual WebApplicationCacheHost* createApplicationCacheHost(WebFrame*, WebAp plicationCacheHostClient*) OVERRIDE; 93 virtual WebApplicationCacheHost* createApplicationCacheHost(WebFrame*, WebAp plicationCacheHostClient*) OVERRIDE;
93 virtual void didFinishDocumentLoad(WebFrame*) OVERRIDE; 94 virtual void didFinishDocumentLoad(WebFrame*) OVERRIDE;
94 95
95 // WebSharedWorker methods: 96 // WebSharedWorker methods:
96 virtual void startWorkerContext(const WebURL&, const WebString& name, const WebString& contentSecurityPolicy, WebContentSecurityPolicyType) OVERRIDE; 97 virtual void startWorkerContext(const WebURL&, const WebString& name, const WebString& contentSecurityPolicy, WebContentSecurityPolicyType, const WebWorkerS ettings&) OVERRIDE;
97 virtual void connect(WebMessagePortChannel*) OVERRIDE; 98 virtual void connect(WebMessagePortChannel*) OVERRIDE;
98 virtual void terminateWorkerContext() OVERRIDE; 99 virtual void terminateWorkerContext() OVERRIDE;
99 virtual void clientDestroyed() OVERRIDE; 100 virtual void clientDestroyed() OVERRIDE;
100 101
101 virtual void pauseWorkerContextOnStart() OVERRIDE; 102 virtual void pauseWorkerContextOnStart() OVERRIDE;
102 virtual void resumeWorkerContext() OVERRIDE; 103 virtual void resumeWorkerContext() OVERRIDE;
103 virtual void attachDevTools() OVERRIDE; 104 virtual void attachDevTools() OVERRIDE;
104 virtual void reattachDevTools(const WebString& savedState) OVERRIDE; 105 virtual void reattachDevTools(const WebString& savedState) OVERRIDE;
105 virtual void detachDevTools() OVERRIDE; 106 virtual void detachDevTools() OVERRIDE;
106 virtual void dispatchDevToolsMessage(const WebString&) OVERRIDE; 107 virtual void dispatchDevToolsMessage(const WebString&) OVERRIDE;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 148
148 bool m_pauseWorkerContextOnStart; 149 bool m_pauseWorkerContextOnStart;
149 bool m_attachDevToolsOnStart; 150 bool m_attachDevToolsOnStart;
150 151
151 // Kept around only while main script loading is ongoing. 152 // Kept around only while main script loading is ongoing.
152 OwnPtr<Loader> m_mainScriptLoader; 153 OwnPtr<Loader> m_mainScriptLoader;
153 WebURL m_url; 154 WebURL m_url;
154 WebString m_name; 155 WebString m_name;
155 WebString m_contentSecurityPolicy; 156 WebString m_contentSecurityPolicy;
156 WebContentSecurityPolicyType m_policyType; 157 WebContentSecurityPolicyType m_policyType;
158
159 WebWorkerSettings m_settings;
157 }; 160 };
158 161
159 } // namespace blink 162 } // namespace blink
160 163
161 #endif 164 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698