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" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/singleton.h" | 12 #include "base/memory/singleton.h" |
13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
14 #include "content/public/browser/devtools_manager_delegate.h" | 14 #include "content/public/browser/devtools_manager_delegate.h" |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 | 17 |
18 class DevToolsAgentHostImpl; | |
19 class DevToolsHttpHandler; | 18 class DevToolsHttpHandler; |
20 | 19 |
21 // This class is a singleton that manage global DevTools state for the whole | 20 // This class is a singleton that manage global DevTools state for the whole |
22 // browser. | 21 // browser. |
23 // TODO(dgozman): remove this class entirely. | 22 // TODO(dgozman): remove this class entirely. |
24 class CONTENT_EXPORT DevToolsManager { | 23 class CONTENT_EXPORT DevToolsManager { |
25 public: | 24 public: |
26 // Returns single instance of this class. The instance is destroyed on the | 25 // 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. | 26 // browser main loop exit so this method MUST NOT be called after that point. |
28 static DevToolsManager* GetInstance(); | 27 static DevToolsManager* GetInstance(); |
(...skipping 10 matching lines...) Expand all Loading... |
39 | 38 |
40 std::unique_ptr<DevToolsManagerDelegate> delegate_; | 39 std::unique_ptr<DevToolsManagerDelegate> delegate_; |
41 std::unique_ptr<DevToolsHttpHandler> http_handler_; | 40 std::unique_ptr<DevToolsHttpHandler> http_handler_; |
42 | 41 |
43 DISALLOW_COPY_AND_ASSIGN(DevToolsManager); | 42 DISALLOW_COPY_AND_ASSIGN(DevToolsManager); |
44 }; | 43 }; |
45 | 44 |
46 } // namespace content | 45 } // namespace content |
47 | 46 |
48 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_MANAGER_H_ | 47 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_MANAGER_H_ |
OLD | NEW |