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

Side by Side Diff: chrome/browser/ui/webui/omnibox/omnibox_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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_OMNIBOX_OMNIBOX_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_UI_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/ui/webui/mojo_web_ui_controller.h" 9 #include "chrome/browser/ui/webui/mojo_web_ui_controller.h"
10 #include "chrome/browser/ui/webui/omnibox/omnibox.mojom.h" 10 #include "chrome/browser/ui/webui/omnibox/omnibox.mojom.h"
11 11
12 class OmniboxUIHandler; 12 class OmniboxUIHandler;
13 13
14 // The UI for chrome://omnibox/ 14 // The UI for chrome://omnibox/
15 class OmniboxUI : public MojoWebUIController<mojom::OmniboxUIHandlerMojo> { 15 class OmniboxUI : public MojoWebUIController<mojom::OmniboxUIHandlerMojo> {
16 public: 16 public:
17 explicit OmniboxUI(content::WebUI* contents); 17 explicit OmniboxUI(content::WebUI* contents);
18 ~OmniboxUI() override; 18 ~OmniboxUI() override;
19 19
20 private: 20 private:
21 // MojoWebUIController overrides: 21 // MojoWebUIController overrides:
22 void BindUIHandler( 22 void BindUIHandler(
23 mojo::InterfaceRequest<mojom::OmniboxUIHandlerMojo> request) override; 23 mojo::InterfaceRequest<mojom::OmniboxUIHandlerMojo> request) override;
24 24
25 scoped_ptr<OmniboxUIHandler> omnibox_ui_handler_; 25 std::unique_ptr<OmniboxUIHandler> omnibox_ui_handler_;
26 26
27 DISALLOW_COPY_AND_ASSIGN(OmniboxUI); 27 DISALLOW_COPY_AND_ASSIGN(OmniboxUI);
28 }; 28 };
29 29
30 #endif // CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_UI_H_ 30 #endif // CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/ntp/new_tab_ui.cc ('k') | chrome/browser/ui/webui/omnibox/omnibox_ui_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698