| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 #include "bindings/v8/ScriptWrappable.h" | 34 #include "bindings/v8/ScriptWrappable.h" |
| 35 #include "heap/Handle.h" | 35 #include "heap/Handle.h" |
| 36 #include "wtf/Forward.h" | 36 #include "wtf/Forward.h" |
| 37 #include "wtf/PassRefPtr.h" | 37 #include "wtf/PassRefPtr.h" |
| 38 #include "wtf/RefCounted.h" | 38 #include "wtf/RefCounted.h" |
| 39 | 39 |
| 40 namespace WebCore { | 40 namespace WebCore { |
| 41 | 41 |
| 42 class WorkerCrypto : public RefCountedWillBeGarbageCollectedFinalized<WorkerCryp
to>, public ScriptWrappable { | 42 class WorkerCrypto : public RefCountedWillBeGarbageCollectedFinalized<WorkerCryp
to>, public ScriptWrappable { |
| 43 DECLARE_GC_INFO; | |
| 44 public: | 43 public: |
| 45 static PassRefPtrWillBeRawPtr<WorkerCrypto> create() | 44 static PassRefPtrWillBeRawPtr<WorkerCrypto> create() |
| 46 { | 45 { |
| 47 return adoptRefWillBeNoop(new WorkerCrypto()); | 46 return adoptRefWillBeNoop(new WorkerCrypto()); |
| 48 } | 47 } |
| 49 | 48 |
| 50 void trace(Visitor*) { } | 49 void trace(Visitor*) { } |
| 51 | 50 |
| 52 private: | 51 private: |
| 53 WorkerCrypto(); | 52 WorkerCrypto(); |
| 54 }; | 53 }; |
| 55 | 54 |
| 56 } | 55 } |
| 57 | 56 |
| 58 #endif | 57 #endif |
| OLD | NEW |