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

Side by Side Diff: extensions/browser/content_verifier.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
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_VERIFIER_H_ 5 #ifndef EXTENSIONS_BROWSER_CONTENT_VERIFIER_H_
6 #define EXTENSIONS_BROWSER_CONTENT_VERIFIER_H_ 6 #define EXTENSIONS_BROWSER_CONTENT_VERIFIER_H_
7 7
8 #include <memory>
8 #include <set> 9 #include <set>
9 #include <string> 10 #include <string>
10 11
11 #include "base/macros.h" 12 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h"
14 #include "base/scoped_observer.h" 14 #include "base/scoped_observer.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 #include "extensions/browser/content_verify_job.h" 17 #include "extensions/browser/content_verify_job.h"
18 #include "extensions/browser/extension_registry_observer.h" 18 #include "extensions/browser/extension_registry_observer.h"
19 19
20 namespace base { 20 namespace base {
21 class FilePath; 21 class FilePath;
22 } 22 }
23 23
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // to match). 88 // to match).
89 bool ShouldVerifyAnyPaths(const std::string& extension_id, 89 bool ShouldVerifyAnyPaths(const std::string& extension_id,
90 const base::FilePath& extension_root, 90 const base::FilePath& extension_root,
91 const std::set<base::FilePath>& relative_paths); 91 const std::set<base::FilePath>& relative_paths);
92 92
93 // Set to true once we've begun shutting down. 93 // Set to true once we've begun shutting down.
94 bool shutdown_; 94 bool shutdown_;
95 95
96 content::BrowserContext* context_; 96 content::BrowserContext* context_;
97 97
98 scoped_ptr<ContentVerifierDelegate> delegate_; 98 std::unique_ptr<ContentVerifierDelegate> delegate_;
99 99
100 // For fetching content hash signatures. 100 // For fetching content hash signatures.
101 scoped_ptr<ContentHashFetcher> fetcher_; 101 std::unique_ptr<ContentHashFetcher> fetcher_;
102 102
103 // For observing the ExtensionRegistry. 103 // For observing the ExtensionRegistry.
104 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> observer_; 104 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> observer_;
105 105
106 // Data that should only be used on the IO thread. 106 // Data that should only be used on the IO thread.
107 scoped_refptr<ContentVerifierIOData> io_data_; 107 scoped_refptr<ContentVerifierIOData> io_data_;
108 }; 108 };
109 109
110 } // namespace extensions 110 } // namespace extensions
111 111
112 #endif // EXTENSIONS_BROWSER_CONTENT_VERIFIER_H_ 112 #endif // EXTENSIONS_BROWSER_CONTENT_VERIFIER_H_
OLDNEW
« no previous file with comments | « extensions/browser/content_hash_tree_unittest.cc ('k') | extensions/browser/content_verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698