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

Side by Side Diff: Source/core/html/parser/ThreadedDataReceiver.h

Issue 863113004: Make WebThreadedDataReceiver wrap a Blink-managed object instead. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix msvc compilation Created 5 years, 11 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
« no previous file with comments | « Source/core/html/parser/HTMLDocumentParser.cpp ('k') | Source/core/loader/DocumentLoader.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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebThreadedDataReceiver_h 5 #ifndef ThreadedDataReceiver_h
6 #define WebThreadedDataReceiver_h 6 #define ThreadedDataReceiver_h
7
8 #include "platform/heap/Handle.h"
7 9
8 namespace blink { 10 namespace blink {
9 11
10 class WebThread; 12 class WebThread;
11 13
12 class WebThreadedDataReceiver { 14 class ThreadedDataReceiver : public WillBeGarbageCollectedMixin {
13 public: 15 public:
16 virtual ~ThreadedDataReceiver() { }
17
18 #if !ENABLE(OILPAN)
19 virtual void ref() = 0;
20 virtual void deref() = 0;
21 #endif
haraken 2015/01/26 01:47:04 I wonder why you need to define ref() and deref()
sof 2015/01/26 06:14:20 WebThreadedDataReceiver::WebPrivatePtr<> wraps a T
haraken 2015/01/26 06:25:30 Thanks, makes sense.
22
14 virtual void acceptData(const char* data, int dataLength) = 0; 23 virtual void acceptData(const char* data, int dataLength) = 0;
15 virtual WebThread* backgroundThread() = 0; 24 virtual WebThread* backgroundThread() = 0;
16 25
17 virtual bool needsMainthreadDataCopy() = 0; 26 virtual bool needsMainthreadDataCopy() = 0;
18 virtual void acceptMainthreadDataNotification(const char* data, int dataLeng th, int encodedDataLength) = 0; 27 virtual void acceptMainthreadDataNotification(const char* data, int dataLeng th, int encodedDataLength) = 0;
19
20 virtual ~WebThreadedDataReceiver() { }
21 }; 28 };
22 29
23 } // namespace blink 30 } // namespace blink
24 31
25 #endif 32 #endif // ThreadedDataReceiver_h
OLDNEW
« no previous file with comments | « Source/core/html/parser/HTMLDocumentParser.cpp ('k') | Source/core/loader/DocumentLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698