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

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

Issue 157363003: Implement Blob.close(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 10 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
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 } 56 }
57 static PassRefPtrWillBeRawPtr<DOMURL> create(const String& url, PassRefPtrWi llBeRawPtr<DOMURL> base, ExceptionState& exceptionState) 57 static PassRefPtrWillBeRawPtr<DOMURL> create(const String& url, PassRefPtrWi llBeRawPtr<DOMURL> base, ExceptionState& exceptionState)
58 { 58 {
59 ASSERT(base); 59 ASSERT(base);
60 return adoptRefWillBeNoop(new DOMURL(url, base->m_url, exceptionState)); 60 return adoptRefWillBeNoop(new DOMURL(url, base->m_url, exceptionState));
61 } 61 }
62 62
63 static String createObjectURL(ExecutionContext*, Blob*); 63 static String createObjectURL(ExecutionContext*, Blob*);
64 static void revokeObjectURL(ExecutionContext*, const String&); 64 static void revokeObjectURL(ExecutionContext*, const String&);
65 65
66 static String createPublicURL(ExecutionContext*, URLRegistrable*); 66 static String createPublicURL(ExecutionContext*, URLRegistrable*, const Stri ng& uuid = String());
67 static void revokeObjectUUID(ExecutionContext*, const String&);
67 68
68 virtual KURL url() const OVERRIDE { return m_url; } 69 virtual KURL url() const OVERRIDE { return m_url; }
69 virtual void setURL(const KURL& url) OVERRIDE { m_url = url; } 70 virtual void setURL(const KURL& url) OVERRIDE { m_url = url; }
70 71
71 virtual String input() const OVERRIDE { return m_input; } 72 virtual String input() const OVERRIDE { return m_input; }
72 virtual void setInput(const String&) OVERRIDE; 73 virtual void setInput(const String&) OVERRIDE;
73 74
74 void trace(Visitor*) { } 75 void trace(Visitor*) { }
75 76
76 private: 77 private:
77 DOMURL(const String& url, const KURL& base, ExceptionState&); 78 DOMURL(const String& url, const KURL& base, ExceptionState&);
78 79
79 KURL m_url; 80 KURL m_url;
80 String m_input; 81 String m_input;
81 }; 82 };
82 83
83 } // namespace WebCore 84 } // namespace WebCore
84 85
85 #endif // DOMURL_h 86 #endif // DOMURL_h
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/xmlhttprequest/resources/multipart-post-echo.php ('k') | Source/core/dom/DOMURL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698