| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_DEBUGGER_DEVTOOLS_CLIENT_HOST_H_ | 5 #ifndef CONTENT_BROWSER_DEBUGGER_DEVTOOLS_CLIENT_HOST_H_ |
| 6 #define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_CLIENT_HOST_H_ | 6 #define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_CLIENT_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 DevToolsClientHost(); | 64 DevToolsClientHost(); |
| 65 | 65 |
| 66 void ForwardToDevToolsAgent(const IPC::Message& message); | 66 void ForwardToDevToolsAgent(const IPC::Message& message); |
| 67 | 67 |
| 68 // Should be called when the devtools client is going to die and this | 68 // Should be called when the devtools client is going to die and this |
| 69 // DevToolsClientHost should not be used anymore. | 69 // DevToolsClientHost should not be used anymore. |
| 70 void NotifyCloseListener(); | 70 void NotifyCloseListener(); |
| 71 | 71 |
| 72 private: | 72 private: |
| 73 CloseListener* close_listener_; | 73 CloseListener* close_listener_; |
| 74 typedef std::vector<DevToolsClientHost*> DevToolsClientHostList; | |
| 75 static DevToolsClientHostList instances_; | |
| 76 DISALLOW_COPY_AND_ASSIGN(DevToolsClientHost); | 74 DISALLOW_COPY_AND_ASSIGN(DevToolsClientHost); |
| 77 }; | 75 }; |
| 78 | 76 |
| 79 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_CLIENT_HOST_H_ | 77 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_CLIENT_HOST_H_ |
| OLD | NEW |