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

Side by Side Diff: chrome/browser/protector/protector.h

Issue 8430027: Added histogram on successful check. Safe verification (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed signing, added counters 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_PROTECTOR_PROTECTOR_H_ 5 #ifndef CHROME_BROWSER_PROTECTOR_PROTECTOR_H_
6 #define CHROME_BROWSER_PROTECTOR_PROTECTOR_H_ 6 #define CHROME_BROWSER_PROTECTOR_PROTECTOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 // Profile which settings we are protecting. 62 // Profile which settings we are protecting.
63 Profile* profile_; 63 Profile* profile_;
64 64
65 DISALLOW_COPY_AND_ASSIGN(Protector); 65 DISALLOW_COPY_AND_ASSIGN(Protector);
66 }; 66 };
67 67
68 // Signs string value with protector's key. 68 // Signs string value with protector's key.
69 std::string SignSetting(const std::string& value); 69 std::string SignSetting(const std::string& value);
70 70
71 // Returns true if the signature is valid for the specified key.
72 bool IsSettingValid(const std::string& value, const std::string& signature);
73
71 } // namespace protector 74 } // namespace protector
72 75
73 #endif // CHROME_BROWSER_PROTECTOR_PROTECTOR_H_ 76 #endif // CHROME_BROWSER_PROTECTOR_PROTECTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698