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

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

Issue 2607833002: DevTools: move front-end URL handling to DevToolsUIBindingds (Closed)
Patch Set: review comments addressed 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"
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_
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