| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2012 Motorola Mobility Inc. | 3 * Copyright (C) 2012 Motorola Mobility Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 #include "KURL.h" | 30 #include "KURL.h" |
| 31 #include "PlatformString.h" | 31 #include "PlatformString.h" |
| 32 #include <wtf/HashSet.h> | 32 #include <wtf/HashSet.h> |
| 33 #include <wtf/PassRefPtr.h> | 33 #include <wtf/PassRefPtr.h> |
| 34 #include <wtf/RefCounted.h> | 34 #include <wtf/RefCounted.h> |
| 35 | 35 |
| 36 namespace WebCore { | 36 namespace WebCore { |
| 37 | 37 |
| 38 class Blob; | 38 class Blob; |
| 39 class MediaSource; | |
| 40 class MediaStream; | 39 class MediaStream; |
| 41 class ScriptExecutionContext; | 40 class ScriptExecutionContext; |
| 42 | 41 |
| 43 class DOMURL : public RefCounted<DOMURL> { | 42 class DOMURL : public RefCounted<DOMURL> { |
| 44 | 43 |
| 45 public: | 44 public: |
| 46 static PassRefPtr<DOMURL> create() { return adoptRef(new DOMURL); } | 45 static PassRefPtr<DOMURL> create() { return adoptRef(new DOMURL); } |
| 47 | 46 |
| 48 #if ENABLE(BLOB) | 47 #if ENABLE(BLOB) |
| 49 static void contextDestroyed(ScriptExecutionContext*); | 48 static void contextDestroyed(ScriptExecutionContext*); |
| 50 | 49 |
| 51 static String createObjectURL(ScriptExecutionContext*, Blob*); | 50 static String createObjectURL(ScriptExecutionContext*, Blob*); |
| 52 static void revokeObjectURL(ScriptExecutionContext*, const String&); | 51 static void revokeObjectURL(ScriptExecutionContext*, const String&); |
| 53 #if ENABLE(MEDIA_SOURCE) | |
| 54 static String createObjectURL(ScriptExecutionContext*, MediaSource*); | |
| 55 #endif | |
| 56 #if ENABLE(MEDIA_STREAM) | 52 #if ENABLE(MEDIA_STREAM) |
| 57 static String createObjectURL(ScriptExecutionContext*, MediaStream*); | 53 static String createObjectURL(ScriptExecutionContext*, MediaStream*); |
| 58 #endif | 54 #endif |
| 59 #endif | 55 #endif |
| 60 }; | 56 }; |
| 61 | 57 |
| 62 } // namespace WebCore | 58 } // namespace WebCore |
| 63 | 59 |
| 64 #endif // DOMURL_h | 60 #endif // DOMURL_h |
| OLD | NEW |