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

Unified Diff: third_party/WebKit/Source/modules/websockets/WebSocketChannel.h

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/websockets/WebSocketChannel.h
diff --git a/third_party/WebKit/Source/modules/websockets/WebSocketChannel.h b/third_party/WebKit/Source/modules/websockets/WebSocketChannel.h
index b702aaa8c9fa556e2a56d23bf130044443c89583..14cdd6862a630b9183f239813f45da43a1633833 100644
--- a/third_party/WebKit/Source/modules/websockets/WebSocketChannel.h
+++ b/third_party/WebKit/Source/modules/websockets/WebSocketChannel.h
@@ -37,7 +37,6 @@
#include "platform/v8_inspector/public/ConsoleTypes.h"
#include "wtf/Forward.h"
#include "wtf/Noncopyable.h"
-#include <memory>
namespace blink {
@@ -78,8 +77,8 @@ public:
virtual void send(PassRefPtr<BlobDataHandle>) = 0;
// For WorkerWebSocketChannel.
- virtual void sendTextAsCharVector(std::unique_ptr<Vector<char>>) = 0;
- virtual void sendBinaryAsCharVector(std::unique_ptr<Vector<char>>) = 0;
+ virtual void sendTextAsCharVector(PassOwnPtr<Vector<char>>) = 0;
+ virtual void sendBinaryAsCharVector(PassOwnPtr<Vector<char>>) = 0;
// Do not call |send| after calling this method.
virtual void close(int code, const String& reason) = 0;
@@ -92,7 +91,7 @@ public:
// and the "current" location in the sense of JavaScript execution
// may be shown if this method is called in a JS execution context.
// Location should not be null.
- virtual void fail(const String& reason, MessageLevel, std::unique_ptr<SourceLocation>) = 0;
+ virtual void fail(const String& reason, MessageLevel, PassOwnPtr<SourceLocation>) = 0;
// Do not call any methods after calling this method.
virtual void disconnect() = 0; // Will suppress didClose().

Powered by Google App Engine
This is Rietveld 408576698