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

Unified Diff: extensions/browser/api/sockets_udp/sockets_udp_api.cc

Issue 1226353004: Generate all extension schema namespaces as "api" and instead vary the generated bundle names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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_udp/sockets_udp_api.cc
diff --git a/extensions/browser/api/sockets_udp/sockets_udp_api.cc b/extensions/browser/api/sockets_udp/sockets_udp_api.cc
index cf5d2777c40fb45ec2fda4dda0329fca6b6e0690..68329144dc627c5a58e1831322956c5ecabec33a 100644
--- a/extensions/browser/api/sockets_udp/sockets_udp_api.cc
+++ b/extensions/browser/api/sockets_udp/sockets_udp_api.cc
@@ -11,7 +11,7 @@
#include "net/base/net_errors.h"
namespace extensions {
-namespace core_api {
+namespace api {
using content::SocketPermissionRequest;
@@ -137,7 +137,7 @@ SocketsUdpSetPausedFunction::SocketsUdpSetPausedFunction()
SocketsUdpSetPausedFunction::~SocketsUdpSetPausedFunction() {}
bool SocketsUdpSetPausedFunction::Prepare() {
- params_ = core_api::sockets_udp::SetPaused::Params::Create(*args_);
+ params_ = api::sockets_udp::SetPaused::Params::Create(*args_);
EXTENSION_FUNCTION_VALIDATE(params_.get());
socket_event_dispatcher_ = UDPSocketEventDispatcher::Get(browser_context());
@@ -394,7 +394,7 @@ SocketsUdpLeaveGroupFunction::SocketsUdpLeaveGroupFunction() {}
SocketsUdpLeaveGroupFunction::~SocketsUdpLeaveGroupFunction() {}
bool SocketsUdpLeaveGroupFunction::Prepare() {
- params_ = core_api::sockets_udp::LeaveGroup::Params::Create(*args_);
+ params_ = api::sockets_udp::LeaveGroup::Params::Create(*args_);
EXTENSION_FUNCTION_VALIDATE(params_.get());
return true;
}
@@ -428,8 +428,7 @@ SocketsUdpSetMulticastTimeToLiveFunction::
~SocketsUdpSetMulticastTimeToLiveFunction() {}
bool SocketsUdpSetMulticastTimeToLiveFunction::Prepare() {
- params_ =
- core_api::sockets_udp::SetMulticastTimeToLive::Params::Create(*args_);
+ params_ = api::sockets_udp::SetMulticastTimeToLive::Params::Create(*args_);
EXTENSION_FUNCTION_VALIDATE(params_.get());
return true;
}
@@ -454,8 +453,7 @@ SocketsUdpSetMulticastLoopbackModeFunction::
~SocketsUdpSetMulticastLoopbackModeFunction() {}
bool SocketsUdpSetMulticastLoopbackModeFunction::Prepare() {
- params_ =
- core_api::sockets_udp::SetMulticastLoopbackMode::Params::Create(*args_);
+ params_ = api::sockets_udp::SetMulticastLoopbackMode::Params::Create(*args_);
EXTENSION_FUNCTION_VALIDATE(params_.get());
return true;
}
@@ -478,7 +476,7 @@ SocketsUdpGetJoinedGroupsFunction::SocketsUdpGetJoinedGroupsFunction() {}
SocketsUdpGetJoinedGroupsFunction::~SocketsUdpGetJoinedGroupsFunction() {}
bool SocketsUdpGetJoinedGroupsFunction::Prepare() {
- params_ = core_api::sockets_udp::GetJoinedGroups::Params::Create(*args_);
+ params_ = api::sockets_udp::GetJoinedGroups::Params::Create(*args_);
EXTENSION_FUNCTION_VALIDATE(params_.get());
return true;
}
@@ -510,7 +508,7 @@ SocketsUdpSetBroadcastFunction::~SocketsUdpSetBroadcastFunction() {
}
bool SocketsUdpSetBroadcastFunction::Prepare() {
- params_ = core_api::sockets_udp::SetBroadcast::Params::Create(*args_);
+ params_ = api::sockets_udp::SetBroadcast::Params::Create(*args_);
EXTENSION_FUNCTION_VALIDATE(params_.get());
return true;
}
@@ -529,5 +527,5 @@ void SocketsUdpSetBroadcastFunction::Work() {
results_ = sockets_udp::SetBroadcast::Results::Create(net_result);
}
-} // namespace core_api
+} // namespace api
} // namespace extensions
« no previous file with comments | « extensions/browser/api/sockets_udp/sockets_udp_api.h ('k') | extensions/browser/api/sockets_udp/sockets_udp_api_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698