| OLD | NEW |
| 1 // Copyright 2012, Google Inc. | 1 // Copyright 2012, Google Inc. |
| 2 // All rights reserved. | 2 // 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 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 #ifndef DartIsolate_h | 30 #ifndef DartIsolate_h |
| 31 #define DartIsolate_h | 31 #define DartIsolate_h |
| 32 | 32 |
| 33 #include <dart_api.h> | 33 #include <dart_api.h> |
| 34 #include <wtf/RefPtr.h> | 34 #include <wtf/RefPtr.h> |
| 35 #include <wtf/ThreadSafeRefCounted.h> | 35 #include <wtf/ThreadSafeRefCounted.h> |
| 36 | 36 |
| 37 namespace WebCore { | 37 namespace WebCore { |
| 38 | 38 |
| 39 class DartEventListener; | |
| 40 | |
| 41 class DartIsolate : public ThreadSafeRefCounted<DartIsolate> { | 39 class DartIsolate : public ThreadSafeRefCounted<DartIsolate> { |
| 42 WTF_MAKE_NONCOPYABLE(DartIsolate); | 40 WTF_MAKE_NONCOPYABLE(DartIsolate); |
| 43 public: | 41 public: |
| 44 static PassRefPtr<DartIsolate> create(Dart_Isolate isolate) | 42 static PassRefPtr<DartIsolate> create(Dart_Isolate isolate) |
| 45 { | 43 { |
| 46 return adoptRef(new DartIsolate(isolate)); | 44 return adoptRef(new DartIsolate(isolate)); |
| 47 } | 45 } |
| 48 | 46 |
| 49 ~DartIsolate(); | 47 ~DartIsolate(); |
| 50 | 48 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 78 private: | 76 private: |
| 79 RefPtr<DartIsolate> m_isolate; | 77 RefPtr<DartIsolate> m_isolate; |
| 80 }; | 78 }; |
| 81 | 79 |
| 82 private: | 80 private: |
| 83 DartIsolate(Dart_Isolate); | 81 DartIsolate(Dart_Isolate); |
| 84 | 82 |
| 85 Dart_Isolate m_isolate; | 83 Dart_Isolate m_isolate; |
| 86 }; | 84 }; |
| 87 | 85 |
| 88 | |
| 89 | |
| 90 } | 86 } |
| 91 | 87 |
| 92 #endif // DartIsolate_h | 88 #endif // DartIsolate_h |
| OLD | NEW |