Revert 270694 "A bunch of remaining parts of extension content v..."
[chromium-blink-merge.git] / extensions / browser / content_hash_fetcher.cc
blobb40d16cc4f6bed9cf8ebc4b9107d2021618c84b9
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.
5 #include "extensions/browser/content_hash_fetcher.h"
7 #include "extensions/browser/extension_registry.h"
9 namespace extensions {
11 ContentHashFetcher::ContentHashFetcher(content::BrowserContext* context,
12 ContentVerifierDelegate* delegate)
13 : context_(context), delegate_(delegate), observer_(this) {
16 ContentHashFetcher::~ContentHashFetcher() {
19 void ContentHashFetcher::Start() {
20 ExtensionRegistry* registry = ExtensionRegistry::Get(context_);
21 observer_.Add(registry);
24 void ContentHashFetcher::DoFetch(const Extension* extension) {
27 void ContentHashFetcher::OnExtensionLoaded(
28 content::BrowserContext* browser_context,
29 const Extension* extension) {
32 void ContentHashFetcher::OnExtensionUnloaded(
33 content::BrowserContext* browser_context,
34 const Extension* extension,
35 UnloadedExtensionInfo::Reason reason) {
38 } // namespace extensions