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 19 matching lines...) Expand all Loading... |
30 | 30 |
31 #ifndef WebBlob_h | 31 #ifndef WebBlob_h |
32 #define WebBlob_h | 32 #define WebBlob_h |
33 | 33 |
34 #include "public/platform/WebBlobData.h" | 34 #include "public/platform/WebBlobData.h" |
35 #include "public/platform/WebCommon.h" | 35 #include "public/platform/WebCommon.h" |
36 #include "public/platform/WebPrivatePtr.h" | 36 #include "public/platform/WebPrivatePtr.h" |
37 #include "public/platform/WebString.h" | 37 #include "public/platform/WebString.h" |
38 #include "public/platform/WebURL.h" | 38 #include "public/platform/WebURL.h" |
39 | 39 |
| 40 #if BLINK_IMPLEMENTATION |
| 41 #include "heap/Handle.h" |
| 42 #endif |
| 43 |
40 namespace v8 { | 44 namespace v8 { |
41 class Value; | 45 class Value; |
42 template <class T> class Handle; | 46 template <class T> class Handle; |
43 } | 47 } |
44 | 48 |
45 namespace WebCore { class Blob; } | 49 namespace WebCore { class Blob; } |
46 | 50 |
47 namespace blink { | 51 namespace blink { |
48 | 52 |
49 class WebBlob { | 53 class WebBlob { |
(...skipping 13 matching lines...) Expand all Loading... |
63 | 67 |
64 BLINK_EXPORT void reset(); | 68 BLINK_EXPORT void reset(); |
65 BLINK_EXPORT void assign(const WebBlob&); | 69 BLINK_EXPORT void assign(const WebBlob&); |
66 BLINK_EXPORT WebString uuid(); | 70 BLINK_EXPORT WebString uuid(); |
67 | 71 |
68 bool isNull() const { return m_private.isNull(); } | 72 bool isNull() const { return m_private.isNull(); } |
69 | 73 |
70 BLINK_EXPORT v8::Handle<v8::Value> toV8Value(); | 74 BLINK_EXPORT v8::Handle<v8::Value> toV8Value(); |
71 | 75 |
72 #if BLINK_IMPLEMENTATION | 76 #if BLINK_IMPLEMENTATION |
73 WebBlob(const WTF::PassRefPtr<WebCore::Blob>&); | 77 explicit WebBlob(const PassRefPtrWillBeRawPtr<WebCore::Blob>&); |
74 WebBlob& operator=(const WTF::PassRefPtr<WebCore::Blob>&); | 78 WebBlob& operator=(const PassRefPtrWillBeRawPtr<WebCore::Blob>&); |
75 operator WTF::PassRefPtr<WebCore::Blob>() const; | |
76 #endif | 79 #endif |
77 | 80 |
78 protected: | 81 protected: |
79 WebPrivatePtr<WebCore::Blob> m_private; | 82 WebPrivatePtr<WebCore::Blob> m_private; |
80 }; | 83 }; |
81 | 84 |
82 } // namespace blink | 85 } // namespace blink |
83 | 86 |
84 #endif // WebBlob_h | 87 #endif // WebBlob_h |
OLD | NEW |