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

Side by Side Diff: chrome/browser/chromeos/dbus/screen_lock_service_provider.h

Issue 623293003: replace OVERRIDE and FINAL with override and final in chrome/browser/chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: run git cl format on echo_dialog_view.h Created 6 years, 2 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 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 CHROME_BROWSER_CHROMEOS_DBUS_SCREEN_LOCK_SERVICE_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DBUS_SCREEN_LOCK_SERVICE_PROVIDER_H_
6 #define CHROME_BROWSER_CHROMEOS_DBUS_SCREEN_LOCK_SERVICE_PROVIDER_H_ 6 #define CHROME_BROWSER_CHROMEOS_DBUS_SCREEN_LOCK_SERVICE_PROVIDER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 12 matching lines...) Expand all
23 // This class exports a "LockScreen" D-Bus methods that the session manager 23 // This class exports a "LockScreen" D-Bus methods that the session manager
24 // calls to instruct Chrome to lock the screen. 24 // calls to instruct Chrome to lock the screen.
25 class ScreenLockServiceProvider 25 class ScreenLockServiceProvider
26 : public CrosDBusService::ServiceProviderInterface { 26 : public CrosDBusService::ServiceProviderInterface {
27 public: 27 public:
28 ScreenLockServiceProvider(); 28 ScreenLockServiceProvider();
29 virtual ~ScreenLockServiceProvider(); 29 virtual ~ScreenLockServiceProvider();
30 30
31 // CrosDBusService::ServiceProviderInterface overrides: 31 // CrosDBusService::ServiceProviderInterface overrides:
32 virtual void Start( 32 virtual void Start(
33 scoped_refptr<dbus::ExportedObject> exported_object) OVERRIDE; 33 scoped_refptr<dbus::ExportedObject> exported_object) override;
34 34
35 private: 35 private:
36 // Called from ExportedObject when a handler is exported as a D-Bus 36 // Called from ExportedObject when a handler is exported as a D-Bus
37 // method or failed to be exported. 37 // method or failed to be exported.
38 void OnExported(const std::string& interface_name, 38 void OnExported(const std::string& interface_name,
39 const std::string& method_name, 39 const std::string& method_name,
40 bool success); 40 bool success);
41 41
42 // Called on UI thread in response to D-Bus requests. 42 // Called on UI thread in response to D-Bus requests.
43 void LockScreen(dbus::MethodCall* method_call, 43 void LockScreen(dbus::MethodCall* method_call,
44 dbus::ExportedObject::ResponseSender response_sender); 44 dbus::ExportedObject::ResponseSender response_sender);
45 45
46 // Keep this last so that all weak pointers will be invalidated at the 46 // Keep this last so that all weak pointers will be invalidated at the
47 // beginning of destruction. 47 // beginning of destruction.
48 base::WeakPtrFactory<ScreenLockServiceProvider> weak_ptr_factory_; 48 base::WeakPtrFactory<ScreenLockServiceProvider> weak_ptr_factory_;
49 49
50 DISALLOW_COPY_AND_ASSIGN(ScreenLockServiceProvider); 50 DISALLOW_COPY_AND_ASSIGN(ScreenLockServiceProvider);
51 }; 51 };
52 52
53 } // namespace chromeos 53 } // namespace chromeos
54 54
55 #endif // CHROME_BROWSER_CHROMEOS_DBUS_SCREEN_LOCK_SERVICE_PROVIDER_H_ 55 #endif // CHROME_BROWSER_CHROMEOS_DBUS_SCREEN_LOCK_SERVICE_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698