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

Side by Side Diff: extensions/browser/info_map.h

Issue 503873002: Remove implicit conversions from scoped_refptr to T* in extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « extensions/browser/guest_view/app_view/app_view_guest.cc ('k') | extensions/browser/lazy_background_task_queue_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698