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

Unified Diff: third_party/WebKit/Source/modules/presentation/PresentationConnection.h

Issue 1466573002: Presentation API: implement renderer side of PresentationConnection.close(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 1 month 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/presentation/PresentationConnection.h
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationConnection.h b/third_party/WebKit/Source/modules/presentation/PresentationConnection.h
index 29b1653fa565f28ee9808fd0efe20c6d05f90044..ddef430ede3852674cfd5788c7313e1ba2ebb067 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationConnection.h
+++ b/third_party/WebKit/Source/modules/presentation/PresentationConnection.h
@@ -52,6 +52,7 @@ public:
void send(PassRefPtr<DOMArrayBuffer>, ExceptionState&);
void send(PassRefPtr<DOMArrayBufferView>, ExceptionState&);
void send(Blob*, ExceptionState&);
+ void close();
void terminate();
String binaryType() const;
@@ -116,8 +117,8 @@ private:
void didFinishLoadingBlob(PassRefPtr<DOMArrayBuffer>);
void didFailLoadingBlob(FileError::ErrorCode);
- // Returns true iff current state is closed or terminated.
- bool isDisconnected() const;
+ // Cancel loads and pending messages when the connection is closed.
+ void tearDown();
String m_id;
String m_url;

Powered by Google App Engine
This is Rietveld 408576698