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

Side by Side Diff: chrome/browser/chromeos/chrome_interface_factory.h

Issue 1735583002: Rename WeakBindingSet/WeakInterfacePtrSet to BindingSet/InterfacePtrSet. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/app/mash/mash_runner.cc ('k') | chrome/browser/usb/web_usb_permission_bubble.h » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_CHROMEOS_CHROME_INTERFACE_FACTORY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_CHROME_INTERFACE_FACTORY_H_
6 #define CHROME_BROWSER_CHROMEOS_CHROME_INTERFACE_FACTORY_H_ 6 #define CHROME_BROWSER_CHROMEOS_CHROME_INTERFACE_FACTORY_H_
7 7
8 #include "content/public/common/mojo_shell_connection.h" 8 #include "content/public/common/mojo_shell_connection.h"
9 #include "mojo/public/cpp/bindings/weak_binding_set.h" 9 #include "mojo/public/cpp/bindings/binding_set.h"
10 #include "mojo/shell/public/cpp/interface_factory.h" 10 #include "mojo/shell/public/cpp/interface_factory.h"
11 #include "ui/keyboard/keyboard.mojom.h" 11 #include "ui/keyboard/keyboard.mojom.h"
12 12
13 class KeyboardUIService; 13 class KeyboardUIService;
14 14
15 namespace chromeos { 15 namespace chromeos {
16 16
17 // InterfaceFactory for creating all services provided by chrome. 17 // InterfaceFactory for creating all services provided by chrome.
18 class ChromeInterfaceFactory 18 class ChromeInterfaceFactory
19 : public content::MojoShellConnection::Listener, 19 : public content::MojoShellConnection::Listener,
20 public mojo::InterfaceFactory<keyboard::mojom::Keyboard> { 20 public mojo::InterfaceFactory<keyboard::mojom::Keyboard> {
21 public: 21 public:
22 ChromeInterfaceFactory(); 22 ChromeInterfaceFactory();
23 ~ChromeInterfaceFactory() override; 23 ~ChromeInterfaceFactory() override;
24 24
25 private: 25 private:
26 // content::MojoShellConnection::Listener: 26 // content::MojoShellConnection::Listener:
27 bool AcceptConnection(mojo::Connection* connection) override; 27 bool AcceptConnection(mojo::Connection* connection) override;
28 28
29 // mojo::InterfaceFactory<keyboard::Keyboard>: 29 // mojo::InterfaceFactory<keyboard::Keyboard>:
30 void Create( 30 void Create(
31 mojo::Connection* connection, 31 mojo::Connection* connection,
32 mojo::InterfaceRequest<keyboard::mojom::Keyboard> request) override; 32 mojo::InterfaceRequest<keyboard::mojom::Keyboard> request) override;
33 33
34 scoped_ptr<KeyboardUIService> keyboard_ui_service_; 34 scoped_ptr<KeyboardUIService> keyboard_ui_service_;
35 mojo::WeakBindingSet<keyboard::mojom::Keyboard> keyboard_bindings_; 35 mojo::BindingSet<keyboard::mojom::Keyboard> keyboard_bindings_;
36 36
37 DISALLOW_COPY_AND_ASSIGN(ChromeInterfaceFactory); 37 DISALLOW_COPY_AND_ASSIGN(ChromeInterfaceFactory);
38 }; 38 };
39 39
40 } // namespace chromeos 40 } // namespace chromeos
41 41
42 #endif // CHROME_BROWSER_CHROMEOS_CHROME_INTERFACE_FACTORY_H_ 42 #endif // CHROME_BROWSER_CHROMEOS_CHROME_INTERFACE_FACTORY_H_
OLDNEW
« no previous file with comments | « chrome/app/mash/mash_runner.cc ('k') | chrome/browser/usb/web_usb_permission_bubble.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698