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