Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(232)

Side by Side Diff: chrome/browser/ui/webui/devtools_ui.h

Issue 2403633002: [DevTools] Move sanitize url to devtools_ui.cc. (Closed)
Patch Set: disable test on android and ios - there is no devtools_ui Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/devtools/devtools_window.cc ('k') | chrome/browser/ui/webui/devtools_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « chrome/browser/devtools/devtools_window.cc ('k') | chrome/browser/ui/webui/devtools_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698