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

Side by Side Diff: chromeos/dbus/services/liveness_service_provider.h

Issue 2549043002: chromeos: Cleanup class/struct fwd declarations (Closed)
Patch Set: Created 4 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
« no previous file with comments | « chromeos/dbus/mock_permission_broker_client.h ('k') | chromeos/dbus/shill_client_helper.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 (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 CHROMEOS_DBUS_SERVICES_LIVENESS_SERVICE_PROVIDER_H_ 5 #ifndef CHROMEOS_DBUS_SERVICES_LIVENESS_SERVICE_PROVIDER_H_
6 #define CHROMEOS_DBUS_SERVICES_LIVENESS_SERVICE_PROVIDER_H_ 6 #define CHROMEOS_DBUS_SERVICES_LIVENESS_SERVICE_PROVIDER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "chromeos/chromeos_export.h" 14 #include "chromeos/chromeos_export.h"
15 #include "chromeos/dbus/services/cros_dbus_service.h" 15 #include "chromeos/dbus/services/cros_dbus_service.h"
16 #include "dbus/exported_object.h" 16 #include "dbus/exported_object.h"
17 17
18 namespace dbus { 18 namespace dbus {
19 class MethodCall; 19 class MethodCall;
20 class Response;
21 } 20 }
22 21
23 namespace chromeos { 22 namespace chromeos {
24 23
25 // This class exports a "CheckLiveness" D-Bus method that the session manager 24 // This class exports a "CheckLiveness" D-Bus method that the session manager
26 // calls periodically to confirm that Chrome's UI thread is responsive to D-Bus 25 // calls periodically to confirm that Chrome's UI thread is responsive to D-Bus
27 // messages. It can be tested with the following command: 26 // messages. It can be tested with the following command:
28 // 27 //
29 // % dbus-send --system --type=method_call --print-reply 28 // % dbus-send --system --type=method_call --print-reply
30 // --dest=org.chromium.LibCrosService 29 // --dest=org.chromium.LibCrosService
(...skipping 26 matching lines...) Expand all
57 // Keep this last so that all weak pointers will be invalidated at the 56 // Keep this last so that all weak pointers will be invalidated at the
58 // beginning of destruction. 57 // beginning of destruction.
59 base::WeakPtrFactory<LivenessServiceProvider> weak_ptr_factory_; 58 base::WeakPtrFactory<LivenessServiceProvider> weak_ptr_factory_;
60 59
61 DISALLOW_COPY_AND_ASSIGN(LivenessServiceProvider); 60 DISALLOW_COPY_AND_ASSIGN(LivenessServiceProvider);
62 }; 61 };
63 62
64 } // namespace chromeos 63 } // namespace chromeos
65 64
66 #endif // CHROMEOS_DBUS_SERVICES_LIVENESS_SERVICE_PROVIDER_H_ 65 #endif // CHROMEOS_DBUS_SERVICES_LIVENESS_SERVICE_PROVIDER_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/mock_permission_broker_client.h ('k') | chromeos/dbus/shill_client_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698