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

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

Issue 8638016: Add OVERRIDE to chrome/browser/chromeos/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 (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_CRYPTOHOME_OP_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_CRYPTOHOME_OP_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_CRYPTOHOME_OP_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_CRYPTOHOME_OP_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/compiler_specific.h"
11 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
12 #include "chrome/browser/chromeos/cros/cryptohome_library.h" 13 #include "chrome/browser/chromeos/cros/cryptohome_library.h"
13 14
14 namespace chromeos { 15 namespace chromeos {
15 class AuthAttemptState; 16 class AuthAttemptState;
16 class AuthAttemptStateResolver; 17 class AuthAttemptStateResolver;
17 18
18 class CryptohomeOp 19 class CryptohomeOp
19 : public base::RefCountedThreadSafe<CryptohomeOp>, 20 : public base::RefCountedThreadSafe<CryptohomeOp>,
20 public CryptohomeLibrary::Delegate { 21 public CryptohomeLibrary::Delegate {
(...skipping 14 matching lines...) Expand all
35 static CryptohomeOp* CreateRemoveAttempt(AuthAttemptState* current_attempt, 36 static CryptohomeOp* CreateRemoveAttempt(AuthAttemptState* current_attempt,
36 AuthAttemptStateResolver* callback); 37 AuthAttemptStateResolver* callback);
37 38
38 static CryptohomeOp* CreateCheckKeyAttempt( 39 static CryptohomeOp* CreateCheckKeyAttempt(
39 AuthAttemptState* current_attempt, 40 AuthAttemptState* current_attempt,
40 AuthAttemptStateResolver* callback); 41 AuthAttemptStateResolver* callback);
41 42
42 virtual void Initiate() = 0; 43 virtual void Initiate() = 0;
43 44
44 // Implementation of CryptohomeLibrary::Delegate. 45 // Implementation of CryptohomeLibrary::Delegate.
45 virtual void OnComplete(bool success, int return_code); 46 virtual void OnComplete(bool success, int return_code) OVERRIDE;
46 47
47 protected: 48 protected:
48 CryptohomeOp(AuthAttemptState* current_attempt, 49 CryptohomeOp(AuthAttemptState* current_attempt,
49 AuthAttemptStateResolver* callback); 50 AuthAttemptStateResolver* callback);
50 51
51 virtual ~CryptohomeOp(); 52 virtual ~CryptohomeOp();
52 53
53 virtual void TriggerResolve(bool offline_outcome, int offline_code); 54 virtual void TriggerResolve(bool offline_outcome, int offline_code);
54 55
55 AuthAttemptState* const attempt_; 56 AuthAttemptState* const attempt_;
56 AuthAttemptStateResolver* const resolver_; 57 AuthAttemptStateResolver* const resolver_;
57 58
58 private: 59 private:
59 friend class base::RefCountedThreadSafe<CryptohomeOp>; 60 friend class base::RefCountedThreadSafe<CryptohomeOp>;
60 DISALLOW_COPY_AND_ASSIGN(CryptohomeOp); 61 DISALLOW_COPY_AND_ASSIGN(CryptohomeOp);
61 }; 62 };
62 63
63 } // namespace chromeos 64 } // namespace chromeos
64 65
65 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_CRYPTOHOME_OP_H_ 66 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_CRYPTOHOME_OP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698