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

Side by Side Diff: Source/core/fileapi/Blob.cpp

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/events/WheelEvent.cpp ('k') | Source/core/fileapi/File.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 DEFINE_STATIC_LOCAL(BlobURLRegistry, instance, ()); 68 DEFINE_STATIC_LOCAL(BlobURLRegistry, instance, ());
69 return instance; 69 return instance;
70 } 70 }
71 71
72 } // namespace 72 } // namespace
73 73
74 Blob::Blob(PassRefPtr<BlobDataHandle> dataHandle) 74 Blob::Blob(PassRefPtr<BlobDataHandle> dataHandle)
75 : m_blobDataHandle(dataHandle) 75 : m_blobDataHandle(dataHandle)
76 , m_hasBeenClosed(false) 76 , m_hasBeenClosed(false)
77 { 77 {
78 ScriptWrappable::init(this);
79 } 78 }
80 79
81 Blob::~Blob() 80 Blob::~Blob()
82 { 81 {
83 } 82 }
84 83
85 void Blob::clampSliceOffsets(long long size, long long& start, long long& end) 84 void Blob::clampSliceOffsets(long long size, long long& start, long long& end)
86 { 85 {
87 ASSERT(size != -1); 86 ASSERT(size != -1);
88 87
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 { 148 {
150 blobData.appendBlob(m_blobDataHandle, 0, m_blobDataHandle->size()); 149 blobData.appendBlob(m_blobDataHandle, 0, m_blobDataHandle->size());
151 } 150 }
152 151
153 URLRegistry& Blob::registry() const 152 URLRegistry& Blob::registry() const
154 { 153 {
155 return BlobURLRegistry::registry(); 154 return BlobURLRegistry::registry();
156 } 155 }
157 156
158 } // namespace blink 157 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/events/WheelEvent.cpp ('k') | Source/core/fileapi/File.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698