| 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 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 #include "bindings/core/v8/ExceptionMessages.h" | 29 #include "bindings/core/v8/ExceptionMessages.h" |
| 30 #include "bindings/core/v8/ExceptionState.h" | 30 #include "bindings/core/v8/ExceptionState.h" |
| 31 #include "core/dom/ExceptionCode.h" | 31 #include "core/dom/ExceptionCode.h" |
| 32 #include "core/dom/ExecutionContext.h" | 32 #include "core/dom/ExecutionContext.h" |
| 33 #include "core/fetch/MemoryCache.h" | 33 #include "core/fetch/MemoryCache.h" |
| 34 #include "core/fileapi/Blob.h" | 34 #include "core/fileapi/Blob.h" |
| 35 #include "core/html/PublicURLManager.h" | 35 #include "core/html/PublicURLManager.h" |
| 36 #include "platform/blob/BlobURL.h" | 36 #include "platform/blob/BlobURL.h" |
| 37 #include "platform/weborigin/SecurityOrigin.h" | 37 #include "platform/weborigin/SecurityOrigin.h" |
| 38 #include "wtf/MainThread.h" | |
| 39 | 38 |
| 40 namespace blink { | 39 namespace blink { |
| 41 | 40 |
| 42 DOMURL::DOMURL(const String& url, const KURL& base, ExceptionState& exceptionSta
te) | 41 DOMURL::DOMURL(const String& url, const KURL& base, ExceptionState& exceptionSta
te) |
| 43 { | 42 { |
| 44 if (!base.isValid()) | 43 if (!base.isValid()) |
| 45 exceptionState.throwTypeError("Invalid base URL"); | 44 exceptionState.throwTypeError("Invalid base URL"); |
| 46 | 45 |
| 47 m_url = KURL(base, url); | 46 m_url = KURL(base, url); |
| 48 if (!m_url.isValid()) | 47 if (!m_url.isValid()) |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 95 |
| 97 void DOMURL::revokeObjectUUID(ExecutionContext* executionContext, const String&
uuid) | 96 void DOMURL::revokeObjectUUID(ExecutionContext* executionContext, const String&
uuid) |
| 98 { | 97 { |
| 99 if (!executionContext) | 98 if (!executionContext) |
| 100 return; | 99 return; |
| 101 | 100 |
| 102 executionContext->publicURLManager().revoke(uuid); | 101 executionContext->publicURLManager().revoke(uuid); |
| 103 } | 102 } |
| 104 | 103 |
| 105 } // namespace blink | 104 } // namespace blink |
| OLD | NEW |