| 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 #include "content/browser/streams/stream_context.h" | 5 #include "content/browser/streams/stream_context.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "content/browser/streams/stream_registry.h" | 8 #include "content/browser/streams/stream_registry.h" |
| 9 #include "content/public/browser/browser_context.h" | 9 #include "content/public/browser/browser_context.h" |
| 10 #include "content/public/browser/browser_thread.h" |
| 10 | 11 |
| 11 using base::UserDataAdapter; | 12 using base::UserDataAdapter; |
| 12 | 13 |
| 13 namespace { | 14 namespace { |
| 14 const char* kStreamContextKeyName = "content_stream_context"; | 15 const char* kStreamContextKeyName = "content_stream_context"; |
| 15 } | 16 } |
| 16 | 17 |
| 17 namespace content { | 18 namespace content { |
| 18 | 19 |
| 19 StreamContext::StreamContext() {} | 20 StreamContext::StreamContext() {} |
| (...skipping 28 matching lines...) Expand all Loading... |
| 48 // tests. | 49 // tests. |
| 49 if (BrowserThread::IsMessageLoopValid(BrowserThread::IO) && | 50 if (BrowserThread::IsMessageLoopValid(BrowserThread::IO) && |
| 50 !BrowserThread::CurrentlyOn(BrowserThread::IO)) { | 51 !BrowserThread::CurrentlyOn(BrowserThread::IO)) { |
| 51 BrowserThread::DeleteSoon(BrowserThread::IO, FROM_HERE, this); | 52 BrowserThread::DeleteSoon(BrowserThread::IO, FROM_HERE, this); |
| 52 return; | 53 return; |
| 53 } | 54 } |
| 54 delete this; | 55 delete this; |
| 55 } | 56 } |
| 56 | 57 |
| 57 } // namespace content | 58 } // namespace content |
| OLD | NEW |