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

Unified Diff: extensions/browser/api/sockets_tcp/tcp_socket_event_dispatcher.h

Issue 183893041: Move sockets APIs out of src/chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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: extensions/browser/api/sockets_tcp/tcp_socket_event_dispatcher.h
diff --git a/chrome/browser/extensions/api/sockets_tcp/tcp_socket_event_dispatcher.h b/extensions/browser/api/sockets_tcp/tcp_socket_event_dispatcher.h
similarity index 87%
rename from chrome/browser/extensions/api/sockets_tcp/tcp_socket_event_dispatcher.h
rename to extensions/browser/api/sockets_tcp/tcp_socket_event_dispatcher.h
index 013a94cbd29ff931f59348aa8e3a87ec00f7ca31..c1a6ac6f9bf286a9edf308d84fee903fbb7ee2ca 100644
--- a/chrome/browser/extensions/api/sockets_tcp/tcp_socket_event_dispatcher.h
+++ b/extensions/browser/api/sockets_tcp/tcp_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_TCP_TCP_SOCKET_EVENT_DISPATCHER_H_
-#define CHROME_BROWSER_EXTENSIONS_API_SOCKETS_TCP_TCP_SOCKET_EVENT_DISPATCHER_H_
+#ifndef EXTENSIONS_BROWSER_API_SOCKETS_TCP_TCP_SOCKET_EVENT_DISPATCHER_H_
+#define EXTENSIONS_BROWSER_API_SOCKETS_TCP_TCP_SOCKET_EVENT_DISPATCHER_H_
#include "chrome/browser/extensions/api/api_resource_manager.h"
-#include "chrome/browser/extensions/api/sockets_tcp/sockets_tcp_api.h"
+#include "extensions/browser/api/sockets_tcp/sockets_tcp_api.h"
namespace content {
class BrowserContext;
@@ -18,7 +18,7 @@ class ResumableTCPSocket;
}
namespace extensions {
-namespace api {
+namespace core_api {
// Dispatch events related to "sockets.tcp" sockets from callback on native
// socket instances. There is one instance per profile.
@@ -46,9 +46,7 @@ class TCPSocketEventDispatcher
typedef ApiResourceManager<ResumableTCPSocket>::ApiResourceData SocketData;
friend class BrowserContextKeyedAPIFactory<TCPSocketEventDispatcher>;
// BrowserContextKeyedAPI implementation.
- static const char* service_name() {
- return "TCPSocketEventDispatcher";
- }
+ static const char* service_name() { return "TCPSocketEventDispatcher"; }
static const bool kServiceHasOwnInstanceInIncognito = true;
static const bool kServiceIsNULLWhileTesting = true;
@@ -90,7 +88,7 @@ class TCPSocketEventDispatcher
scoped_refptr<SocketData> sockets_;
};
-} // namespace api
+} // namespace core_api
} // namespace extensions
-#endif // CHROME_BROWSER_EXTENSIONS_API_SOCKETS_TCP_TCP_SOCKET_EVENT_DISPATCHER_H_
+#endif // EXTENSIONS_BROWSER_API_SOCKETS_TCP_TCP_SOCKET_EVENT_DISPATCHER_H_

Powered by Google App Engine
This is Rietveld 408576698