Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(453)

Side by Side Diff: Source/core/dom/DOMURL.h

Issue 184473002: Sync Blob.close() behavior wrt updated spec. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « LayoutTests/fast/files/blob-close-revoke-expected.txt ('k') | Source/core/dom/DOMURL.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 static PassRefPtrWillBeRawPtr<DOMURL> create(const String& url, const String & base, ExceptionState& exceptionState) 52 static PassRefPtrWillBeRawPtr<DOMURL> create(const String& url, const String & base, ExceptionState& exceptionState)
53 { 53 {
54 return adoptRefWillBeNoop(new DOMURL(url, KURL(KURL(), base), exceptionS tate)); 54 return adoptRefWillBeNoop(new DOMURL(url, KURL(KURL(), base), exceptionS tate));
55 } 55 }
56 static PassRefPtrWillBeRawPtr<DOMURL> create(const String& url, PassRefPtrWi llBeRawPtr<DOMURL> base, ExceptionState& exceptionState) 56 static PassRefPtrWillBeRawPtr<DOMURL> create(const String& url, PassRefPtrWi llBeRawPtr<DOMURL> base, ExceptionState& exceptionState)
57 { 57 {
58 ASSERT(base); 58 ASSERT(base);
59 return adoptRefWillBeNoop(new DOMURL(url, base->m_url, exceptionState)); 59 return adoptRefWillBeNoop(new DOMURL(url, base->m_url, exceptionState));
60 } 60 }
61 61
62 static String createObjectURL(ExecutionContext*, Blob*); 62 static String createObjectURL(ExecutionContext*, Blob*, ExceptionState&);
63 static void revokeObjectURL(ExecutionContext*, const String&); 63 static void revokeObjectURL(ExecutionContext*, const String&);
64 64
65 static String createPublicURL(ExecutionContext*, URLRegistrable*, const Stri ng& uuid = String()); 65 static String createPublicURL(ExecutionContext*, URLRegistrable*, const Stri ng& uuid = String());
66 static void revokeObjectUUID(ExecutionContext*, const String&); 66 static void revokeObjectUUID(ExecutionContext*, const String&);
67 67
68 virtual KURL url() const OVERRIDE { return m_url; } 68 virtual KURL url() const OVERRIDE { return m_url; }
69 virtual void setURL(const KURL& url) OVERRIDE { m_url = url; } 69 virtual void setURL(const KURL& url) OVERRIDE { m_url = url; }
70 70
71 virtual String input() const OVERRIDE { return m_input; } 71 virtual String input() const OVERRIDE { return m_input; }
72 virtual void setInput(const String&) OVERRIDE; 72 virtual void setInput(const String&) OVERRIDE;
73 73
74 void trace(Visitor*) { } 74 void trace(Visitor*) { }
75 75
76 private: 76 private:
77 DOMURL(const String& url, const KURL& base, ExceptionState&); 77 DOMURL(const String& url, const KURL& base, ExceptionState&);
78 78
79 KURL m_url; 79 KURL m_url;
80 String m_input; 80 String m_input;
81 }; 81 };
82 82
83 } // namespace WebCore 83 } // namespace WebCore
84 84
85 #endif // DOMURL_h 85 #endif // DOMURL_h
OLDNEW
« no previous file with comments | « LayoutTests/fast/files/blob-close-revoke-expected.txt ('k') | Source/core/dom/DOMURL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698