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

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

Issue 304353004: Oilpan: Reduce RefPtr to WorkerGlobalScope. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove deleteLifecycleNotifier Created 6 years, 6 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 | « no previous file | Source/core/dom/MessagePort.cpp » ('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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 typedef Vector<OwnPtr<blink::WebMessagePortChannel>, 1> MessagePortChannelArray; 57 typedef Vector<OwnPtr<blink::WebMessagePortChannel>, 1> MessagePortChannelArray;
58 58
59 class MessagePort FINAL : public RefCountedWillBeRefCountedGarbageCollected<Mess agePort> 59 class MessagePort FINAL : public RefCountedWillBeRefCountedGarbageCollected<Mess agePort>
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 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MessagePort); 65 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MessagePort);
66 public: 66 public:
67 static PassRefPtr<MessagePort> create(ExecutionContext&); 67 static PassRefPtrWillBeRawPtr<MessagePort> create(ExecutionContext&);
68 virtual ~MessagePort(); 68 virtual ~MessagePort();
69 69
70 void postMessage(PassRefPtr<SerializedScriptValue> message, const MessagePor tArray*, ExceptionState&); 70 void postMessage(PassRefPtr<SerializedScriptValue> message, const MessagePor tArray*, ExceptionState&);
71 71
72 void start(); 72 void start();
73 void close(); 73 void close();
74 74
75 void entangle(PassOwnPtr<blink::WebMessagePortChannel>); 75 void entangle(PassOwnPtr<blink::WebMessagePortChannel>);
76 PassOwnPtr<blink::WebMessagePortChannel> disentangle(); 76 PassOwnPtr<blink::WebMessagePortChannel> disentangle();
77 77
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 118
119 bool m_started; 119 bool m_started;
120 bool m_closed; 120 bool m_closed;
121 121
122 WeakPtrFactory<MessagePort> m_weakFactory; 122 WeakPtrFactory<MessagePort> m_weakFactory;
123 }; 123 };
124 124
125 } // namespace WebCore 125 } // namespace WebCore
126 126
127 #endif // MessagePort_h 127 #endif // MessagePort_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/MessagePort.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698