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

Side by Side Diff: chrome/browser/extensions/extension_special_storage_policy.h

Issue 7618025: Send notifications on the IO thread when changes are made to the special storage policy. Listen f... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_special_storage_policy.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_EXTENSIONS_EXTENSION_SPECIAL_STORAGE_POLICY_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SPECIAL_STORAGE_POLICY_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SPECIAL_STORAGE_POLICY_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SPECIAL_STORAGE_POLICY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 void Remove(const Extension* extension); 48 void Remove(const Extension* extension);
49 void Clear(); 49 void Clear();
50 50
51 private: 51 private:
52 typedef std::map<GURL, bool> CachedResults; 52 typedef std::map<GURL, bool> CachedResults;
53 typedef std::map<std::string, scoped_refptr<const Extension> > Extensions; 53 typedef std::map<std::string, scoped_refptr<const Extension> > Extensions;
54 Extensions extensions_; 54 Extensions extensions_;
55 CachedResults cached_results_; 55 CachedResults cached_results_;
56 }; 56 };
57 57
58 void NotifyChanged();
59
58 base::Lock lock_; // Synchronize all access to the collections. 60 base::Lock lock_; // Synchronize all access to the collections.
59 SpecialCollection protected_apps_; 61 SpecialCollection protected_apps_;
60 SpecialCollection unlimited_extensions_; 62 SpecialCollection unlimited_extensions_;
61 SpecialCollection file_handler_extensions_; 63 SpecialCollection file_handler_extensions_;
62 }; 64 };
63 65
64 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SPECIAL_STORAGE_POLICY_H_ 66 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SPECIAL_STORAGE_POLICY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_special_storage_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698