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

Side by Side Diff: third_party/WebKit/Source/modules/push_messaging/PushMessageData.cpp

Issue 2834053003: Split V8Binding (Closed)
Patch Set: Rebase Created 3 years, 7 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "modules/push_messaging/PushMessageData.h" 5 #include "modules/push_messaging/PushMessageData.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "bindings/core/v8/ExceptionState.h" 9 #include "bindings/core/v8/ExceptionState.h"
10 #include "bindings/core/v8/ScriptState.h" 10 #include "bindings/core/v8/ScriptState.h"
11 #include "bindings/core/v8/V8Binding.h" 11 #include "bindings/core/v8/V8BindingForCore.h"
12 #include "bindings/modules/v8/ArrayBufferOrArrayBufferViewOrUSVString.h" 12 #include "bindings/modules/v8/ArrayBufferOrArrayBufferViewOrUSVString.h"
13 #include "core/dom/DOMArrayBuffer.h" 13 #include "core/dom/DOMArrayBuffer.h"
14 #include "core/fileapi/Blob.h" 14 #include "core/fileapi/Blob.h"
15 #include "platform/blob/BlobData.h" 15 #include "platform/blob/BlobData.h"
16 #include "platform/wtf/Assertions.h" 16 #include "platform/wtf/Assertions.h"
17 #include "platform/wtf/text/TextEncoding.h" 17 #include "platform/wtf/text/TextEncoding.h"
18 #include "v8/include/v8.h" 18 #include "v8/include/v8.h"
19 19
20 namespace blink { 20 namespace blink {
21 21
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 return ScriptValue(script_state, parsed); 84 return ScriptValue(script_state, parsed);
85 } 85 }
86 86
87 String PushMessageData::text() const { 87 String PushMessageData::text() const {
88 return UTF8Encoding().Decode(data_.data(), data_.size()); 88 return UTF8Encoding().Decode(data_.data(), data_.size());
89 } 89 }
90 90
91 DEFINE_TRACE(PushMessageData) {} 91 DEFINE_TRACE(PushMessageData) {}
92 92
93 } // namespace blink 93 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698