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

Unified Diff: content/browser/streams/stream.h

Issue 19798012: Remove security_origin member from content::Stream. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed unittests Created 7 years, 5 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 | « content/browser/loader/stream_resource_handler.cc ('k') | content/browser/streams/stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/streams/stream.h
diff --git a/content/browser/streams/stream.h b/content/browser/streams/stream.h
index 912e4374e6a9e6b49f90d6d14c3384ce71e74401..4dd852f1a43ad8d7912b338e98ca3725c58935df 100644
--- a/content/browser/streams/stream.h
+++ b/content/browser/streams/stream.h
@@ -38,10 +38,13 @@ class CONTENT_EXPORT Stream : public base::RefCountedThreadSafe<Stream> {
STREAM_EMPTY,
};
- // Creates a stream useable from the |security_origin|.
+ // Creates a stream.
+ //
+ // Security origin of Streams is checked in Blink (See BlobRegistry,
+ // BlobURL and SecurityOrigin to understand how it works). There's no security
+ // origin check in Chromium side for now.
Stream(StreamRegistry* registry,
StreamWriteObserver* write_observer,
- const GURL& security_origin,
const GURL& url);
// Sets the reader of this stream. Returns true on success, or false if there
@@ -75,8 +78,6 @@ class CONTENT_EXPORT Stream : public base::RefCountedThreadSafe<Stream> {
const GURL& url() const { return url_; }
- const GURL& security_origin() const { return security_origin_; }
-
private:
friend class base::RefCountedThreadSafe<Stream>;
@@ -88,7 +89,6 @@ class CONTENT_EXPORT Stream : public base::RefCountedThreadSafe<Stream> {
size_t data_bytes_read_;
bool can_add_data_;
- GURL security_origin_;
GURL url_;
scoped_refptr<net::IOBuffer> data_;
« no previous file with comments | « content/browser/loader/stream_resource_handler.cc ('k') | content/browser/streams/stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698