| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_STREAMS_STREAM_REGISTRY_H_ | 5 #ifndef CONTENT_BROWSER_STREAMS_STREAM_REGISTRY_H_ |
| 6 #define CONTENT_BROWSER_STREAMS_STREAM_REGISTRY_H_ | 6 #define CONTENT_BROWSER_STREAMS_STREAM_REGISTRY_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/threading/non_thread_safe.h" | 12 #include "base/threading/non_thread_safe.h" |
| 13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
| 14 #include "googleurl/src/gurl.h" | 14 #include "url/gurl.h" |
| 15 | 15 |
| 16 namespace content { | 16 namespace content { |
| 17 | 17 |
| 18 class Stream; | 18 class Stream; |
| 19 | 19 |
| 20 // Maintains a mapping of blob: URLs to active streams. | 20 // Maintains a mapping of blob: URLs to active streams. |
| 21 class CONTENT_EXPORT StreamRegistry : public base::NonThreadSafe { | 21 class CONTENT_EXPORT StreamRegistry : public base::NonThreadSafe { |
| 22 public: | 22 public: |
| 23 StreamRegistry(); | 23 StreamRegistry(); |
| 24 virtual ~StreamRegistry(); | 24 virtual ~StreamRegistry(); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 42 StreamMap streams_; | 42 StreamMap streams_; |
| 43 | 43 |
| 44 DISALLOW_COPY_AND_ASSIGN(StreamRegistry); | 44 DISALLOW_COPY_AND_ASSIGN(StreamRegistry); |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 } // namespace content | 47 } // namespace content |
| 48 | 48 |
| 49 #endif // CONTENT_BROWSER_STREAMS_STREAM_REGISTRY_H_ | 49 #endif // CONTENT_BROWSER_STREAMS_STREAM_REGISTRY_H_ |
| 50 | 50 |
| 51 | 51 |
| OLD | NEW |