OLD | NEW |
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 <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 QuotaService* GetQuotaService(); | 79 QuotaService* GetQuotaService(); |
80 | 80 |
81 // Notifications can be enabled/disabled in real time by the user. | 81 // Notifications can be enabled/disabled in real time by the user. |
82 void SetNotificationsDisabled(const std::string& extension_id, | 82 void SetNotificationsDisabled(const std::string& extension_id, |
83 bool notifications_disabled); | 83 bool notifications_disabled); |
84 bool AreNotificationsDisabled(const std::string& extension_id) const; | 84 bool AreNotificationsDisabled(const std::string& extension_id) const; |
85 | 85 |
86 void SetContentVerifier(ContentVerifier* verifier); | 86 void SetContentVerifier(ContentVerifier* verifier); |
87 ContentVerifier* content_verifier() { return content_verifier_.get(); } | 87 ContentVerifier* content_verifier() { return content_verifier_.get(); } |
88 | 88 |
| 89 // Marks the extensions in this info map as running in lock screen context. |
| 90 void SetIsLockScreenContext(bool is_lock_screen_context); |
| 91 |
89 private: | 92 private: |
90 friend class base::RefCountedThreadSafe<InfoMap>; | 93 friend class base::RefCountedThreadSafe<InfoMap>; |
91 | 94 |
92 // Extra dynamic data related to an extension. | 95 // Extra dynamic data related to an extension. |
93 struct ExtraData; | 96 struct ExtraData; |
94 // Map of extension_id to ExtraData. | 97 // Map of extension_id to ExtraData. |
95 typedef std::map<std::string, ExtraData> ExtraDataMap; | 98 typedef std::map<std::string, ExtraData> ExtraDataMap; |
96 | 99 |
97 ~InfoMap(); | 100 ~InfoMap(); |
98 | 101 |
(...skipping 10 matching lines...) Expand all Loading... |
109 | 112 |
110 // Assignment of extensions to renderer processes. | 113 // Assignment of extensions to renderer processes. |
111 ProcessMap process_map_; | 114 ProcessMap process_map_; |
112 | 115 |
113 scoped_refptr<ContentVerifier> content_verifier_; | 116 scoped_refptr<ContentVerifier> content_verifier_; |
114 }; | 117 }; |
115 | 118 |
116 } // namespace extensions | 119 } // namespace extensions |
117 | 120 |
118 #endif // EXTENSIONS_BROWSER_INFO_MAP_H_ | 121 #endif // EXTENSIONS_BROWSER_INFO_MAP_H_ |
OLD | NEW |