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/modules/websockets/WebSocketChannelClient.h

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 16 matching lines...) Expand all
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef WebSocketChannelClient_h 31 #ifndef WebSocketChannelClient_h
32 #define WebSocketChannelClient_h 32 #define WebSocketChannelClient_h
33 33
34 #include "modules/ModulesExport.h" 34 #include "modules/ModulesExport.h"
35 #include "platform/heap/Handle.h" 35 #include "platform/heap/Handle.h"
36 #include "wtf/Forward.h" 36 #include "wtf/Forward.h"
37 #include "wtf/PassOwnPtr.h"
38 #include "wtf/Vector.h" 37 #include "wtf/Vector.h"
38 #include <memory>
39 #include <stdint.h> 39 #include <stdint.h>
40 40
41 namespace blink { 41 namespace blink {
42 42
43 class MODULES_EXPORT WebSocketChannelClient : public GarbageCollectedMixin { 43 class MODULES_EXPORT WebSocketChannelClient : public GarbageCollectedMixin {
44 public: 44 public:
45 virtual ~WebSocketChannelClient() { } 45 virtual ~WebSocketChannelClient() { }
46 virtual void didConnect(const String& subprotocol, const String& extensions) { } 46 virtual void didConnect(const String& subprotocol, const String& extensions) { }
47 virtual void didReceiveTextMessage(const String&) { } 47 virtual void didReceiveTextMessage(const String&) { }
48 virtual void didReceiveBinaryMessage(PassOwnPtr<Vector<char>>) { } 48 virtual void didReceiveBinaryMessage(std::unique_ptr<Vector<char>>) { }
49 virtual void didError() { } 49 virtual void didError() { }
50 virtual void didConsumeBufferedAmount(uint64_t consumed) { } 50 virtual void didConsumeBufferedAmount(uint64_t consumed) { }
51 virtual void didStartClosingHandshake() { } 51 virtual void didStartClosingHandshake() { }
52 enum ClosingHandshakeCompletionStatus { 52 enum ClosingHandshakeCompletionStatus {
53 ClosingHandshakeIncomplete, 53 ClosingHandshakeIncomplete,
54 ClosingHandshakeComplete 54 ClosingHandshakeComplete
55 }; 55 };
56 virtual void didClose(ClosingHandshakeCompletionStatus, unsigned short /* co de */, const String& /* reason */) { } 56 virtual void didClose(ClosingHandshakeCompletionStatus, unsigned short /* co de */, const String& /* reason */) { }
57 DEFINE_INLINE_VIRTUAL_TRACE() { } 57 DEFINE_INLINE_VIRTUAL_TRACE() { }
58 58
59 protected: 59 protected:
60 WebSocketChannelClient() { } 60 WebSocketChannelClient() { }
61 }; 61 };
62 62
63 } // namespace blink 63 } // namespace blink
64 64
65 #endif // WebSocketChannelClient_h 65 #endif // WebSocketChannelClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698