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

Side by Side Diff: mojo/services/profile/profile_service_impl.h

Issue 380413003: Mojo: Use InterfaceFactory<Interface> for service registration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: convert everything over, remove ApplicationConnection::AddService Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 MOJO_SERVICES_PROFILE_PROFILE_SERVICE_IMPL_H_ 5 #ifndef MOJO_SERVICES_PROFILE_PROFILE_SERVICE_IMPL_H_
6 #define MOJO_SERVICES_PROFILE_PROFILE_SERVICE_IMPL_H_ 6 #define MOJO_SERVICES_PROFILE_PROFILE_SERVICE_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "mojo/public/cpp/system/macros.h" 9 #include "mojo/public/cpp/system/macros.h"
10 #include "mojo/services/public/interfaces/profile/profile_service.mojom.h" 10 #include "mojo/services/public/interfaces/profile/profile_service.mojom.h"
11 11
12 namespace mojo { 12 namespace mojo {
13 13
14 class ApplicationConnection; 14 class ApplicationConnection;
15 15
16 class ProfileServiceImpl : public InterfaceImpl<ProfileService> { 16 class ProfileServiceImpl : public InterfaceImpl<ProfileService> {
17 public: 17 public:
18 ProfileServiceImpl(ApplicationConnection* connection); 18 ProfileServiceImpl();
19 virtual ~ProfileServiceImpl(); 19 virtual ~ProfileServiceImpl();
20 20
21 // |ProfileService| methods: 21 // |ProfileService| methods:
22 virtual void GetPath( 22 virtual void GetPath(
23 PathKey key, 23 PathKey key,
24 const mojo::Callback<void(mojo::String)>& callback) 24 const mojo::Callback<void(mojo::String)>& callback)
25 OVERRIDE; 25 OVERRIDE;
26 26
27 private: 27 private:
28 MOJO_DISALLOW_COPY_AND_ASSIGN(ProfileServiceImpl); 28 MOJO_DISALLOW_COPY_AND_ASSIGN(ProfileServiceImpl);
29 }; 29 };
30 30
31 } // namespace mojo 31 } // namespace mojo
32 32
33 #endif // MOJO_SERVICES_PROFILE_PROFILE_SERVICE_IMPL_H_ 33 #endif // MOJO_SERVICES_PROFILE_PROFILE_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698