Index: extensions/browser/api/sockets_udp/udp_socket_event_dispatcher.h |
diff --git a/chrome/browser/extensions/api/sockets_udp/udp_socket_event_dispatcher.h b/extensions/browser/api/sockets_udp/udp_socket_event_dispatcher.h |
similarity index 87% |
rename from chrome/browser/extensions/api/sockets_udp/udp_socket_event_dispatcher.h |
rename to extensions/browser/api/sockets_udp/udp_socket_event_dispatcher.h |
index 996ffb1744d44023b399fbcdfaebd45ce102565e..6e0e6152a59104caa769300fe4eceb180d31795d 100644 |
--- a/chrome/browser/extensions/api/sockets_udp/udp_socket_event_dispatcher.h |
+++ b/extensions/browser/api/sockets_udp/udp_socket_event_dispatcher.h |
@@ -2,11 +2,11 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef CHROME_BROWSER_EXTENSIONS_API_SOCKETS_UDP_UDP_SOCKET_EVENT_DISPATCHER_H_ |
-#define CHROME_BROWSER_EXTENSIONS_API_SOCKETS_UDP_UDP_SOCKET_EVENT_DISPATCHER_H_ |
+#ifndef EXTENSIONS_BROWSER_API_SOCKETS_UDP_UDP_SOCKET_EVENT_DISPATCHER_H_ |
+#define EXTENSIONS_BROWSER_API_SOCKETS_UDP_UDP_SOCKET_EVENT_DISPATCHER_H_ |
#include "chrome/browser/extensions/api/api_resource_manager.h" |
-#include "chrome/browser/extensions/api/sockets_udp/sockets_udp_api.h" |
+#include "extensions/browser/api/sockets_udp/sockets_udp_api.h" |
namespace content { |
class BrowserContext; |
@@ -18,7 +18,7 @@ class ResumableUDPSocket; |
} |
namespace extensions { |
-namespace api { |
+namespace core_api { |
// Dispatch events related to "sockets.udp" sockets from callback on native |
// socket instances. There is one instance per profile. |
@@ -46,9 +46,7 @@ class UDPSocketEventDispatcher |
typedef ApiResourceManager<ResumableUDPSocket>::ApiResourceData SocketData; |
friend class BrowserContextKeyedAPIFactory<UDPSocketEventDispatcher>; |
// BrowserContextKeyedAPI implementation. |
- static const char* service_name() { |
- return "UDPSocketEventDispatcher"; |
- } |
+ static const char* service_name() { return "UDPSocketEventDispatcher"; } |
static const bool kServiceHasOwnInstanceInIncognito = true; |
static const bool kServiceIsNULLWhileTesting = true; |
@@ -89,7 +87,7 @@ class UDPSocketEventDispatcher |
scoped_refptr<SocketData> sockets_; |
}; |
-} // namespace api |
+} // namespace core_api |
} // namespace extensions |
-#endif // CHROME_BROWSER_EXTENSIONS_API_SOCKETS_UDP_UDP_SOCKET_EVENT_DISPATCHER_H_ |
+#endif // EXTENSIONS_BROWSER_API_SOCKETS_UDP_UDP_SOCKET_EVENT_DISPATCHER_H_ |