OLD | NEW |
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 21 matching lines...) Expand all Loading... |
32 #define WebSocketHandleClient_h | 32 #define WebSocketHandleClient_h |
33 | 33 |
34 #include "WebCommon.h" | 34 #include "WebCommon.h" |
35 #include "public/platform/WebSocketHandle.h" | 35 #include "public/platform/WebSocketHandle.h" |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 class WebSocketHandshakeRequestInfo; | 39 class WebSocketHandshakeRequestInfo; |
40 class WebSocketHandshakeResponseInfo; | 40 class WebSocketHandshakeResponseInfo; |
41 class WebString; | 41 class WebString; |
42 class WebURL; | |
43 | 42 |
44 class WebSocketHandleClient { | 43 class WebSocketHandleClient { |
45 public: | 44 public: |
46 // Called when the handle is opened. | 45 // Called when the handle is opened. |
47 virtual void didConnect(WebSocketHandle*, bool fail, const WebString& select
edProtocol, const WebString& extensions) = 0; | 46 virtual void didConnect(WebSocketHandle*, bool fail, const WebString& select
edProtocol, const WebString& extensions) = 0; |
48 | 47 |
49 // Called when the browser starts the opening handshake. | 48 // Called when the browser starts the opening handshake. |
50 // This notification can be omitted when the inspector is not active. | 49 // This notification can be omitted when the inspector is not active. |
51 virtual void didStartOpeningHandshake(WebSocketHandle*, const WebSocketHands
hakeRequestInfo&) = 0; | 50 virtual void didStartOpeningHandshake(WebSocketHandle*, const WebSocketHands
hakeRequestInfo&) = 0; |
52 | 51 |
(...skipping 20 matching lines...) Expand all Loading... |
73 virtual void didReceiveFlowControl(WebSocketHandle*, int64_t quota) = 0; | 72 virtual void didReceiveFlowControl(WebSocketHandle*, int64_t quota) = 0; |
74 | 73 |
75 // Called when the browser receives a Close frame from the remote | 74 // Called when the browser receives a Close frame from the remote |
76 // server. Not called when the renderer initiates the closing handshake. | 75 // server. Not called when the renderer initiates the closing handshake. |
77 virtual void didStartClosingHandshake(WebSocketHandle*) = 0; | 76 virtual void didStartClosingHandshake(WebSocketHandle*) = 0; |
78 }; | 77 }; |
79 | 78 |
80 } // namespace blink | 79 } // namespace blink |
81 | 80 |
82 #endif // WebSocketHandleClient_h | 81 #endif // WebSocketHandleClient_h |
OLD | NEW |