OLD | NEW |
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 25 matching lines...) Expand all Loading... |
36 #include "wtf/OwnPtr.h" | 36 #include "wtf/OwnPtr.h" |
37 #include "wtf/PassOwnPtr.h" | 37 #include "wtf/PassOwnPtr.h" |
38 #include "wtf/PassRefPtr.h" | 38 #include "wtf/PassRefPtr.h" |
39 #include "wtf/RefCounted.h" | 39 #include "wtf/RefCounted.h" |
40 #include "wtf/RefPtr.h" | 40 #include "wtf/RefPtr.h" |
41 #include "wtf/Vector.h" | 41 #include "wtf/Vector.h" |
42 #include "wtf/WeakPtr.h" | 42 #include "wtf/WeakPtr.h" |
43 | 43 |
44 namespace WebCore { | 44 namespace WebCore { |
45 | 45 |
46 class Event; | |
47 class ExceptionState; | 46 class ExceptionState; |
48 class LocalFrame; | |
49 class MessagePort; | 47 class MessagePort; |
50 class ExecutionContext; | 48 class ExecutionContext; |
51 class SerializedScriptValue; | 49 class SerializedScriptValue; |
52 | 50 |
53 // The overwhelmingly common case is sending a single port, so handle that effic
iently with an inline buffer of size 1. | 51 // The overwhelmingly common case is sending a single port, so handle that effic
iently with an inline buffer of size 1. |
54 typedef WillBeHeapVector<RefPtrWillBeMember<MessagePort>, 1> MessagePortArray; | 52 typedef WillBeHeapVector<RefPtrWillBeMember<MessagePort>, 1> MessagePortArray; |
55 | 53 |
56 // Not to be confused with blink::WebMessagePortChannelArray; this one uses Vect
or and OwnPtr instead of WebVector and raw pointers. | 54 // 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; | 55 typedef Vector<OwnPtr<blink::WebMessagePortChannel>, 1> MessagePortChannelArray; |
58 | 56 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 116 |
119 bool m_started; | 117 bool m_started; |
120 bool m_closed; | 118 bool m_closed; |
121 | 119 |
122 WeakPtrFactory<MessagePort> m_weakFactory; | 120 WeakPtrFactory<MessagePort> m_weakFactory; |
123 }; | 121 }; |
124 | 122 |
125 } // namespace WebCore | 123 } // namespace WebCore |
126 | 124 |
127 #endif // MessagePort_h | 125 #endif // MessagePort_h |
OLD | NEW |