| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_MANAGER_H_ |
| 6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_MANAGER_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_MANAGER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 public: | 25 public: |
| 26 // Returns single instance of this class. The instance is destroyed on the | 26 // Returns single instance of this class. The instance is destroyed on the |
| 27 // browser main loop exit so this method MUST NOT be called after that point. | 27 // browser main loop exit so this method MUST NOT be called after that point. |
| 28 static DevToolsManager* GetInstance(); | 28 static DevToolsManager* GetInstance(); |
| 29 | 29 |
| 30 DevToolsManager(); | 30 DevToolsManager(); |
| 31 virtual ~DevToolsManager(); | 31 virtual ~DevToolsManager(); |
| 32 | 32 |
| 33 DevToolsManagerDelegate* delegate() const { return delegate_.get(); } | 33 DevToolsManagerDelegate* delegate() const { return delegate_.get(); } |
| 34 | 34 |
| 35 void AgentHostStateChanged(DevToolsAgentHostImpl* agent_host, bool attached); | |
| 36 | |
| 37 void SetHttpHandler(std::unique_ptr<DevToolsHttpHandler> http_handler); | 35 void SetHttpHandler(std::unique_ptr<DevToolsHttpHandler> http_handler); |
| 38 | 36 |
| 39 private: | 37 private: |
| 40 friend struct base::DefaultSingletonTraits<DevToolsManager>; | 38 friend struct base::DefaultSingletonTraits<DevToolsManager>; |
| 41 | 39 |
| 42 std::unique_ptr<DevToolsManagerDelegate> delegate_; | 40 std::unique_ptr<DevToolsManagerDelegate> delegate_; |
| 43 std::unique_ptr<DevToolsHttpHandler> http_handler_; | 41 std::unique_ptr<DevToolsHttpHandler> http_handler_; |
| 44 int attached_hosts_count_; | |
| 45 | 42 |
| 46 DISALLOW_COPY_AND_ASSIGN(DevToolsManager); | 43 DISALLOW_COPY_AND_ASSIGN(DevToolsManager); |
| 47 }; | 44 }; |
| 48 | 45 |
| 49 } // namespace content | 46 } // namespace content |
| 50 | 47 |
| 51 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_MANAGER_H_ | 48 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_MANAGER_H_ |
| OLD | NEW |