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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include <wtf/RefCounted.h> | 33 #include <wtf/RefCounted.h> |
34 | 34 |
35 namespace WebCore { | 35 namespace WebCore { |
36 | 36 |
37 class Blob; | 37 class Blob; |
38 class ScriptExecutionContext; | 38 class ScriptExecutionContext; |
39 | 39 |
40 class DOMURL : public RefCounted<DOMURL> { | 40 class DOMURL : public RefCounted<DOMURL> { |
41 public: | 41 public: |
42 static PassRefPtr<DOMURL> create(ScriptExecutionContext* scriptExecutionCont
ext) { return adoptRef(new DOMURL(scriptExecutionContext)); } | 42 static PassRefPtr<DOMURL> create(ScriptExecutionContext* scriptExecutionCont
ext) { return adoptRef(new DOMURL(scriptExecutionContext)); } |
| 43 ~DOMURL(); |
43 | 44 |
44 String createObjectURL(Blob*); | 45 String createObjectURL(Blob*); |
45 void revokeObjectURL(const String&); | 46 void revokeObjectURL(const String&); |
46 | 47 |
| 48 void contextDestroyed(); |
| 49 ScriptExecutionContext* scriptExecutionContext() const { return m_scriptExec
utionContext; } |
| 50 |
47 private: | 51 private: |
48 explicit DOMURL(ScriptExecutionContext*); | 52 explicit DOMURL(ScriptExecutionContext*); |
49 | 53 |
50 ScriptExecutionContext* m_scriptExecutionContext; | 54 ScriptExecutionContext* m_scriptExecutionContext; |
51 }; | 55 }; |
52 | 56 |
53 } // namespace WebCore | 57 } // namespace WebCore |
54 | 58 |
55 #endif // ENABLE(BLOB) | 59 #endif // ENABLE(BLOB) |
56 | 60 |
57 #endif // DOMURL_h | 61 #endif // DOMURL_h |
OLD | NEW |