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

Side by Side Diff: extensions/browser/content_hash_reader.cc

Issue 280013003: More implementation details of extension content verification (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged latest trunk Created 6 years, 7 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 | « extensions/browser/content_hash_reader.h ('k') | extensions/browser/content_verifier.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « extensions/browser/content_hash_reader.h ('k') | extensions/browser/content_verifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698