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

Side by Side Diff: content/browser/devtools/devtools_io_context.h

Issue 2863623003: [DevTools] Support multiple sessions in content/ domain handlers (Closed)
Patch Set: addressed review comments Created 3 years, 7 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 unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/browser/devtools/devtools_agent_host_impl.cc ('k') | content/browser/devtools/devtools_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698