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

Unified Diff: chrome/browser/extensions/api/sockets_udp/udp_socket_event_dispatcher.h

Issue 178193030: Rename ProfileKeyedAPI to BrowserContextKeyedAPI and GetProfile to Get. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/sockets_udp/udp_socket_event_dispatcher.h
diff --git a/chrome/browser/extensions/api/sockets_udp/udp_socket_event_dispatcher.h b/chrome/browser/extensions/api/sockets_udp/udp_socket_event_dispatcher.h
index 463ecefd507b19577b4f9672dea0042c517946b2..996ffb1744d44023b399fbcdfaebd45ce102565e 100644
--- a/chrome/browser/extensions/api/sockets_udp/udp_socket_event_dispatcher.h
+++ b/chrome/browser/extensions/api/sockets_udp/udp_socket_event_dispatcher.h
@@ -23,7 +23,7 @@ namespace api {
// Dispatch events related to "sockets.udp" sockets from callback on native
// socket instances. There is one instance per profile.
class UDPSocketEventDispatcher
- : public ProfileKeyedAPI,
+ : public BrowserContextKeyedAPI,
public base::SupportsWeakPtr<UDPSocketEventDispatcher> {
public:
explicit UDPSocketEventDispatcher(content::BrowserContext* context);
@@ -35,16 +35,17 @@ class UDPSocketEventDispatcher
// Socket is active again, start receiving data from it.
void OnSocketResume(const std::string& extension_id, int socket_id);
- // ProfileKeyedAPI implementation.
- static ProfileKeyedAPIFactory<UDPSocketEventDispatcher>* GetFactoryInstance();
+ // BrowserContextKeyedAPI implementation.
+ static BrowserContextKeyedAPIFactory<UDPSocketEventDispatcher>*
+ GetFactoryInstance();
// Convenience method to get the SocketEventDispatcher for a profile.
static UDPSocketEventDispatcher* Get(content::BrowserContext* context);
private:
typedef ApiResourceManager<ResumableUDPSocket>::ApiResourceData SocketData;
- friend class ProfileKeyedAPIFactory<UDPSocketEventDispatcher>;
- // ProfileKeyedAPI implementation.
+ friend class BrowserContextKeyedAPIFactory<UDPSocketEventDispatcher>;
+ // BrowserContextKeyedAPI implementation.
static const char* service_name() {
return "UDPSocketEventDispatcher";
}

Powered by Google App Engine
This is Rietveld 408576698