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

Side by Side Diff: Source/core/dom/MessagePort.h

Issue 126633004: Update DOM classes to use OVERRIDE / FINAL when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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
« no previous file with comments | « Source/core/dom/FullscreenElementStack.h ('k') | Source/core/dom/NamedFlow.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) 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 class MessagePort; 49 class MessagePort;
50 class ExecutionContext; 50 class ExecutionContext;
51 class SerializedScriptValue; 51 class SerializedScriptValue;
52 52
53 // The overwhelmingly common case is sending a single port, so handle that effic iently with an inline buffer of size 1. 53 // The overwhelmingly common case is sending a single port, so handle that effic iently with an inline buffer of size 1.
54 typedef Vector<RefPtr<MessagePort>, 1> MessagePortArray; 54 typedef Vector<RefPtr<MessagePort>, 1> MessagePortArray;
55 55
56 // Not to be confused with blink::WebMessagePortChannelArray; this one uses Vect or and OwnPtr instead of WebVector and raw pointers. 56 // Not to be confused with blink::WebMessagePortChannelArray; this one uses Vect or and OwnPtr instead of WebVector and raw pointers.
57 typedef Vector<OwnPtr<blink::WebMessagePortChannel>, 1> MessagePortChannelArray; 57 typedef Vector<OwnPtr<blink::WebMessagePortChannel>, 1> MessagePortChannelArray;
58 58
59 class MessagePort : public RefCounted<MessagePort> 59 class MessagePort FINAL : public RefCounted<MessagePort>
60 , public ActiveDOMObject 60 , public ActiveDOMObject
61 , public EventTargetWithInlineData 61 , public EventTargetWithInlineData
62 , public ScriptWrappable 62 , public ScriptWrappable
63 , public blink::WebMessagePortChannelClient { 63 , public blink::WebMessagePortChannelClient {
64 REFCOUNTED_EVENT_TARGET(MessagePort); 64 REFCOUNTED_EVENT_TARGET(MessagePort);
65 public: 65 public:
66 static PassRefPtr<MessagePort> create(ExecutionContext&); 66 static PassRefPtr<MessagePort> create(ExecutionContext&);
67 virtual ~MessagePort(); 67 virtual ~MessagePort();
68 68
69 void postMessage(PassRefPtr<SerializedScriptValue> message, const MessagePor tArray*, ExceptionState&); 69 void postMessage(PassRefPtr<SerializedScriptValue> message, const MessagePor tArray*, ExceptionState&);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 bool m_started; 115 bool m_started;
116 bool m_closed; 116 bool m_closed;
117 117
118 WeakPtrFactory<MessagePort> m_weakFactory; 118 WeakPtrFactory<MessagePort> m_weakFactory;
119 }; 119 };
120 120
121 } // namespace WebCore 121 } // namespace WebCore
122 122
123 #endif // MessagePort_h 123 #endif // MessagePort_h
OLDNEW
« no previous file with comments | « Source/core/dom/FullscreenElementStack.h ('k') | Source/core/dom/NamedFlow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698