OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "extensions/browser/content_hash_reader.h" |
| 6 |
| 7 namespace extensions { |
| 8 |
| 9 ContentHashReader::ContentHashReader(const std::string& extension_id, |
| 10 const base::Version& extension_version, |
| 11 const base::FilePath& extension_root, |
| 12 const base::FilePath& relative_path, |
| 13 const ContentVerifierKey& key) |
| 14 : extension_id_(extension_id), |
| 15 extension_version_(extension_version.GetString()), |
| 16 extension_root_(extension_root), |
| 17 relative_path_(relative_path), |
| 18 key_(key) { |
| 19 } |
| 20 |
| 21 ContentHashReader::~ContentHashReader() { |
| 22 } |
| 23 |
| 24 bool ContentHashReader::Init() { |
| 25 return true; |
| 26 } |
| 27 |
| 28 int ContentHashReader::block_count() const { |
| 29 return 0; |
| 30 } |
| 31 |
| 32 int ContentHashReader::block_size() const { |
| 33 return 0; |
| 34 } |
| 35 |
| 36 bool ContentHashReader::GetHashForBlock(int block_index, |
| 37 const std::string** result) const { |
| 38 return false; |
| 39 } |
| 40 |
| 41 } // namespace extensions |
OLD | NEW |