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

Side by Side Diff: extensions/browser/content_hash_fetcher.h

Issue 2535713004: extensions: Cleanup class/struct fwd declarations (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « extensions/browser/app_sorting.h ('k') | extensions/browser/event_listener_map.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef EXTENSIONS_BROWSER_CONTENT_HASH_FETCHER_H_ 5 #ifndef EXTENSIONS_BROWSER_CONTENT_HASH_FETCHER_H_
6 #define EXTENSIONS_BROWSER_CONTENT_HASH_FETCHER_H_ 6 #define EXTENSIONS_BROWSER_CONTENT_HASH_FETCHER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 #include <utility> 11 #include <utility>
12 12
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
17 #include "extensions/common/extension_id.h" 17 #include "extensions/common/extension_id.h"
18 18
19 namespace net { 19 namespace net {
20 class URLRequestContextGetter; 20 class URLRequestContextGetter;
21 } 21 }
22 22
23 namespace extensions { 23 namespace extensions {
24 class Extension; 24 class Extension;
25 class ExtensionRegistry;
26 class ContentHashFetcherJob; 25 class ContentHashFetcherJob;
27 class ContentVerifierDelegate; 26 class ContentVerifierDelegate;
28 27
29 // This class is responsible for getting signed expected hashes for use in 28 // This class is responsible for getting signed expected hashes for use in
30 // extension content verification. As extensions are loaded it will fetch and 29 // extension content verification. As extensions are loaded it will fetch and
31 // parse/validate/cache this data as needed, including calculating expected 30 // parse/validate/cache this data as needed, including calculating expected
32 // hashes for each block of each file within an extension. (These unsigned leaf 31 // hashes for each block of each file within an extension. (These unsigned leaf
33 // node block level hashes will always be checked at time of use use to make 32 // node block level hashes will always be checked at time of use use to make
34 // sure they match the signed treehash root hash). 33 // sure they match the signed treehash root hash).
35 class ContentHashFetcher { 34 class ContentHashFetcher {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 76
78 // Used for binding callbacks passed to jobs. 77 // Used for binding callbacks passed to jobs.
79 base::WeakPtrFactory<ContentHashFetcher> weak_ptr_factory_; 78 base::WeakPtrFactory<ContentHashFetcher> weak_ptr_factory_;
80 79
81 DISALLOW_COPY_AND_ASSIGN(ContentHashFetcher); 80 DISALLOW_COPY_AND_ASSIGN(ContentHashFetcher);
82 }; 81 };
83 82
84 } // namespace extensions 83 } // namespace extensions
85 84
86 #endif // EXTENSIONS_BROWSER_CONTENT_HASH_FETCHER_H_ 85 #endif // EXTENSIONS_BROWSER_CONTENT_HASH_FETCHER_H_
OLDNEW
« no previous file with comments | « extensions/browser/app_sorting.h ('k') | extensions/browser/event_listener_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698