| 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_PUBLIC_BROWSER_DEVTOOLS_DEVTOOLS_CLIENT_HOST_H_ |
| 6 #define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_CLIENT_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_DEVTOOLS_CLIENT_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
| 14 | 14 |
| 15 namespace IPC { | 15 namespace IPC { |
| 16 class Message; | 16 class Message; |
| 17 } | 17 } |
| 18 | 18 |
| 19 class RenderViewHost; | 19 class RenderViewHost; |
| 20 class TabContents; | 20 class TabContents; |
| 21 | 21 |
| 22 namespace content { |
| 23 |
| 22 // Describes interface for managing devtools clients from browser process. There | 24 // Describes interface for managing devtools clients from browser process. There |
| 23 // are currently two types of clients: devtools windows and TCP socket | 25 // are currently two types of clients: devtools windows and TCP socket |
| 24 // debuggers. | 26 // debuggers. |
| 25 class CONTENT_EXPORT DevToolsClientHost { | 27 class CONTENT_EXPORT DevToolsClientHost { |
| 26 public: | 28 public: |
| 27 class CONTENT_EXPORT CloseListener { | 29 class CONTENT_EXPORT CloseListener { |
| 28 public: | 30 public: |
| 29 CloseListener() {} | 31 CloseListener() {} |
| 30 virtual ~CloseListener() {} | 32 virtual ~CloseListener() {} |
| 31 virtual void ClientHostClosing(DevToolsClientHost* host) = 0; | 33 virtual void ClientHostClosing(DevToolsClientHost* host) = 0; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 69 |
| 68 // Should be called when the devtools client is going to die and this | 70 // Should be called when the devtools client is going to die and this |
| 69 // DevToolsClientHost should not be used anymore. | 71 // DevToolsClientHost should not be used anymore. |
| 70 void NotifyCloseListener(); | 72 void NotifyCloseListener(); |
| 71 | 73 |
| 72 private: | 74 private: |
| 73 CloseListener* close_listener_; | 75 CloseListener* close_listener_; |
| 74 DISALLOW_COPY_AND_ASSIGN(DevToolsClientHost); | 76 DISALLOW_COPY_AND_ASSIGN(DevToolsClientHost); |
| 75 }; | 77 }; |
| 76 | 78 |
| 77 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_CLIENT_HOST_H_ | 79 } // namespace content |
| 80 |
| 81 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_DEVTOOLS_CLIENT_HOST_H_ |
| OLD | NEW |