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

Side by Side Diff: chrome/browser/ui/webui/omnibox/omnibox_ui.h

Issue 1430313003: Change MojoWebUIController to use mojo::StrongBindingSet. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-geolocation-untangle
Patch Set: Created 5 years 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/basictypes.h" 8 #include "base/basictypes.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 #include "chrome/browser/ui/webui/omnibox/omnibox_ui_handler.h"
11 12
12 // The UI for chrome://omnibox/ 13 // The UI for chrome://omnibox/
13 class OmniboxUI : public MojoWebUIController<OmniboxUIHandlerMojo> { 14 class OmniboxUI
15 : public MojoWebUIController<OmniboxUIHandler> {
14 public: 16 public:
15 explicit OmniboxUI(content::WebUI* contents); 17 explicit OmniboxUI(content::WebUI* contents);
16 ~OmniboxUI() override; 18 ~OmniboxUI() override;
17 19
18 private: 20 private:
19 // MojoWebUIController overrides:
20 void BindUIHandler(
21 mojo::InterfaceRequest<OmniboxUIHandlerMojo> request) override;
22
23 DISALLOW_COPY_AND_ASSIGN(OmniboxUI); 21 DISALLOW_COPY_AND_ASSIGN(OmniboxUI);
24 }; 22 };
25 23
26 #endif // CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_UI_H_ 24 #endif // CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/mojo_web_ui_handler.h ('k') | chrome/browser/ui/webui/omnibox/omnibox_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698