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

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

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_DOMAIN_RELIABILITY_INTERNALS_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_DOMAIN_RELIABILITY_INTERNALS_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_DOMAIN_RELIABILITY_INTERNALS_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_DOMAIN_RELIABILITY_INTERNALS_UI_H_
7 7
8 #include <memory>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "content/public/browser/web_ui_controller.h" 11 #include "content/public/browser/web_ui_controller.h"
11 12
12 namespace base { 13 namespace base {
13 class ListValue; 14 class ListValue;
14 class Value; 15 class Value;
15 } // namespace base 16 } // namespace base
16 17
17 // The WebUI for chrome://domain-reliability-internals 18 // The WebUI for chrome://domain-reliability-internals
18 class DomainReliabilityInternalsUI : public content::WebUIController { 19 class DomainReliabilityInternalsUI : public content::WebUIController {
19 public: 20 public:
20 explicit DomainReliabilityInternalsUI(content::WebUI* web_ui); 21 explicit DomainReliabilityInternalsUI(content::WebUI* web_ui);
21 ~DomainReliabilityInternalsUI() override; 22 ~DomainReliabilityInternalsUI() override;
22 23
23 private: 24 private:
24 void UpdateData(const base::ListValue* args) const; 25 void UpdateData(const base::ListValue* args) const;
25 void OnDataUpdated(scoped_ptr<base::Value> data) const; 26 void OnDataUpdated(std::unique_ptr<base::Value> data) const;
26 27
27 DISALLOW_COPY_AND_ASSIGN(DomainReliabilityInternalsUI); 28 DISALLOW_COPY_AND_ASSIGN(DomainReliabilityInternalsUI);
28 }; 29 };
29 30
30 #endif // CHROME_BROWSER_UI_WEBUI_DOMAIN_RELIABILITY_INTERNALS_UI_H_ 31 #endif // CHROME_BROWSER_UI_WEBUI_DOMAIN_RELIABILITY_INTERNALS_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/copresence_ui_handler.cc ('k') | chrome/browser/ui/webui/domain_reliability_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698