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

Side by Side Diff: third_party/WebKit/Source/core/events/MessageEvent.h

Issue 2686503005: Remove SerializedScriptValue::serialize and ScriptValueSerializer::serializeWTFString. (Closed)
Patch Set: Merge branch 'master' into delete-ssv Created 3 years, 10 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) 2007 Henry Mason (hmason@mac.com) 2 * Copyright (C) 2007 Henry Mason (hmason@mac.com)
3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights
4 * reserved. 4 * reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 EventTarget* source, 101 EventTarget* source,
102 MessagePortArray*); 102 MessagePortArray*);
103 void initMessageEvent(const AtomicString& type, 103 void initMessageEvent(const AtomicString& type,
104 bool canBubble, 104 bool canBubble,
105 bool cancelable, 105 bool cancelable,
106 PassRefPtr<SerializedScriptValue> data, 106 PassRefPtr<SerializedScriptValue> data,
107 const String& origin, 107 const String& origin,
108 const String& lastEventId, 108 const String& lastEventId,
109 EventTarget* source, 109 EventTarget* source,
110 MessagePortArray*); 110 MessagePortArray*);
111 void initMessageEvent(const AtomicString& type,
112 bool canBubble,
113 bool cancelable,
114 const String& data,
115 const String& origin,
116 const String& lastEventId,
117 EventTarget* source,
118 MessagePortArray*);
111 119
112 const String& origin() const { return m_origin; } 120 const String& origin() const { return m_origin; }
113 const String& suborigin() const { return m_suborigin; } 121 const String& suborigin() const { return m_suborigin; }
114 const String& lastEventId() const { return m_lastEventId; } 122 const String& lastEventId() const { return m_lastEventId; }
115 EventTarget* source() const { return m_source.get(); } 123 EventTarget* source() const { return m_source.get(); }
116 MessagePortArray ports(bool& isNull) const; 124 MessagePortArray ports(bool& isNull) const;
117 MessagePortArray ports() const; 125 MessagePortArray ports() const;
118 MessagePortChannelArray* channels() const { 126 MessagePortChannelArray* channels() const {
119 return m_channels ? m_channels.get() : nullptr; 127 return m_channels ? m_channels.get() : nullptr;
120 } 128 }
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 // the MessageChannels in a disentangled state. Only one of them can be 214 // the MessageChannels in a disentangled state. Only one of them can be
207 // non-empty at a time. entangleMessagePorts() moves between the states. 215 // non-empty at a time. entangleMessagePorts() moves between the states.
208 Member<MessagePortArray> m_ports; 216 Member<MessagePortArray> m_ports;
209 std::unique_ptr<MessagePortChannelArray> m_channels; 217 std::unique_ptr<MessagePortChannelArray> m_channels;
210 String m_suborigin; 218 String m_suborigin;
211 }; 219 };
212 220
213 } // namespace blink 221 } // namespace blink
214 222
215 #endif // MessageEvent_h 223 #endif // MessageEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698