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

Unified Diff: chrome/browser/extensions/api/sockets_tcp/tcp_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_tcp/tcp_socket_event_dispatcher.h
diff --git a/chrome/browser/extensions/api/sockets_tcp/tcp_socket_event_dispatcher.h b/chrome/browser/extensions/api/sockets_tcp/tcp_socket_event_dispatcher.h
index 12f3fb62ac50f63a444f9bd9d8d7263bddac6e57..013a94cbd29ff931f59348aa8e3a87ec00f7ca31 100644
--- a/chrome/browser/extensions/api/sockets_tcp/tcp_socket_event_dispatcher.h
+++ b/chrome/browser/extensions/api/sockets_tcp/tcp_socket_event_dispatcher.h
@@ -23,7 +23,7 @@ namespace api {
// Dispatch events related to "sockets.tcp" sockets from callback on native
// socket instances. There is one instance per profile.
class TCPSocketEventDispatcher
- : public ProfileKeyedAPI,
+ : public BrowserContextKeyedAPI,
public base::SupportsWeakPtr<TCPSocketEventDispatcher> {
public:
explicit TCPSocketEventDispatcher(content::BrowserContext* context);
@@ -35,16 +35,17 @@ class TCPSocketEventDispatcher
// Socket is active again, start receiving data from it.
void OnSocketResume(const std::string& extension_id, int socket_id);
- // ProfileKeyedAPI implementation.
- static ProfileKeyedAPIFactory<TCPSocketEventDispatcher>* GetFactoryInstance();
+ // BrowserContextKeyedAPI implementation.
+ static BrowserContextKeyedAPIFactory<TCPSocketEventDispatcher>*
+ GetFactoryInstance();
// Convenience method to get the SocketEventDispatcher for a profile.
static TCPSocketEventDispatcher* Get(content::BrowserContext* context);
private:
typedef ApiResourceManager<ResumableTCPSocket>::ApiResourceData SocketData;
- friend class ProfileKeyedAPIFactory<TCPSocketEventDispatcher>;
- // ProfileKeyedAPI implementation.
+ friend class BrowserContextKeyedAPIFactory<TCPSocketEventDispatcher>;
+ // BrowserContextKeyedAPI implementation.
static const char* service_name() {
return "TCPSocketEventDispatcher";
}

Powered by Google App Engine
This is Rietveld 408576698