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

Side by Side Diff: content/browser/storage_partition_impl_map.h

Issue 667943003: Standardize usage of virtual/override/final in content/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « content/browser/storage_partition_impl.h ('k') | content/browser/storage_partition_impl_map.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_STORAGE_PARTITION_MAP_H_ 5 #ifndef CONTENT_BROWSER_STORAGE_PARTITION_MAP_H_
6 #define CONTENT_BROWSER_STORAGE_PARTITION_MAP_H_ 6 #define CONTENT_BROWSER_STORAGE_PARTITION_MAP_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 12 matching lines...) Expand all
23 namespace content { 23 namespace content {
24 24
25 class BrowserContext; 25 class BrowserContext;
26 26
27 // A std::string to StoragePartition map for use with SupportsUserData APIs. 27 // A std::string to StoragePartition map for use with SupportsUserData APIs.
28 class CONTENT_EXPORT StoragePartitionImplMap 28 class CONTENT_EXPORT StoragePartitionImplMap
29 : public base::SupportsUserData::Data { 29 : public base::SupportsUserData::Data {
30 public: 30 public:
31 explicit StoragePartitionImplMap(BrowserContext* browser_context); 31 explicit StoragePartitionImplMap(BrowserContext* browser_context);
32 32
33 virtual ~StoragePartitionImplMap(); 33 ~StoragePartitionImplMap() override;
34 34
35 // This map retains ownership of the returned StoragePartition objects. 35 // This map retains ownership of the returned StoragePartition objects.
36 StoragePartitionImpl* Get(const std::string& partition_domain, 36 StoragePartitionImpl* Get(const std::string& partition_domain,
37 const std::string& partition_name, 37 const std::string& partition_name,
38 bool in_memory); 38 bool in_memory);
39 39
40 // Starts an asynchronous best-effort attempt to delete all on-disk storage 40 // Starts an asynchronous best-effort attempt to delete all on-disk storage
41 // related to |site|, avoiding any directories that are known to be in use. 41 // related to |site|, avoiding any directories that are known to be in use.
42 // 42 //
43 // |on_gc_required| is called if the AsyncObliterate() call was unable to 43 // |on_gc_required| is called if the AsyncObliterate() call was unable to
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 PartitionMap partitions_; 125 PartitionMap partitions_;
126 126
127 // Set to true when the ResourceContext for the associated |browser_context_| 127 // Set to true when the ResourceContext for the associated |browser_context_|
128 // is initialized. Can never return to false. 128 // is initialized. Can never return to false.
129 bool resource_context_initialized_; 129 bool resource_context_initialized_;
130 }; 130 };
131 131
132 } // namespace content 132 } // namespace content
133 133
134 #endif // CONTENT_BROWSER_STORAGE_PARTITION_MAP_H_ 134 #endif // CONTENT_BROWSER_STORAGE_PARTITION_MAP_H_
OLDNEW
« no previous file with comments | « content/browser/storage_partition_impl.h ('k') | content/browser/storage_partition_impl_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698