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

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

Issue 2620193002: Revert of DevTools: move front-end URL handling to DevToolsUIBindingds (Closed)
Patch Set: Created 3 years, 11 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/url_constants.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
10 #include "base/compiler_specific.h"
8 #include "base/macros.h" 11 #include "base/macros.h"
9 #include "chrome/browser/devtools/devtools_ui_bindings.h" 12 #include "chrome/browser/devtools/devtools_ui_bindings.h"
10 #include "content/public/browser/web_ui_controller.h" 13 #include "content/public/browser/web_ui_controller.h"
11 14
12 class DevToolsUI : public content::WebUIController { 15 class DevToolsUI : public content::WebUIController {
13 public: 16 public:
14 static GURL GetProxyURL(const std::string& frontend_url); 17 static GURL GetProxyURL(const std::string& frontend_url);
15 static GURL GetRemoteBaseURL(); 18 static GURL GetRemoteBaseURL();
19 static GURL SanitizeFrontendURL(const GURL& url);
16 20
17 explicit DevToolsUI(content::WebUI* web_ui); 21 explicit DevToolsUI(content::WebUI* web_ui);
18 ~DevToolsUI() override; 22 ~DevToolsUI() override;
19 23
20 private: 24 private:
21 DevToolsUIBindings bindings_; 25 std::unique_ptr<DevToolsUIBindings> bindings_;
22 DISALLOW_COPY_AND_ASSIGN(DevToolsUI); 26 DISALLOW_COPY_AND_ASSIGN(DevToolsUI);
23 }; 27 };
24 28
25 #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/url_constants.cc ('k') | chrome/browser/ui/webui/devtools_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698