| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 BLINK_EXPORT static WebBlob createFromFile(const WebString& path, long long
size); | 68 BLINK_EXPORT static WebBlob createFromFile(const WebString& path, long long
size); |
| 69 BLINK_EXPORT static WebBlob fromV8Value(v8::Handle<v8::Value>); | 69 BLINK_EXPORT static WebBlob fromV8Value(v8::Handle<v8::Value>); |
| 70 | 70 |
| 71 BLINK_EXPORT void reset(); | 71 BLINK_EXPORT void reset(); |
| 72 BLINK_EXPORT void assign(const WebBlob&); | 72 BLINK_EXPORT void assign(const WebBlob&); |
| 73 BLINK_EXPORT WebString uuid(); | 73 BLINK_EXPORT WebString uuid(); |
| 74 | 74 |
| 75 bool isNull() const { return m_private.isNull(); } | 75 bool isNull() const { return m_private.isNull(); } |
| 76 | 76 |
| 77 BLINK_EXPORT v8::Handle<v8::Value> toV8Value(v8::Handle<v8::Object> creatio
nContext, v8::Isolate*); | 77 BLINK_EXPORT v8::Handle<v8::Value> toV8Value(v8::Handle<v8::Object> creatio
nContext, v8::Isolate*); |
| 78 // FIXME: remove the following toV8Value after fixing chromium code. | |
| 79 BLINK_EXPORT v8::Handle<v8::Value> toV8Value(); | |
| 80 | 78 |
| 81 #if BLINK_IMPLEMENTATION | 79 #if BLINK_IMPLEMENTATION |
| 82 explicit WebBlob(const PassRefPtrWillBeRawPtr<WebCore::Blob>&); | 80 explicit WebBlob(const PassRefPtrWillBeRawPtr<WebCore::Blob>&); |
| 83 WebBlob& operator=(const PassRefPtrWillBeRawPtr<WebCore::Blob>&); | 81 WebBlob& operator=(const PassRefPtrWillBeRawPtr<WebCore::Blob>&); |
| 84 #endif | 82 #endif |
| 85 | 83 |
| 86 protected: | 84 protected: |
| 87 WebPrivatePtr<WebCore::Blob> m_private; | 85 WebPrivatePtr<WebCore::Blob> m_private; |
| 88 }; | 86 }; |
| 89 | 87 |
| 90 } // namespace blink | 88 } // namespace blink |
| 91 | 89 |
| 92 #endif // WebBlob_h | 90 #endif // WebBlob_h |
| OLD | NEW |