OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef TransferableExtractor_h | |
6 #define TransferableExtractor_h | |
7 | |
8 #include "bindings/core/v8/ExceptionState.h" | |
9 #include "bindings/core/v8/SerializedScriptValue.h" | |
10 #include "core/CoreExport.h" | |
11 #include "wtf/PassOwnPtr.h" | |
12 #include <v8.h> | |
13 | |
14 namespace blink { | |
15 | |
16 class CORE_EXPORT TransferableExtractor { | |
haraken
2016/04/19 00:48:10
Do you have a plan to add more extractors? It look
xidachen
2016/04/19 15:29:50
The reason to have this class here is that we cann
haraken
2016/04/20 01:18:24
If you don't have a concrete plan now, I'd prefer
| |
17 public: | |
18 virtual ~TransferableExtractor() { } | |
19 static void registerTransferableExtractor(PassOwnPtr<TransferableExtractor>) ; | |
20 static const Vector<OwnPtr<TransferableExtractor>>& getExtractors(); | |
21 virtual bool extract(v8::Local<v8::Value>, v8::Isolate*, Transferables&, Exc eptionState&, const unsigned) = 0; | |
22 }; | |
23 | |
24 } // namespace blink | |
25 | |
26 #endif // TransferableExtractor_h | |
OLD | NEW |