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

Side by Side Diff: Source/modules/websockets/NewWebSocketChannelImpl.h

Issue 614373007: Oilpan: Remove adoptRefCountedGarbageCollected (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // This class may replace MainThreadWebSocketChannel. 60 // This class may replace MainThreadWebSocketChannel.
61 class NewWebSocketChannelImpl FINAL : public WebSocketChannel, public WebSocketH andleClient, public ContextLifecycleObserver { 61 class NewWebSocketChannelImpl FINAL : public WebSocketChannel, public WebSocketH andleClient, public ContextLifecycleObserver {
62 public: 62 public:
63 // You can specify the source file and the line number information 63 // You can specify the source file and the line number information
64 // explicitly by passing the last parameter. 64 // explicitly by passing the last parameter.
65 // In the usual case, they are set automatically and you don't have to 65 // In the usual case, they are set automatically and you don't have to
66 // pass it. 66 // pass it.
67 // Specify handle explicitly only in tests. 67 // Specify handle explicitly only in tests.
68 static NewWebSocketChannelImpl* create(ExecutionContext* context, WebSocketC hannelClient* client, const String& sourceURL = String(), unsigned lineNumber = 0, WebSocketHandle *handle = 0) 68 static NewWebSocketChannelImpl* create(ExecutionContext* context, WebSocketC hannelClient* client, const String& sourceURL = String(), unsigned lineNumber = 0, WebSocketHandle *handle = 0)
69 { 69 {
70 return adoptRefCountedGarbageCollected(new NewWebSocketChannelImpl(conte xt, client, sourceURL, lineNumber, handle)); 70 return new NewWebSocketChannelImpl(context, client, sourceURL, lineNumbe r, handle);
71 } 71 }
72 virtual ~NewWebSocketChannelImpl(); 72 virtual ~NewWebSocketChannelImpl();
73 73
74 // WebSocketChannel functions. 74 // WebSocketChannel functions.
75 virtual bool connect(const KURL&, const String& protocol) OVERRIDE; 75 virtual bool connect(const KURL&, const String& protocol) OVERRIDE;
76 virtual void send(const String& message) OVERRIDE; 76 virtual void send(const String& message) OVERRIDE;
77 virtual void send(const ArrayBuffer&, unsigned byteOffset, unsigned byteLeng th) OVERRIDE; 77 virtual void send(const ArrayBuffer&, unsigned byteOffset, unsigned byteLeng th) OVERRIDE;
78 virtual void send(PassRefPtr<BlobDataHandle>) OVERRIDE; 78 virtual void send(PassRefPtr<BlobDataHandle>) OVERRIDE;
79 virtual void send(PassOwnPtr<Vector<char> > data) OVERRIDE; 79 virtual void send(PassOwnPtr<Vector<char> > data) OVERRIDE;
80 // Start closing handshake. Use the CloseEventCodeNotSpecified for the code 80 // Start closing handshake. Use the CloseEventCodeNotSpecified for the code
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 String m_sourceURLAtConstruction; 181 String m_sourceURLAtConstruction;
182 unsigned m_lineNumberAtConstruction; 182 unsigned m_lineNumberAtConstruction;
183 RefPtr<WebSocketHandshakeRequest> m_handshakeRequest; 183 RefPtr<WebSocketHandshakeRequest> m_handshakeRequest;
184 184
185 static const int64_t receivedDataSizeForFlowControlHighWaterMark = 1 << 15; 185 static const int64_t receivedDataSizeForFlowControlHighWaterMark = 1 << 15;
186 }; 186 };
187 187
188 } // namespace blink 188 } // namespace blink
189 189
190 #endif // NewWebSocketChannelImpl_h 190 #endif // NewWebSocketChannelImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698