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

Unified Diff: content/browser/streams/stream_registry.cc

Issue 12611018: Revert 187230 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/streams/stream_registry.h ('k') | content/browser/streams/stream_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/streams/stream_registry.cc
===================================================================
--- content/browser/streams/stream_registry.cc (revision 187273)
+++ content/browser/streams/stream_registry.cc (working copy)
@@ -1,48 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/browser/streams/stream_registry.h"
-
-#include "content/browser/streams/stream.h"
-
-namespace content {
-
-StreamRegistry::StreamRegistry() {
-}
-
-StreamRegistry::~StreamRegistry() {
-}
-
-void StreamRegistry::RegisterStream(scoped_refptr<Stream> stream) {
- DCHECK(CalledOnValidThread());
- DCHECK(stream);
- DCHECK(!stream->url().is_empty());
- streams_[stream->url()] = stream;
-}
-
-scoped_refptr<Stream> StreamRegistry::GetStream(const GURL& url) {
- DCHECK(CalledOnValidThread());
- StreamMap::const_iterator stream = streams_.find(url);
- if (stream != streams_.end())
- return stream->second;
-
- return NULL;
-}
-
-bool StreamRegistry::CloneStream(const GURL& url, const GURL& src_url) {
- DCHECK(CalledOnValidThread());
- scoped_refptr<Stream> stream(GetStream(src_url));
- if (stream) {
- streams_[url] = stream;
- return true;
- }
- return false;
-}
-
-void StreamRegistry::UnregisterStream(const GURL& url) {
- DCHECK(CalledOnValidThread());
- streams_.erase(url);
-}
-
-} // namespace content
« no previous file with comments | « content/browser/streams/stream_registry.h ('k') | content/browser/streams/stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698