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

Side by Side Diff: extensions/browser/info_map.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_INFO_MAP_H_ 5 #ifndef EXTENSIONS_BROWSER_INFO_MAP_H_
6 #define EXTENSIONS_BROWSER_INFO_MAP_H_ 6 #define EXTENSIONS_BROWSER_INFO_MAP_H_
7 7
8 #include <memory>
8 #include <string> 9 #include <string>
9 10
10 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 #include "extensions/browser/process_map.h" 13 #include "extensions/browser/process_map.h"
14 #include "extensions/browser/quota_service.h" 14 #include "extensions/browser/quota_service.h"
15 #include "extensions/common/extension_set.h" 15 #include "extensions/common/extension_set.h"
16 #include "extensions/common/permissions/api_permission.h" 16 #include "extensions/common/permissions/api_permission.h"
17 17
18 namespace base { 18 namespace base {
19 class FilePath; 19 class FilePath;
20 } 20 }
21 21
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 ExtensionSet extensions_; 108 ExtensionSet extensions_;
109 ExtensionSet disabled_extensions_; 109 ExtensionSet disabled_extensions_;
110 110
111 // Extra data associated with enabled extensions. 111 // Extra data associated with enabled extensions.
112 ExtraDataMap extra_data_; 112 ExtraDataMap extra_data_;
113 113
114 // Used by dispatchers to limit API quota for individual extensions. 114 // Used by dispatchers to limit API quota for individual extensions.
115 // The QuotaService is not thread safe. We need to create and destroy it on 115 // The QuotaService is not thread safe. We need to create and destroy it on
116 // the IO thread. 116 // the IO thread.
117 scoped_ptr<QuotaService> quota_service_; 117 std::unique_ptr<QuotaService> quota_service_;
118 118
119 // Assignment of extensions to renderer processes. 119 // Assignment of extensions to renderer processes.
120 extensions::ProcessMap process_map_; 120 extensions::ProcessMap process_map_;
121 121
122 scoped_refptr<ContentVerifier> content_verifier_; 122 scoped_refptr<ContentVerifier> content_verifier_;
123 }; 123 };
124 124
125 } // namespace extensions 125 } // namespace extensions
126 126
127 #endif // EXTENSIONS_BROWSER_INFO_MAP_H_ 127 #endif // EXTENSIONS_BROWSER_INFO_MAP_H_
OLDNEW
« no previous file with comments | « extensions/browser/image_loader_unittest.cc ('k') | extensions/browser/lazy_background_task_queue_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698