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

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

Issue 1909773002: Convert //extensions/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 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
« no previous file with comments | « extensions/browser/content_hash_fetcher.cc ('k') | extensions/browser/content_hash_tree.cc » ('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_READER_H_ 5 #ifndef EXTENSIONS_BROWSER_CONTENT_HASH_READER_H_
6 #define EXTENSIONS_BROWSER_CONTENT_HASH_READER_H_ 6 #define EXTENSIONS_BROWSER_CONTENT_HASH_READER_H_
7 7
8 #include <memory>
8 #include <string> 9 #include <string>
9 #include <vector> 10 #include <vector>
10 11
11 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
12 #include "base/macros.h" 13 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h"
15 #include "base/version.h" 15 #include "base/version.h"
16 #include "extensions/browser/content_verifier_delegate.h" 16 #include "extensions/browser/content_verifier_delegate.h"
17 17
18 namespace extensions { 18 namespace extensions {
19 19
20 class VerifiedContents; 20 class VerifiedContents;
21 21
22 // This class creates an object that will read expected hashes that may have 22 // This class creates an object that will read expected hashes that may have
23 // been fetched/calculated by the ContentHashFetcher, and vends them out for 23 // been fetched/calculated by the ContentHashFetcher, and vends them out for
24 // use in ContentVerifyJob's. 24 // use in ContentVerifyJob's.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 InitStatus status_; 75 InitStatus status_;
76 76
77 bool content_exists_; 77 bool content_exists_;
78 78
79 bool have_verified_contents_; 79 bool have_verified_contents_;
80 bool have_computed_hashes_; 80 bool have_computed_hashes_;
81 81
82 // The blocksize used for generating the hashes. 82 // The blocksize used for generating the hashes.
83 int block_size_; 83 int block_size_;
84 84
85 scoped_ptr<VerifiedContents> verified_contents_; 85 std::unique_ptr<VerifiedContents> verified_contents_;
86 86
87 std::vector<std::string> hashes_; 87 std::vector<std::string> hashes_;
88 88
89 DISALLOW_COPY_AND_ASSIGN(ContentHashReader); 89 DISALLOW_COPY_AND_ASSIGN(ContentHashReader);
90 }; 90 };
91 91
92 } // namespace extensions 92 } // namespace extensions
93 93
94 #endif // EXTENSIONS_BROWSER_CONTENT_HASH_READER_H_ 94 #endif // EXTENSIONS_BROWSER_CONTENT_HASH_READER_H_
OLDNEW
« no previous file with comments | « extensions/browser/content_hash_fetcher.cc ('k') | extensions/browser/content_hash_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698