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

Side by Side Diff: chrome/browser/chromeos/login/screen_locker.h

Issue 9004051: Replace MessageLoop::DeleteSoon implementation with one that uses base::Bind. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Final Created 8 years, 11 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
« no previous file with comments | « chrome/browser/browsing_data_remover.h ('k') | chrome/browser/chromeos/web_socket_proxy.cc » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_LOGIN_SCREEN_LOCKER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
12 #include "base/task.h" 13 #include "base/message_loop_helpers.h"
13 #include "base/time.h" 14 #include "base/time.h"
14 #include "chrome/browser/chromeos/login/login_status_consumer.h" 15 #include "chrome/browser/chromeos/login/login_status_consumer.h"
15 #include "chrome/browser/chromeos/login/screen_locker_delegate.h" 16 #include "chrome/browser/chromeos/login/screen_locker_delegate.h"
16 #include "ui/base/accelerators/accelerator.h" 17 #include "ui/base/accelerators/accelerator.h"
17 18
18 namespace chromeos { 19 namespace chromeos {
19 20
20 class Authenticator; 21 class Authenticator;
21 class LoginFailure; 22 class LoginFailure;
22 class User; 23 class User;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // Hide the screen locker. 91 // Hide the screen locker.
91 static void Hide(); 92 static void Hide();
92 93
93 // Notifies that PowerManager rejected UnlockScreen request. 94 // Notifies that PowerManager rejected UnlockScreen request.
94 static void UnlockScreenFailed(); 95 static void UnlockScreenFailed();
95 96
96 // Returns the tester 97 // Returns the tester
97 static test::ScreenLockerTester* GetTester(); 98 static test::ScreenLockerTester* GetTester();
98 99
99 private: 100 private:
100 friend class DeleteTask<ScreenLocker>; 101 friend class base::DeleteHelper<ScreenLocker>;
101 friend class test::ScreenLockerTester; 102 friend class test::ScreenLockerTester;
102 friend class test::ScreenLockerViewsTester; 103 friend class test::ScreenLockerViewsTester;
103 friend class test::WebUIScreenLockerTester; 104 friend class test::WebUIScreenLockerTester;
104 friend class ScreenLockerDelegate; 105 friend class ScreenLockerDelegate;
105 106
106 virtual ~ScreenLocker(); 107 virtual ~ScreenLocker();
107 108
108 // Sets the authenticator. 109 // Sets the authenticator.
109 void SetAuthenticator(Authenticator* authenticator); 110 void SetAuthenticator(Authenticator* authenticator);
110 111
(...skipping 30 matching lines...) Expand all
141 // Delegate to forward all login status events to. 142 // Delegate to forward all login status events to.
142 // Tests can use this to receive login status events. 143 // Tests can use this to receive login status events.
143 LoginStatusConsumer* login_status_consumer_; 144 LoginStatusConsumer* login_status_consumer_;
144 145
145 DISALLOW_COPY_AND_ASSIGN(ScreenLocker); 146 DISALLOW_COPY_AND_ASSIGN(ScreenLocker);
146 }; 147 };
147 148
148 } // namespace chromeos 149 } // namespace chromeos
149 150
150 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_H_ 151 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_H_
OLDNEW
« no previous file with comments | « chrome/browser/browsing_data_remover.h ('k') | chrome/browser/chromeos/web_socket_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698