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

Side by Side Diff: third_party/WebKit/Source/core/dom/DOMArrayBufferBase.h

Issue 2401523002: Replace ASSERT family with DCHECK and so on in core/dom/. (Closed)
Patch Set: Created 4 years, 2 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 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 DOMArrayBufferBase_h 5 #ifndef DOMArrayBufferBase_h
6 #define DOMArrayBufferBase_h 6 #define DOMArrayBufferBase_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/CoreExport.h" 9 #include "core/CoreExport.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
(...skipping 17 matching lines...) Expand all
28 return buffer()->transfer(result); 28 return buffer()->transfer(result);
29 } 29 }
30 bool shareContentsWith(WTF::ArrayBufferContents& result) { 30 bool shareContentsWith(WTF::ArrayBufferContents& result) {
31 return buffer()->shareContentsWith(result); 31 return buffer()->shareContentsWith(result);
32 } 32 }
33 bool isNeutered() const { return buffer()->isNeutered(); } 33 bool isNeutered() const { return buffer()->isNeutered(); }
34 bool isShared() const { return buffer()->isShared(); } 34 bool isShared() const { return buffer()->isShared(); }
35 35
36 v8::Local<v8::Object> wrap(v8::Isolate*, 36 v8::Local<v8::Object> wrap(v8::Isolate*,
37 v8::Local<v8::Object> creationContext) override { 37 v8::Local<v8::Object> creationContext) override {
38 ASSERT_NOT_REACHED(); 38 NOTREACHED();
39 return v8::Local<v8::Object>(); 39 return v8::Local<v8::Object>();
40 } 40 }
41 41
42 DEFINE_INLINE_VIRTUAL_TRACE() {} 42 DEFINE_INLINE_VIRTUAL_TRACE() {}
43 43
44 protected: 44 protected:
45 explicit DOMArrayBufferBase(PassRefPtr<WTF::ArrayBuffer> buffer) 45 explicit DOMArrayBufferBase(PassRefPtr<WTF::ArrayBuffer> buffer)
46 : m_buffer(buffer) { 46 : m_buffer(buffer) {
47 DCHECK(m_buffer); 47 DCHECK(m_buffer);
48 } 48 }
49 49
50 RefPtr<WTF::ArrayBuffer> m_buffer; 50 RefPtr<WTF::ArrayBuffer> m_buffer;
51 }; 51 };
52 52
53 } // namespace blink 53 } // namespace blink
54 54
55 #endif // DOMArrayBufferBase_h 55 #endif // DOMArrayBufferBase_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ClassCollection.h ('k') | third_party/WebKit/Source/core/dom/DOMArrayBufferView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698