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_CONTEXT_H_ | 5 #ifndef CONTENT_BROWSER_STREAMS_STREAM_CONTEXT_H_ |
6 #define CONTENT_BROWSER_STREAMS_STREAM_CONTEXT_H_ | 6 #define CONTENT_BROWSER_STREAMS_STREAM_CONTEXT_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/task/sequenced_task_runner_helpers.h" | 10 #include "base/sequenced_task_runner_helpers.h" |
11 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 class BrowserContext; | 14 class BrowserContext; |
15 class StreamRegistry; | 15 class StreamRegistry; |
16 struct StreamContextDeleter; | 16 struct StreamContextDeleter; |
17 | 17 |
18 // A context class that keeps track of StreamRegistry used by the chrome. | 18 // A context class that keeps track of StreamRegistry used by the chrome. |
19 // There is an instance associated with each BrowserContext. There could be | 19 // There is an instance associated with each BrowserContext. There could be |
20 // multiple URLRequestContexts in the same browser context that refers to the | 20 // multiple URLRequestContexts in the same browser context that refers to the |
(...skipping 30 matching lines...) Expand all Loading... |
51 struct StreamContextDeleter { | 51 struct StreamContextDeleter { |
52 static void Destruct(const StreamContext* context) { | 52 static void Destruct(const StreamContext* context) { |
53 context->DeleteOnCorrectThread(); | 53 context->DeleteOnCorrectThread(); |
54 } | 54 } |
55 }; | 55 }; |
56 | 56 |
57 } // namespace content | 57 } // namespace content |
58 | 58 |
59 #endif // CONTENT_BROWSER_STREAMS_STREAM_CONTEXT_H_ | 59 #endif // CONTENT_BROWSER_STREAMS_STREAM_CONTEXT_H_ |
60 | 60 |
OLD | NEW |