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

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: Introduce WorkerSettings 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 "WebWorkerSettingsImpl.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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
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;
107 108
109 virtual WebWorkerSettings* settings() OVERRIDE { return m_settings.get(); }
kinuko 2014/03/04 04:34:35 Unlike WebView case changing this after calling st
Pan 2014/03/06 08:50:56 yes, remove this impl
110
108 private: 111 private:
109 class Loader; 112 class Loader;
110 113
111 virtual ~WebSharedWorkerImpl(); 114 virtual ~WebSharedWorkerImpl();
112 115
113 WebSharedWorkerClient* client() { return m_client->get(); } 116 WebSharedWorkerClient* client() { return m_client->get(); }
114 117
115 void setWorkerThread(PassRefPtr<WebCore::WorkerThread> thread) { m_workerThr ead = thread; } 118 void setWorkerThread(PassRefPtr<WebCore::WorkerThread> thread) { m_workerThr ead = thread; }
116 WebCore::WorkerThread* workerThread() { return m_workerThread.get(); } 119 WebCore::WorkerThread* workerThread() { return m_workerThread.get(); }
117 120
(...skipping 29 matching lines...) Expand all
147 150
148 bool m_pauseWorkerContextOnStart; 151 bool m_pauseWorkerContextOnStart;
149 bool m_attachDevToolsOnStart; 152 bool m_attachDevToolsOnStart;
150 153
151 // Kept around only while main script loading is ongoing. 154 // Kept around only while main script loading is ongoing.
152 OwnPtr<Loader> m_mainScriptLoader; 155 OwnPtr<Loader> m_mainScriptLoader;
153 WebURL m_url; 156 WebURL m_url;
154 WebString m_name; 157 WebString m_name;
155 WebString m_contentSecurityPolicy; 158 WebString m_contentSecurityPolicy;
156 WebContentSecurityPolicyType m_policyType; 159 WebContentSecurityPolicyType m_policyType;
160
161 OwnPtr<WebWorkerSettingsImpl> m_settings;
157 }; 162 };
158 163
159 } // namespace blink 164 } // namespace blink
160 165
161 #endif 166 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698