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

Unified Diff: Source/core/fileapi/BlobURL.h

Issue 23992003: blob hacking webcore style (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/fileapi/BlobRegistry.cpp ('k') | Source/core/fileapi/BlobURL.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fileapi/BlobURL.h
diff --git a/Source/core/fileapi/BlobURL.h b/Source/core/fileapi/BlobURL.h
index 719b34635bb3a6c4ef5b9cc3c521af5ad8479452..bb75da23cd3337e1fa520af564b632e429e943e3 100644
--- a/Source/core/fileapi/BlobURL.h
+++ b/Source/core/fileapi/BlobURL.h
@@ -38,22 +38,19 @@ namespace WebCore {
class KURL;
class SecurityOrigin;
-// Blob URLs are of the form
+// Public blob URLs are of the form
// blob:%escaped_origin%/%UUID%
-// For public urls, the origin of the host page is encoded in the URL value to
+// The origin of the host page is encoded in the URL value to
// allow easy lookup of the origin when security checks need to be performed.
// When loading blobs via ResourceHandle or when reading blobs via FileReader
// the loader conducts security checks that examine the origin of host page
-// encoded in the public blob url. The origin baked into internal blob urls
-// is a simple constant value, "blobinternal://", internal urls should not
-// be used with ResourceHandle or FileReader.
+// encoded in the blob url.
class BlobURL {
public:
static KURL createPublicURL(SecurityOrigin*);
- static KURL createInternalURL();
static String getOrigin(const KURL&);
- static String getIdentifier(const KURL&);
- static const char* blobProtocol() { return kBlobProtocol; }
+
+ static KURL createInternalStreamURL();
private:
static KURL createBlobURL(const String& originString);
« no previous file with comments | « Source/core/fileapi/BlobRegistry.cpp ('k') | Source/core/fileapi/BlobURL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698