| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 return m_private->uuid(); | 75 return m_private->uuid(); |
| 76 } | 76 } |
| 77 | 77 |
| 78 v8::Local<v8::Value> WebBlob::toV8Value(v8::Local<v8::Object> creationContext, | 78 v8::Local<v8::Value> WebBlob::toV8Value(v8::Local<v8::Object> creationContext, |
| 79 v8::Isolate* isolate) { | 79 v8::Isolate* isolate) { |
| 80 // We no longer use |creationContext| because it's often misused and points | 80 // We no longer use |creationContext| because it's often misused and points |
| 81 // to a context faked by user script. | 81 // to a context faked by user script. |
| 82 DCHECK(creationContext->CreationContext() == isolate->GetCurrentContext()); | 82 DCHECK(creationContext->CreationContext() == isolate->GetCurrentContext()); |
| 83 if (!m_private.get()) | 83 if (!m_private.get()) |
| 84 return v8::Local<v8::Value>(); | 84 return v8::Local<v8::Value>(); |
| 85 return toV8(m_private.get(), isolate->GetCurrentContext()->Global(), isolate); | 85 return ToV8(m_private.get(), isolate->GetCurrentContext()->Global(), isolate); |
| 86 } | 86 } |
| 87 | 87 |
| 88 WebBlob::WebBlob(Blob* blob) : m_private(blob) {} | 88 WebBlob::WebBlob(Blob* blob) : m_private(blob) {} |
| 89 | 89 |
| 90 WebBlob& WebBlob::operator=(Blob* blob) { | 90 WebBlob& WebBlob::operator=(Blob* blob) { |
| 91 m_private = blob; | 91 m_private = blob; |
| 92 return *this; | 92 return *this; |
| 93 } | 93 } |
| 94 | 94 |
| 95 } // namespace blink | 95 } // namespace blink |
| OLD | NEW |