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

Side by Side Diff: ash/system/locale/locale_notification_controller.h

Issue 2867673004: Use OnceCallback on Mojo interfaces in //ash (Closed)
Patch Set: count -> container_count Created 3 years, 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 ASH_SYSTEM_LOCALE_LOCALE_NOTIFICATION_CONTROLLER_H_ 5 #ifndef ASH_SYSTEM_LOCALE_LOCALE_NOTIFICATION_CONTROLLER_H_
6 #define ASH_SYSTEM_LOCALE_LOCALE_NOTIFICATION_CONTROLLER_H_ 6 #define ASH_SYSTEM_LOCALE_LOCALE_NOTIFICATION_CONTROLLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ash/public/interfaces/locale.mojom.h" 10 #include "ash/public/interfaces/locale.mojom.h"
(...skipping 11 matching lines...) Expand all
22 22
23 // Binds the mojom::LocaleNotificationController interface request to this 23 // Binds the mojom::LocaleNotificationController interface request to this
24 // object. 24 // object.
25 void BindRequest(mojom::LocaleNotificationControllerRequest request); 25 void BindRequest(mojom::LocaleNotificationControllerRequest request);
26 26
27 private: 27 private:
28 // Overridden from mojom::LocaleNotificationController: 28 // Overridden from mojom::LocaleNotificationController:
29 void OnLocaleChanged(const std::string& cur_locale, 29 void OnLocaleChanged(const std::string& cur_locale,
30 const std::string& from_locale, 30 const std::string& from_locale,
31 const std::string& to_locale, 31 const std::string& to_locale,
32 const OnLocaleChangedCallback& callback) override; 32 OnLocaleChangedCallback callback) override;
33 33
34 std::string cur_locale_; 34 std::string cur_locale_;
35 std::string from_locale_; 35 std::string from_locale_;
36 std::string to_locale_; 36 std::string to_locale_;
37 37
38 // Bindings for the LocaleNotificationController interface. 38 // Bindings for the LocaleNotificationController interface.
39 mojo::BindingSet<mojom::LocaleNotificationController> bindings_; 39 mojo::BindingSet<mojom::LocaleNotificationController> bindings_;
40 40
41 DISALLOW_COPY_AND_ASSIGN(LocaleNotificationController); 41 DISALLOW_COPY_AND_ASSIGN(LocaleNotificationController);
42 }; 42 };
43 43
44 } // namespace ash 44 } // namespace ash
45 45
46 #endif // ASH_SYSTEM_LOCALE_LOCALE_NOTIFICATION_CONTROLLER_H_ 46 #endif // ASH_SYSTEM_LOCALE_LOCALE_NOTIFICATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/shell/window_watcher_shelf_item_delegate.cc ('k') | ash/system/locale/locale_notification_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698