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 CHROME_BROWSER_UI_WEBUI_DEVTOOLS_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_DEVTOOLS_UI_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_DEVTOOLS_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_DEVTOOLS_UI_H_ |
7 | 7 |
8 #include <memory> | |
9 | |
10 #include "base/compiler_specific.h" | |
11 #include "base/macros.h" | 8 #include "base/macros.h" |
12 #include "chrome/browser/devtools/devtools_ui_bindings.h" | 9 #include "chrome/browser/devtools/devtools_ui_bindings.h" |
13 #include "content/public/browser/web_ui_controller.h" | 10 #include "content/public/browser/web_ui_controller.h" |
14 | 11 |
15 class DevToolsUI : public content::WebUIController { | 12 class DevToolsUI : public content::WebUIController { |
16 public: | 13 public: |
17 static GURL GetProxyURL(const std::string& frontend_url); | 14 static GURL GetProxyURL(const std::string& frontend_url); |
18 static GURL GetRemoteBaseURL(); | 15 static GURL GetRemoteBaseURL(); |
19 static GURL SanitizeFrontendURL(const GURL& url); | |
20 | 16 |
21 explicit DevToolsUI(content::WebUI* web_ui); | 17 explicit DevToolsUI(content::WebUI* web_ui); |
22 ~DevToolsUI() override; | 18 ~DevToolsUI() override; |
23 | 19 |
24 private: | 20 private: |
25 std::unique_ptr<DevToolsUIBindings> bindings_; | 21 DevToolsUIBindings bindings_; |
26 DISALLOW_COPY_AND_ASSIGN(DevToolsUI); | 22 DISALLOW_COPY_AND_ASSIGN(DevToolsUI); |
27 }; | 23 }; |
28 | 24 |
29 #endif // CHROME_BROWSER_UI_WEBUI_DEVTOOLS_UI_H_ | 25 #endif // CHROME_BROWSER_UI_WEBUI_DEVTOOLS_UI_H_ |
OLD | NEW |