Commit a702f92c authored by tasak@google.com's avatar tasak@google.com

Revert of Make classes and structures in web fast-allocated. (patchset #1 id:1...

Revert of Make classes and structures in web fast-allocated. (patchset #1 id:1 of https://codereview.chromium.org/1328773002/ )

Reason for revert:
Revert to see whether SitePerProcessBrowserTest.SurfaceHitTestTest flakiness is caused by this commit or not.


Original issue's description:
> Make classes and structures in web fast-allocated.
> 
> - Added STATIC_ONLY, STACK_ALLOCATED, DISALLOW_ALLOCATION, or ALLOW_ONLY_INLINE_ALLOCATION
>   instead of WTF_MAKE_FAST_ALLOCATED(_WILL_BE_REMOVED) if possible.
> 
> BUG=523249
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201771

TBR=haraken@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=523249

Review URL: https://codereview.chromium.org/1326693003

git-svn-id: svn://svn.chromium.org/blink/trunk@201789 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 7d3ee21c
......@@ -27,7 +27,6 @@
#define GraphicsLayerFactory_h
#include "platform/PlatformExport.h"
#include "wtf/FastAllocBase.h"
#include "wtf/Forward.h"
namespace blink {
......@@ -36,7 +35,6 @@ class GraphicsLayer;
class GraphicsLayerClient;
class PLATFORM_EXPORT GraphicsLayerFactory {
WTF_MAKE_FAST_ALLOCATED(GraphicsLayerFactory);
public:
virtual ~GraphicsLayerFactory() { }
......
......@@ -44,7 +44,6 @@ class WebLocalFrameImpl;
// This class is used to implement WebFrame::createAssociatedURLLoader.
class AssociatedURLLoader final : public WebURLLoader {
WTF_MAKE_FAST_ALLOCATED(AssociatedURLLoader);
WTF_MAKE_NONCOPYABLE(AssociatedURLLoader);
public:
AssociatedURLLoader(PassRefPtrWillBeRawPtr<WebLocalFrameImpl>, const WebURLLoaderOptions&);
......
......@@ -40,7 +40,6 @@ class WebColorChooser;
class ColorChooserUIController : public NoBaseWillBeGarbageCollectedFinalized<ColorChooserUIController>, public WebColorChooserClient, public ColorChooser {
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ColorChooserUIController);
WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(ColorChooserUIController);
public:
static PassOwnPtrWillBeRawPtr<ColorChooserUIController> create(LocalFrame* frame, ColorChooserClient* client)
{
......
......@@ -32,7 +32,6 @@
#define ContextMenuClientImpl_h
#include "core/page/ContextMenuClient.h"
#include "wtf/Allocator.h"
namespace blink {
......@@ -40,7 +39,6 @@ class WebViewImpl;
struct WebContextMenuData;
class ContextMenuClientImpl final : public ContextMenuClient {
DISALLOW_ALLOCATION();
public:
explicit ContextMenuClientImpl(WebViewImpl* webView) : m_webView(webView) { }
~ContextMenuClientImpl() override {}
......
......@@ -38,7 +38,6 @@ namespace blink {
class DatabaseClientImpl final : public NoBaseWillBeGarbageCollectedFinalized<DatabaseClientImpl>, public DatabaseClient {
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DatabaseClientImpl);
WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(DatabaseClientImpl);
public:
static PassOwnPtrWillBeRawPtr<DatabaseClientImpl> create();
......
......@@ -19,7 +19,6 @@ class WebViewImpl;
struct WebDeviceEmulationParams;
class DevToolsEmulator final : public NoBaseWillBeGarbageCollectedFinalized<DevToolsEmulator> {
WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(DevToolsEmulator);
public:
~DevToolsEmulator();
static PassOwnPtrWillBeRawPtr<DevToolsEmulator> create(WebViewImpl*);
......
......@@ -33,14 +33,12 @@
#include "core/page/DragActions.h"
#include "core/page/DragClient.h"
#include "wtf/Allocator.h"
namespace blink {
class WebViewImpl;
class DragClientImpl final : public DragClient {
DISALLOW_ALLOCATION();
public:
explicit DragClientImpl(WebViewImpl* webView) : m_webView(webView) { }
......
......@@ -32,7 +32,6 @@
#define EditorClientImpl_h
#include "core/page/EditorClient.h"
#include "wtf/Allocator.h"
#include "wtf/Forward.h"
namespace blink {
......@@ -41,7 +40,6 @@ class LocalFrame;
class WebViewImpl;
class EditorClientImpl final : public EditorClient {
DISALLOW_ALLOCATION();
public:
explicit EditorClientImpl(WebViewImpl*);
~EditorClientImpl() override;
......
......@@ -45,7 +45,6 @@ class LocalFrame;
class WebViewImpl;
class FullscreenController final : public NoBaseWillBeGarbageCollected<FullscreenController> {
WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(FullscreenController);
public:
static PassOwnPtrWillBeRawPtr<FullscreenController> create(WebViewImpl*);
......
......@@ -50,7 +50,6 @@ class LinkHighlightImpl final : public LinkHighlight
, public WebContentLayerClient
, public WebCompositorAnimationDelegate
, public WebCompositorAnimationPlayerClient {
WTF_MAKE_FAST_ALLOCATED(LinkHighlightImpl);
public:
static PassOwnPtr<LinkHighlightImpl> create(Node*, WebViewImpl*);
~LinkHighlightImpl() override;
......
......@@ -40,7 +40,6 @@ class MIDIAccessInitializer;
class WebMIDIClient;
class MIDIClientProxy final : public MIDIClient {
WTF_MAKE_FAST_ALLOCATED(MIDIClientProxy);
public:
static PassOwnPtr<MIDIClientProxy> create(WebMIDIClient* client)
{
......
......@@ -6,12 +6,10 @@
#define MediaKeysClientImpl_h
#include "modules/encryptedmedia/MediaKeysClient.h"
#include "wtf/Allocator.h"
namespace blink {
class MediaKeysClientImpl final : public MediaKeysClient {
DISALLOW_ALLOCATION();
public:
MediaKeysClientImpl();
......
......@@ -12,7 +12,6 @@ namespace blink {
class NotificationPermissionClientImpl : public NoBaseWillBeGarbageCollectedFinalized<NotificationPermissionClientImpl>, public NotificationPermissionClient {
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NotificationPermissionClientImpl);
WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(NotificationPermissionClientImpl);
public:
static PassOwnPtrWillBeRawPtr<NotificationPermissionClientImpl> create();
......
......@@ -5,7 +5,6 @@
#ifndef OpenedFrameTracker_h
#define OpenedFrameTracker_h
#include "wtf/FastAllocBase.h"
#include "wtf/HashSet.h"
#include "wtf/Noncopyable.h"
......@@ -19,7 +18,6 @@ class WebFrame;
// Due to layering restrictions, we need to hide the implementation, since
// public/web/ cannot depend on wtf/.
class OpenedFrameTracker {
WTF_MAKE_FAST_ALLOCATED(OpenedFrameTracker);
WTF_MAKE_NONCOPYABLE(OpenedFrameTracker);
public:
OpenedFrameTracker();
......
......@@ -32,7 +32,6 @@
#include "platform/graphics/GraphicsLayer.h"
#include "platform/graphics/GraphicsLayerClient.h"
#include "platform/graphics/paint/DisplayItemClient.h"
#include "wtf/FastAllocBase.h"
#include "wtf/OwnPtr.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/text/WTFString.h"
......@@ -50,7 +49,6 @@ class WebGraphicsContext;
// With Slimming Paint, internal clients can extract a GraphicsContext to add
// to the DisplayItemList owned by the GraphicsLayer
class PageOverlay : public GraphicsLayerClient {
WTF_MAKE_FAST_ALLOCATED(PageOverlay);
public:
class Delegate : public GarbageCollectedFinalized<Delegate> {
public:
......
......@@ -33,7 +33,6 @@
#include "public/platform/WebCanvas.h"
#include "public/web/WebWidget.h"
#include "wtf/Allocator.h"
#include "wtf/OwnPtr.h"
namespace blink {
......@@ -64,7 +63,6 @@ public:
// Common implementation of WebViewImpl and WebPagePopupImpl.
class PageWidgetDelegate {
STATIC_ONLY(PageWidgetDelegate);
public:
// rootFrame arguments indicate a root localFrame from which to start performing the
// specified operation. If rootFrame is 0, these methods will attempt to use the
......@@ -74,6 +72,9 @@ public:
static void paint(Page&, WebCanvas*, const WebRect&, LocalFrame& root);
static void paintIgnoringCompositing(Page&, WebCanvas*, const WebRect&, LocalFrame& root);
static bool handleInputEvent(PageWidgetEventHandler&, const WebInputEvent&, LocalFrame* root);
private:
PageWidgetDelegate() { }
};
}
......
......@@ -44,7 +44,6 @@ class WebPrerendererClient;
class PrerendererClientImpl final : public NoBaseWillBeGarbageCollected<PrerendererClientImpl>, public PrerendererClient {
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PrerendererClientImpl);
WTF_MAKE_NONCOPYABLE(PrerendererClientImpl);
WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(PrerendererClientImpl);
public:
explicit PrerendererClientImpl(WebPrerendererClient*);
......
......@@ -17,7 +17,6 @@ namespace blink {
// 2. Trigger a load event on its owner element once it finishes a load.
class RemoteBridgeFrameOwner final : public NoBaseWillBeGarbageCollectedFinalized<RemoteBridgeFrameOwner>, public FrameOwner {
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(RemoteBridgeFrameOwner);
WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(RemoteBridgeFrameOwner);
public:
static PassOwnPtrWillBeRawPtr<RemoteBridgeFrameOwner> create(PassRefPtrWillBeRawPtr<WebLocalFrameImpl> frame, SandboxFlags flags)
{
......
......@@ -29,7 +29,6 @@
#include "modules/speech/SpeechRecognitionClient.h"
#include "public/web/WebSpeechRecognizerClient.h"
#include "wtf/Compiler.h"
#include "wtf/FastAllocBase.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/text/WTFString.h"
......@@ -40,7 +39,6 @@ class WebSpeechRecognizer;
class WebString;
class SpeechRecognitionClientProxy final : public SpeechRecognitionClient, public WebSpeechRecognizerClient {
WTF_MAKE_FAST_ALLOCATED(SpeechRecognitionClientProxy);
public:
~SpeechRecognitionClientProxy() override;
......
......@@ -34,14 +34,12 @@
#include "core/page/SpellCheckerClient.h"
#include "platform/heap/Handle.h"
#include "platform/text/TextCheckerClient.h"
#include "wtf/Allocator.h"
namespace blink {
class WebViewImpl;
class SpellCheckerClientImpl final : public SpellCheckerClient, public TextCheckerClient {
DISALLOW_ALLOCATION();
public:
explicit SpellCheckerClientImpl(WebViewImpl*);
......
......@@ -6,14 +6,12 @@
#define StorageClientImpl_h
#include "modules/storage/StorageClient.h"
#include "wtf/Allocator.h"
namespace blink {
class WebViewImpl;
class StorageClientImpl : public StorageClient {
DISALLOW_ALLOCATION();
public:
explicit StorageClientImpl(WebViewImpl*);
......
......@@ -38,7 +38,6 @@ namespace blink {
class StorageQuotaClientImpl : public NoBaseWillBeGarbageCollectedFinalized<StorageQuotaClientImpl>, public StorageQuotaClient {
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(StorageQuotaClientImpl);
WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(StorageQuotaClientImpl);
public:
static PassOwnPtrWillBeRawPtr<StorageQuotaClientImpl> create()
{
......
......@@ -51,7 +51,6 @@ class WebLocalFrameImpl;
template <typename T> class WebVector;
class TextFinder final : public NoBaseWillBeGarbageCollectedFinalized<TextFinder> {
WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(TextFinder);
public:
static PassOwnPtrWillBeRawPtr<TextFinder> create(WebLocalFrameImpl& ownerFrame);
......
......@@ -32,7 +32,6 @@
#define UserMediaClientImpl_h
#include "modules/mediastream/UserMediaClient.h"
#include "wtf/Allocator.h"
#include "wtf/PassRefPtr.h"
namespace blink {
......@@ -43,7 +42,6 @@ class WebUserMediaClient;
class WebLocalFrameImpl;
class UserMediaClientImpl final : public UserMediaClient {
DISALLOW_ALLOCATION();
public:
explicit UserMediaClientImpl(WebLocalFrameImpl*);
......
......@@ -39,7 +39,6 @@ class WebViewImpl;
class ValidationMessageClientImpl final : public NoBaseWillBeGarbageCollectedFinalized<ValidationMessageClientImpl>, public ValidationMessageClient {
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ValidationMessageClientImpl);
WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(ValidationMessageClientImpl);
public:
static PassOwnPtrWillBeRawPtr<ValidationMessageClientImpl> create(WebViewImpl&);
~ValidationMessageClientImpl() override;
......
......@@ -74,7 +74,6 @@ class WebDevToolsAgentImpl final
, public InspectorRuntimeAgent::Client
, public InspectorFrontendChannel
, private WebThread::TaskObserver {
WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(WebDevToolsAgentImpl);
public:
static PassOwnPtrWillBeRawPtr<WebDevToolsAgentImpl> create(WebLocalFrameImpl*, WebDevToolsAgentClient*);
~WebDevToolsAgentImpl() override;
......
......@@ -45,7 +45,6 @@ class WebLocalFrameImpl;
class WebDevToolsFrontendImpl final : public WebDevToolsFrontend, public InspectorFrontendClient {
WTF_MAKE_NONCOPYABLE(WebDevToolsFrontendImpl);
WTF_MAKE_FAST_ALLOCATED(WebDevToolsFrontendImpl);
public:
WebDevToolsFrontendImpl(WebLocalFrameImpl*, WebDevToolsFrontendClient*);
~WebDevToolsFrontendImpl() override;
......
......@@ -55,7 +55,6 @@ class WebEmbeddedWorkerImpl final
, public WebDevToolsAgentClient
, private WorkerLoaderProxyProvider {
WTF_MAKE_NONCOPYABLE(WebEmbeddedWorkerImpl);
WTF_MAKE_FAST_ALLOCATED(WebEmbeddedWorkerImpl);
public:
WebEmbeddedWorkerImpl(PassOwnPtr<WebServiceWorkerContextClient>, PassOwnPtr<WebWorkerContentSettingsClientProxy>);
~WebEmbeddedWorkerImpl() override;
......
......@@ -31,7 +31,6 @@
#ifndef WebEntities_h
#define WebEntities_h
#include "wtf/Allocator.h"
#include "wtf/HashMap.h"
#include "wtf/text/WTFString.h"
......@@ -39,7 +38,6 @@ namespace blink {
// FIXME: This class is wrong and needs to be removed!
class WebEntities {
DISALLOW_ALLOCATION();
public:
// &apos;, &percnt;, &nsup;, &supl; are not defined by the HTML standards.
// - IE does not support &apos; as an HTML entity (but support it as an XML
......
......@@ -35,13 +35,11 @@
#include "public/platform/WebString.h"
#include "public/platform/WebVector.h"
#include "public/web/WebFileChooserCompletion.h"
#include "wtf/FastAllocBase.h"
#include "wtf/PassRefPtr.h"
namespace blink {
class WebFileChooserCompletionImpl final : public WebFileChooserCompletion {
WTF_MAKE_FAST_ALLOCATED(WebFileChooserCompletionImpl);
public:
explicit WebFileChooserCompletionImpl(PassRefPtr<FileChooser>);
~WebFileChooserCompletionImpl() override;
......
......@@ -34,14 +34,12 @@
#include "platform/fonts/Font.h"
#include "platform/graphics/paint/DisplayItemClient.h"
#include "public/web/WebFont.h"
#include "wtf/FastAllocBase.h"
namespace blink {
class FontDescription;
class WebFontImpl final : public WebFont {
WTF_MAKE_FAST_ALLOCATED(WebFontImpl);
public:
explicit WebFontImpl(const FontDescription&);
......
......@@ -8,7 +8,6 @@
#include "platform/graphics/paint/DisplayItem.h"
#include "platform/graphics/paint/DisplayItemClient.h"
#include "public/web/WebGraphicsContext.h"
#include "wtf/Allocator.h"
#include "wtf/OwnPtr.h"
namespace blink {
......@@ -19,8 +18,7 @@ class GraphicsContext;
// Wraps a blink::GraphicsContext.
// Internal consumers can extract the underlying context (via WebGraphicsContextImpl).
// External consumers can make a single drawing using a WebCanvas.
class WebGraphicsContextImpl final : public WebGraphicsContext {
DISALLOW_ALLOCATION();
class WebGraphicsContextImpl : public WebGraphicsContext {
public:
WebGraphicsContextImpl(GraphicsContext&, const DisplayItemClientWrapper&, DisplayItem::Type);
~WebGraphicsContextImpl();
......
......@@ -37,7 +37,6 @@
#include "platform/PlatformTouchEvent.h"
#include "platform/PlatformWheelEvent.h"
#include "public/web/WebInputEvent.h"
#include "wtf/Allocator.h"
namespace blink {
......@@ -58,25 +57,21 @@ class Widget;
// corresponding WebCore events.
class PlatformMouseEventBuilder : public PlatformMouseEvent {
DISALLOW_ALLOCATION();
public:
PlatformMouseEventBuilder(Widget*, const WebMouseEvent&);
};
class PlatformWheelEventBuilder : public PlatformWheelEvent {
DISALLOW_ALLOCATION();
public:
PlatformWheelEventBuilder(Widget*, const WebMouseWheelEvent&);
};
class PlatformGestureEventBuilder : public PlatformGestureEvent {
DISALLOW_ALLOCATION();
public:
PlatformGestureEventBuilder(Widget*, const WebGestureEvent&);
};
class PlatformKeyboardEventBuilder : public PlatformKeyboardEvent {
DISALLOW_ALLOCATION();
public:
PlatformKeyboardEventBuilder(const WebKeyboardEvent&);
void setKeyType(Type);
......@@ -85,20 +80,17 @@ public:
// Converts a WebTouchPoint to a PlatformTouchPoint.
class PlatformTouchPointBuilder : public PlatformTouchPoint {
DISALLOW_ALLOCATION();
public:
PlatformTouchPointBuilder(Widget*, const WebTouchPoint&);
};
// Converts a WebTouchEvent to a PlatformTouchEvent.
class PlatformTouchEventBuilder : public PlatformTouchEvent {
DISALLOW_ALLOCATION();
public:
PlatformTouchEventBuilder(Widget*, const WebTouchEvent&);
};
class WebMouseEventBuilder : public WebMouseEvent {
WTF_MAKE_FAST_ALLOCATED(WebMouseEventBuilder);
public:
// Converts a MouseEvent to a corresponding WebMouseEvent.
// NOTE: This is only implemented for mousemove, mouseover, mouseout,
......@@ -111,7 +103,6 @@ public:
// Converts a WheelEvent to a corresponding WebMouseWheelEvent.
// If the event mapping fails, the event type will be set to Undefined.
class WebMouseWheelEventBuilder : public WebMouseWheelEvent {
WTF_MAKE_FAST_ALLOCATED(WebMouseWheelEventBuilder);
public:
WebMouseWheelEventBuilder(const Widget*, const LayoutObject*, const WheelEvent&);
};
......@@ -122,7 +113,6 @@ public:
// keyup, and keypress. If the event mapping fails, the event type will be set
// to Undefined.
class WebKeyboardEventBuilder : public WebKeyboardEvent {
WTF_MAKE_FAST_ALLOCATED(WebKeyboardEventBuilder);
public:
WebKeyboardEventBuilder(const KeyboardEvent&);
};
......@@ -131,7 +121,6 @@ public:
// NOTE: WebTouchEvents have a cap on the number of WebTouchPoints. Any points
// exceeding that cap will be dropped.
class WebTouchEventBuilder : public WebTouchEvent {
DISALLOW_ALLOCATION();
public:
WebTouchEventBuilder(const LayoutObject*, const TouchEvent&);
};
......@@ -139,7 +128,6 @@ public:
// Converts GestureEvent to a corresponding WebGestureEvent.
// NOTE: If event mapping fails, the type will be set to Undefined.
class WebGestureEventBuilder : public WebGestureEvent {
DISALLOW_ALLOCATION();
public:
WebGestureEventBuilder(const LayoutObject*, const GestureEvent&);
};
......
......@@ -32,7 +32,6 @@
#define WebPluginLoadObserver_h
#include "public/platform/WebURL.h"
#include "wtf/FastAllocBase.h"
namespace blink {
......@@ -40,7 +39,6 @@ class WebPluginContainerImpl;
struct WebURLError;
class WebPluginLoadObserver {
WTF_MAKE_FAST_ALLOCATED(WebPluginLoadObserver);
public:
WebPluginLoadObserver(WebPluginContainerImpl* pluginContainer,
const WebURL& notifyURL, void* notifyData)
......
......@@ -32,7 +32,6 @@
#define WebSettingsImpl_h
#include "public/web/WebSettings.h"
#include "wtf/FastAllocBase.h"
namespace blink {
......@@ -40,7 +39,6 @@ class DevToolsEmulator;
class Settings;
class WebSettingsImpl final : public WebSettings {
WTF_MAKE_FAST_ALLOCATED(WebSettingsImpl);
public:
WebSettingsImpl(Settings*, DevToolsEmulator*);
virtual ~WebSettingsImpl() { }
......
......@@ -70,7 +70,6 @@ class WebSharedWorkerImpl final
, public WebSharedWorker
, public WebDevToolsAgentClient
, private WorkerLoaderProxyProvider {
WTF_MAKE_FAST_ALLOCATED(WebSharedWorkerImpl);
public:
explicit WebSharedWorkerImpl(WebSharedWorkerClient*);
......
......@@ -37,7 +37,6 @@
#include "public/platform/WebString.h"
#include "public/web/WebSocket.h"
#include "public/web/WebSocketClient.h"
#include "wtf/FastAllocBase.h"
#include "wtf/OwnPtr.h"
#include "wtf/RefPtr.h"
......@@ -49,7 +48,6 @@ class WebSocketChannelClientProxy;
class WebURL;
class WebSocketImpl final : public WebSocket {
WTF_MAKE_FAST_ALLOCATED(WebSocketImpl);
public:
WebSocketImpl(const WebDocument&, WebSocketClient*);
~WebSocketImpl() override;
......
......@@ -39,7 +39,6 @@
namespace blink {
class WebTextCheckingCompletionImpl final : public WebTextCheckingCompletion {
WTF_MAKE_FAST_ALLOCATED(WebTextCheckingCompletionImpl);
public:
explicit WebTextCheckingCompletionImpl(PassRefPtrWillBeRawPtr<TextCheckingRequest> request)
: m_request(request)
......
......@@ -42,7 +42,6 @@ class WebWorkerContentSettingsClientProxy;
class WorkerContentSettingsClient final : public NoBaseWillBeGarbageCollectedFinalized<WorkerContentSettingsClient>, public WillBeHeapSupplement<WorkerClients> {
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerContentSettingsClient);
WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(WorkerContentSettingsClient);
public:
static PassOwnPtrWillBeRawPtr<WorkerContentSettingsClient> create(PassOwnPtr<WebWorkerContentSettingsClientProxy>);
virtual ~WorkerContentSettingsClient();
......
......@@ -43,7 +43,6 @@ class WorkerGlobalScopeProxy;
class WorkerGlobalScopeProxyProviderImpl final : public NoBaseWillBeGarbageCollectedFinalized<WorkerGlobalScopeProxyProviderImpl>, public WorkerGlobalScopeProxyProvider {
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerGlobalScopeProxyProviderImpl);
WTF_MAKE_NONCOPYABLE(WorkerGlobalScopeProxyProviderImpl);
WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(WorkerGlobalScopeProxyProviderImpl);
public:
static PassOwnPtrWillBeRawPtr<WorkerGlobalScopeProxyProviderImpl> create()
{
......
......@@ -33,7 +33,6 @@
#include "platform/geometry/IntPoint.h"
#include "platform/geometry/IntRect.h"
#include "wtf/Allocator.h"
#include "wtf/Vector.h"
namespace blink {
......@@ -41,7 +40,6 @@ namespace blink {
// This class is responsible for aggregating multiple invalidation and scroll
// commands to produce a scroll and repaint sequence.
class PaintAggregator {
STACK_ALLOCATED();
public:
// This structure describes an aggregation of invalidateRect and scrollRect
// calls. If |scrollRect| is non-empty, then that rect should be scrolled
......@@ -51,7 +49,6 @@ public:
// |scrollDelta| can only specify scrolling in one direction (i.e., the x
// and y members cannot both be non-zero).
struct PendingUpdate {
STACK_ALLOCATED();
PendingUpdate();
~PendingUpdate();
......
......@@ -32,7 +32,6 @@
#define FakeWebPlugin_h
#include "public/web/WebPlugin.h"
#include "wtf/FastAllocBase.h"
namespace blink {
......@@ -45,7 +44,6 @@ class WebURLResponse;
struct WebPluginParams;
class FakeWebPlugin : public WebPlugin {
WTF_MAKE_FAST_ALLOCATED(FakeWebPlugin);
public:
FakeWebPlugin(WebFrame*, const WebPluginParams&);
......
......@@ -40,7 +40,6 @@
#include "public/web/WebRemoteFrameClient.h"
#include "public/web/WebViewClient.h"
#include "web/WebViewImpl.h"
#include "wtf/Allocator.h"
#include "wtf/PassOwnPtr.h"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
......@@ -75,7 +74,6 @@ public:
// Convenience class for handling the lifetime of a WebView and its associated mainframe in tests.
class WebViewHelper {
DISALLOW_ALLOCATION();
WTF_MAKE_NONCOPYABLE(WebViewHelper);
public:
WebViewHelper(SettingOverrider* = 0);
......@@ -103,7 +101,6 @@ private:
// Minimal implementation of WebFrameClient needed for unit tests that load frames. Tests that load
// frames and need further specialization of WebFrameClient behavior should subclass this.
class TestWebFrameClient : public WebFrameClient {
WTF_MAKE_FAST_ALLOCATED(TestWebFrameClient);
public:
TestWebFrameClient();
......@@ -122,7 +119,6 @@ private:
// Minimal implementation of WebRemoteFrameClient needed for unit tests that load remote frames. Tests that load
// frames and need further specialization of WebFrameClient behavior should subclass this.
class TestWebRemoteFrameClient : public WebRemoteFrameClient {
DISALLOW_ALLOCATION();
public:
TestWebRemoteFrameClient();
......@@ -141,7 +137,6 @@ private:
};
class TestWebViewClient : public WebViewClient {
WTF_MAKE_FAST_ALLOCATED(TestWebViewClient);
public:
virtual ~TestWebViewClient() { }
void initializeLayerTreeView() override;
......@@ -152,7 +147,6 @@ private:
};
class UseMockScrollbarSettings {
DISALLOW_ALLOCATION();
public:
UseMockScrollbarSettings()
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment