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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/browser/content_hash_reader.h ('k') | extensions/browser/content_verifier.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/content_hash_reader.cc
diff --git a/extensions/browser/content_hash_reader.cc b/extensions/browser/content_hash_reader.cc
new file mode 100644
index 0000000000000000000000000000000000000000..9a327acd7b239b78950af2d7df574839ef3e1d3e
--- /dev/null
+++ b/extensions/browser/content_hash_reader.cc
@@ -0,0 +1,41 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "extensions/browser/content_hash_reader.h"
+
+namespace extensions {
+
+ContentHashReader::ContentHashReader(const std::string& extension_id,
+ const base::Version& extension_version,
+ const base::FilePath& extension_root,
+ const base::FilePath& relative_path,
+ const ContentVerifierKey& key)
+ : extension_id_(extension_id),
+ extension_version_(extension_version.GetString()),
+ extension_root_(extension_root),
+ relative_path_(relative_path),
+ key_(key) {
+}
+
+ContentHashReader::~ContentHashReader() {
+}
+
+bool ContentHashReader::Init() {
+ return true;
+}
+
+int ContentHashReader::block_count() const {
+ return 0;
+}
+
+int ContentHashReader::block_size() const {
+ return 0;
+}
+
+bool ContentHashReader::GetHashForBlock(int block_index,
+ const std::string** result) const {
+ return false;
+}
+
+} // namespace extensions
« 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