| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_DEVTOOLS_DEVTOOLS_IO_CONTEXT_H_ |
| 6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_IO_CONTEXT_H_ |
| 7 |
| 5 #include <stddef.h> | 8 #include <stddef.h> |
| 6 | 9 |
| 7 #include <map> | 10 #include <map> |
| 8 | 11 |
| 9 #include "base/callback.h" | 12 #include "base/callback.h" |
| 10 #include "base/files/file.h" | 13 #include "base/files/file.h" |
| 11 #include "base/memory/ref_counted_delete_on_sequence.h" | 14 #include "base/memory/ref_counted_delete_on_sequence.h" |
| 12 #include "base/memory/ref_counted_memory.h" | 15 #include "base/memory/ref_counted_memory.h" |
| 13 | 16 |
| 14 namespace content { | 17 namespace content { |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 scoped_refptr<Stream> GetByHandle(const std::string& handle); | 57 scoped_refptr<Stream> GetByHandle(const std::string& handle); |
| 55 bool Close(const std::string& handle); | 58 bool Close(const std::string& handle); |
| 56 void DiscardAllStreams(); | 59 void DiscardAllStreams(); |
| 57 | 60 |
| 58 private: | 61 private: |
| 59 using StreamsMap = std::map<std::string, scoped_refptr<Stream>>; | 62 using StreamsMap = std::map<std::string, scoped_refptr<Stream>>; |
| 60 StreamsMap streams_; | 63 StreamsMap streams_; |
| 61 }; | 64 }; |
| 62 | 65 |
| 63 } // namespace content | 66 } // namespace content |
| 67 |
| 68 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_IO_CONTEXT_H_ |
| OLD | NEW |