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

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

Issue 1328773002: Make classes and structures in web fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « Source/web/WebSettingsImpl.h ('k') | Source/web/WebSocketImpl.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) 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // It can't use it directly since it uses WebKit types, so this class converts 63 // It can't use it directly since it uses WebKit types, so this class converts
64 // the data types. When the SharedWorker object wants to call 64 // the data types. When the SharedWorker object wants to call
65 // WorkerReportingProxy, this class will convert to Chrome data types first and 65 // WorkerReportingProxy, this class will convert to Chrome data types first and
66 // then call the supplied WebCommonWorkerClient. 66 // then call the supplied WebCommonWorkerClient.
67 class WebSharedWorkerImpl final 67 class WebSharedWorkerImpl final
68 : public WorkerReportingProxy 68 : public WorkerReportingProxy
69 , public WebFrameClient 69 , public WebFrameClient
70 , public WebSharedWorker 70 , public WebSharedWorker
71 , public WebDevToolsAgentClient 71 , public WebDevToolsAgentClient
72 , private WorkerLoaderProxyProvider { 72 , private WorkerLoaderProxyProvider {
73 WTF_MAKE_FAST_ALLOCATED(WebSharedWorkerImpl);
73 public: 74 public:
74 explicit WebSharedWorkerImpl(WebSharedWorkerClient*); 75 explicit WebSharedWorkerImpl(WebSharedWorkerClient*);
75 76
76 // WorkerReportingProxy methods: 77 // WorkerReportingProxy methods:
77 void reportException( 78 void reportException(
78 const WTF::String&, int, int, const WTF::String&, int) override; 79 const WTF::String&, int, int, const WTF::String&, int) override;
79 void reportConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) override; 80 void reportConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) override;
80 void postMessageToPageInspector(const WTF::String&) override; 81 void postMessageToPageInspector(const WTF::String&) override;
81 void postWorkerConsoleAgentEnabled() override { } 82 void postWorkerConsoleAgentEnabled() override { }
82 void didEvaluateWorkerScript(bool success) override { } 83 void didEvaluateWorkerScript(bool success) override { }
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 158
158 RefPtr<WorkerLoaderProxy> m_loaderProxy; 159 RefPtr<WorkerLoaderProxy> m_loaderProxy;
159 160
160 WebURL m_url; 161 WebURL m_url;
161 WebString m_name; 162 WebString m_name;
162 }; 163 };
163 164
164 } // namespace blink 165 } // namespace blink
165 166
166 #endif // WebSharedWorkerImpl_h 167 #endif // WebSharedWorkerImpl_h
OLDNEW
« no previous file with comments | « Source/web/WebSettingsImpl.h ('k') | Source/web/WebSocketImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698