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

Side by Side Diff: Source/platform/network/SocketStreamHandleClient.h

Issue 311993006: [WebSocket] bufferedAmount should not decrease inside a task. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2009, 2011, 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2009, 2011, 2012 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 27 matching lines...) Expand all
38 class SocketStreamError; 38 class SocketStreamError;
39 class SocketStreamHandle; 39 class SocketStreamHandle;
40 40
41 class SocketStreamHandleClient { 41 class SocketStreamHandleClient {
42 public: 42 public:
43 virtual ~SocketStreamHandleClient() { } 43 virtual ~SocketStreamHandleClient() { }
44 44
45 virtual void didOpenSocketStream(SocketStreamHandle*) { } 45 virtual void didOpenSocketStream(SocketStreamHandle*) { }
46 virtual void didCloseSocketStream(SocketStreamHandle*) { } 46 virtual void didCloseSocketStream(SocketStreamHandle*) { }
47 virtual void didReceiveSocketStreamData(SocketStreamHandle*, const char* /*d ata*/, int /*length*/) { } 47 virtual void didReceiveSocketStreamData(SocketStreamHandle*, const char* /*d ata*/, int /*length*/) { }
48 virtual void didUpdateBufferedAmount(SocketStreamHandle*, size_t /*bufferedA mount*/) { } 48 virtual void didConsumeBufferedAmount(SocketStreamHandle*, size_t amount) { }
tyoshino (SeeGerritForStatus) 2014/06/19 07:38:54 amount -> consumed for consistency with the other
yhirano 2014/06/19 07:49:43 Done.
49 49
50 virtual void didFailSocketStream(SocketStreamHandle*, const SocketStreamErro r&) { } 50 virtual void didFailSocketStream(SocketStreamHandle*, const SocketStreamErro r&) { }
51 }; 51 };
52 52
53 } // namespace WebCore 53 } // namespace WebCore
54 54
55 #endif // SocketStreamHandleClient_h 55 #endif // SocketStreamHandleClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698