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

Side by Side Diff: chrome/browser/prefs/active_profile_pref_service.h

Issue 2850743004: Replace ServiceInfo with BindSourceInfo. (Closed)
Patch Set: . 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_PREFS_ACTIVE_PROFILE_PREF_SERVICE_H_ 5 #ifndef CHROME_BROWSER_PREFS_ACTIVE_PROFILE_PREF_SERVICE_H_
6 #define CHROME_BROWSER_PREFS_ACTIVE_PROFILE_PREF_SERVICE_H_ 6 #define CHROME_BROWSER_PREFS_ACTIVE_PROFILE_PREF_SERVICE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 24 matching lines...) Expand all
35 prefs::mojom::PrefRegistryPtr pref_registry, 35 prefs::mojom::PrefRegistryPtr pref_registry,
36 const std::vector<PrefValueStore::PrefStoreType>& already_connected_types, 36 const std::vector<PrefValueStore::PrefStoreType>& already_connected_types,
37 const ConnectCallback& callback) override; 37 const ConnectCallback& callback) override;
38 38
39 // service_manager::InterfaceFactory<PrefStoreConnector>: 39 // service_manager::InterfaceFactory<PrefStoreConnector>:
40 void Create(const service_manager::Identity& remote_identity, 40 void Create(const service_manager::Identity& remote_identity,
41 prefs::mojom::PrefStoreConnectorRequest request) override; 41 prefs::mojom::PrefStoreConnectorRequest request) override;
42 42
43 // service_manager::Service: 43 // service_manager::Service:
44 void OnStart() override; 44 void OnStart() override;
45 void OnBindInterface(const service_manager::ServiceInfo& source_info, 45 void OnBindInterface(const service_manager::BindSourceInfo& source_info,
46 const std::string& interface_name, 46 const std::string& interface_name,
47 mojo::ScopedMessagePipeHandle interface_pipe) override; 47 mojo::ScopedMessagePipeHandle interface_pipe) override;
48 48
49 // Called if forwarding the connection request to the per-profile service 49 // Called if forwarding the connection request to the per-profile service
50 // instance failed. 50 // instance failed.
51 void OnConnectError(); 51 void OnConnectError();
52 52
53 prefs::mojom::PrefStoreConnectorPtr connector_ptr_; 53 prefs::mojom::PrefStoreConnectorPtr connector_ptr_;
54 service_manager::BinderRegistry registry_; 54 service_manager::BinderRegistry registry_;
55 mojo::BindingSet<prefs::mojom::PrefStoreConnector> connector_bindings_; 55 mojo::BindingSet<prefs::mojom::PrefStoreConnector> connector_bindings_;
56 56
57 DISALLOW_COPY_AND_ASSIGN(ActiveProfilePrefService); 57 DISALLOW_COPY_AND_ASSIGN(ActiveProfilePrefService);
58 }; 58 };
59 59
60 #endif // CHROME_BROWSER_PREFS_ACTIVE_PROFILE_PREF_SERVICE_H_ 60 #endif // CHROME_BROWSER_PREFS_ACTIVE_PROFILE_PREF_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/prefs/active_profile_pref_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698