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

Side by Side Diff: public/platform/WebSocketHandleClient.h

Issue 776693002: Clean forward declaration in public (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix fakewebplugin Created 6 years 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
« no previous file with comments | « public/platform/WebServiceWorkerProvider.h ('k') | public/platform/WebSpeechSynthesizer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 21 matching lines...) Expand all
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
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
OLDNEW
« no previous file with comments | « public/platform/WebServiceWorkerProvider.h ('k') | public/platform/WebSpeechSynthesizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698