OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_SHELL_BROWSER_SHELL_DEVTOOLS_FRONTEND_H_ | 5 #ifndef CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_FRONTEND_H_ |
6 #define CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_FRONTEND_H_ | 6 #define CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_FRONTEND_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 void HandleMessageFromDevToolsFrontend(const std::string& message) override; | 58 void HandleMessageFromDevToolsFrontend(const std::string& message) override; |
59 void HandleMessageFromDevToolsFrontendToBackend( | 59 void HandleMessageFromDevToolsFrontendToBackend( |
60 const std::string& message) override; | 60 const std::string& message) override; |
61 | 61 |
62 // net::URLFetcherDelegate overrides. | 62 // net::URLFetcherDelegate overrides. |
63 void OnURLFetchComplete(const net::URLFetcher* source) override; | 63 void OnURLFetchComplete(const net::URLFetcher* source) override; |
64 | 64 |
65 Shell* frontend_shell_; | 65 Shell* frontend_shell_; |
66 scoped_refptr<DevToolsAgentHost> agent_host_; | 66 scoped_refptr<DevToolsAgentHost> agent_host_; |
67 scoped_ptr<DevToolsFrontendHost> frontend_host_; | 67 scoped_ptr<DevToolsFrontendHost> frontend_host_; |
68 using PendingRequestsMap = std::map<const net::URLFetcher*, int>; | 68 using PendingRequestsMap = |
| 69 std::map<const net::URLFetcher*, std::pair<int, int>>; |
69 PendingRequestsMap pending_requests_; | 70 PendingRequestsMap pending_requests_; |
70 | 71 |
71 DISALLOW_COPY_AND_ASSIGN(ShellDevToolsFrontend); | 72 DISALLOW_COPY_AND_ASSIGN(ShellDevToolsFrontend); |
72 }; | 73 }; |
73 | 74 |
74 } // namespace content | 75 } // namespace content |
75 | 76 |
76 #endif // CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_FRONTEND_H_ | 77 #endif // CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_FRONTEND_H_ |
OLD | NEW |