| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 // it. | 100 // it. |
| 101 void SetSigninProcess(int process_id); | 101 void SetSigninProcess(int process_id); |
| 102 bool IsSigninProcess(int process_id) const; | 102 bool IsSigninProcess(int process_id) const; |
| 103 | 103 |
| 104 // Notifications can be enabled/disabled in real time by the user. | 104 // Notifications can be enabled/disabled in real time by the user. |
| 105 void SetNotificationsDisabled(const std::string& extension_id, | 105 void SetNotificationsDisabled(const std::string& extension_id, |
| 106 bool notifications_disabled); | 106 bool notifications_disabled); |
| 107 bool AreNotificationsDisabled(const std::string& extension_id) const; | 107 bool AreNotificationsDisabled(const std::string& extension_id) const; |
| 108 | 108 |
| 109 void SetContentVerifier(ContentVerifier* verifier); | 109 void SetContentVerifier(ContentVerifier* verifier); |
| 110 ContentVerifier* content_verifier() { return content_verifier_; } | 110 ContentVerifier* content_verifier() { return content_verifier_.get(); } |
| 111 | 111 |
| 112 private: | 112 private: |
| 113 friend class base::RefCountedThreadSafe<InfoMap>; | 113 friend class base::RefCountedThreadSafe<InfoMap>; |
| 114 | 114 |
| 115 // Extra dynamic data related to an extension. | 115 // Extra dynamic data related to an extension. |
| 116 struct ExtraData; | 116 struct ExtraData; |
| 117 // Map of extension_id to ExtraData. | 117 // Map of extension_id to ExtraData. |
| 118 typedef std::map<std::string, ExtraData> ExtraDataMap; | 118 typedef std::map<std::string, ExtraData> ExtraDataMap; |
| 119 | 119 |
| 120 ~InfoMap(); | 120 ~InfoMap(); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 134 extensions::ProcessMap process_map_; | 134 extensions::ProcessMap process_map_; |
| 135 | 135 |
| 136 int signin_process_id_; | 136 int signin_process_id_; |
| 137 | 137 |
| 138 scoped_refptr<ContentVerifier> content_verifier_; | 138 scoped_refptr<ContentVerifier> content_verifier_; |
| 139 }; | 139 }; |
| 140 | 140 |
| 141 } // namespace extensions | 141 } // namespace extensions |
| 142 | 142 |
| 143 #endif // EXTENSIONS_BROWSER_INFO_MAP_H_ | 143 #endif // EXTENSIONS_BROWSER_INFO_MAP_H_ |
| OLD | NEW |