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

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

Issue 10909182: Make FileSystemContext respect StoragePartitions. filesystem:// urls will be properly isolated (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove useless headers. Created 8 years, 3 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 | Annotate | Revision Log
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 20 matching lines...) Expand all
31 31
32 void ForEach(const BrowserContext::StoragePartitionCallback& callback); 32 void ForEach(const BrowserContext::StoragePartitionCallback& callback);
33 33
34 private: 34 private:
35 // This must always be called *after* |partition| has been added to the 35 // This must always be called *after* |partition| has been added to the
36 // partitions_. 36 // partitions_.
37 // 37 //
38 // TODO(ajwong): Is there a way to make it so that Get()'s implementation 38 // TODO(ajwong): Is there a way to make it so that Get()'s implementation
39 // doesn't need to be aware of this ordering? Revisit when refactoring 39 // doesn't need to be aware of this ordering? Revisit when refactoring
40 // ResourceContext and AppCache to respect storage partitions. 40 // ResourceContext and AppCache to respect storage partitions.
41 void PostCreateInitialization(StoragePartitionImpl* partition, 41 void PostCreateInitialization(StoragePartitionImpl* partition);
42 net::URLRequestContextGetter* request_context);
43 42
44 BrowserContext* browser_context_; // Not Owned. 43 BrowserContext* browser_context_; // Not Owned.
45 std::map<std::string, StoragePartitionImpl*> partitions_; 44 std::map<std::string, StoragePartitionImpl*> partitions_;
46 }; 45 };
47 46
48 } // namespace content 47 } // namespace content
49 48
50 #endif // CONTENT_BROWSER_STORAGE_PARTITION_MAP_H_ 49 #endif // CONTENT_BROWSER_STORAGE_PARTITION_MAP_H_
OLDNEW
« no previous file with comments | « content/browser/storage_partition_impl.cc ('k') | content/browser/storage_partition_impl_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698