| OLD | NEW | 
|---|
| 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 #include "chrome/browser/safe_browsing/binary_feature_extractor.h" | 5 #include "chrome/common/safe_browsing/binary_feature_extractor.h" | 
| 6 | 6 | 
| 7 #include "base/files/file.h" | 7 #include "base/files/file.h" | 
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" | 
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" | 
| 10 #include "chrome/common/safe_browsing/csd.pb.h" | 10 #include "chrome/common/safe_browsing/csd.pb.h" | 
| 11 #include "crypto/secure_hash.h" | 11 #include "crypto/secure_hash.h" | 
| 12 #include "crypto/sha2.h" | 12 #include "crypto/sha2.h" | 
| 13 | 13 | 
| 14 namespace safe_browsing { | 14 namespace safe_browsing { | 
| 15 | 15 | 
| (...skipping 15 matching lines...) Expand all  Loading... | 
| 31     } | 31     } | 
| 32     if (!len) { | 32     if (!len) { | 
| 33       uint8_t hash[crypto::kSHA256Length]; | 33       uint8_t hash[crypto::kSHA256Length]; | 
| 34       ctx->Finish(hash, sizeof(hash)); | 34       ctx->Finish(hash, sizeof(hash)); | 
| 35       digests->set_sha256(hash, sizeof(hash)); | 35       digests->set_sha256(hash, sizeof(hash)); | 
| 36     } | 36     } | 
| 37   } | 37   } | 
| 38 } | 38 } | 
| 39 | 39 | 
| 40 }  // namespace safe_browsing | 40 }  // namespace safe_browsing | 
| OLD | NEW | 
|---|