| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 21 matching lines...) Expand all Loading... |
| 32 #define WebArrayBufferConverter_h | 32 #define WebArrayBufferConverter_h |
| 33 | 33 |
| 34 #include "public/web/WebArrayBuffer.h" | 34 #include "public/web/WebArrayBuffer.h" |
| 35 | 35 |
| 36 namespace v8 { | 36 namespace v8 { |
| 37 class Isolate; | 37 class Isolate; |
| 38 class Object; | 38 class Object; |
| 39 class Value; | 39 class Value; |
| 40 template <class T> | 40 template <class T> |
| 41 class Local; | 41 class Local; |
| 42 } | 42 } // namespace v8 |
| 43 | 43 |
| 44 namespace blink { | 44 namespace blink { |
| 45 | 45 |
| 46 class WebArrayBufferConverter { | 46 class WebArrayBufferConverter { |
| 47 public: | 47 public: |
| 48 BLINK_EXPORT static v8::Local<v8::Value> ToV8Value(WebArrayBuffer*, | 48 BLINK_EXPORT static v8::Local<v8::Value> ToV8Value(WebArrayBuffer*, |
| 49 v8::Local<v8::Object>, | 49 v8::Local<v8::Object>, |
| 50 v8::Isolate*); | 50 v8::Isolate*); |
| 51 BLINK_EXPORT static WebArrayBuffer* CreateFromV8Value(v8::Local<v8::Value>, | 51 BLINK_EXPORT static WebArrayBuffer* CreateFromV8Value(v8::Local<v8::Value>, |
| 52 v8::Isolate*); | 52 v8::Isolate*); |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace blink | 55 } // namespace blink |
| 56 | 56 |
| 57 #endif // WebArrayBufferConverter_h | 57 #endif // WebArrayBufferConverter_h |
| OLD | NEW |