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

Unified Diff: src/vm/service_api_impl.cc

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 11 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
« no previous file with comments | « src/vm/service_api_impl.h ('k') | src/vm/session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/vm/service_api_impl.cc
diff --git a/src/vm/service_api_impl.cc b/src/vm/service_api_impl.cc
index 83ae4d502917a8658e75f36fddfc7113b6ae6197..fe60136411616825fd36c30426037a501e8ce399 100644
--- a/src/vm/service_api_impl.cc
+++ b/src/vm/service_api_impl.cc
@@ -12,7 +12,7 @@
static const int kRequestHeaderSize = 32;
-namespace fletch {
+namespace dartino {
class ServiceRegistry {
public:
@@ -177,25 +177,25 @@ BEGIN_NATIVE(ServiceRegister) {
}
END_NATIVE()
-} // namespace fletch
+} // namespace dartino
void ServiceApiSetup() {
- fletch::service_registry = new fletch::ServiceRegistry();
+ dartino::service_registry = new dartino::ServiceRegistry();
}
void ServiceApiTearDown() {
- delete fletch::service_registry;
- fletch::service_registry = NULL;
+ delete dartino::service_registry;
+ dartino::service_registry = NULL;
}
ServiceId ServiceApiLookup(const char* name) {
- fletch::Service* service = fletch::service_registry->LookupService(name);
+ dartino::Service* service = dartino::service_registry->LookupService(name);
return reinterpret_cast<ServiceId>(service);
}
void ServiceApiInvoke(ServiceId service_id, MethodId method, void* buffer,
int size) {
- fletch::Service* service = reinterpret_cast<fletch::Service*>(service_id);
+ dartino::Service* service = reinterpret_cast<dartino::Service*>(service_id);
intptr_t method_id = reinterpret_cast<intptr_t>(method);
service->Invoke(method_id, buffer, size);
}
@@ -203,7 +203,7 @@ void ServiceApiInvoke(ServiceId service_id, MethodId method, void* buffer,
void ServiceApiInvokeAsync(ServiceId service_id, MethodId method,
ServiceApiCallback callback, void* buffer,
int size) {
- fletch::Service* service = reinterpret_cast<fletch::Service*>(service_id);
+ dartino::Service* service = reinterpret_cast<dartino::Service*>(service_id);
intptr_t method_id = reinterpret_cast<intptr_t>(method);
service->InvokeAsync(method_id, callback, buffer, size);
}
@@ -211,6 +211,6 @@ void ServiceApiInvokeAsync(ServiceId service_id, MethodId method,
void ServiceApiTerminate(ServiceId service_id) {
char buffer[kRequestHeaderSize];
ServiceApiInvoke(service_id, kTerminateMethodId, buffer, sizeof(buffer));
- fletch::Service* service = reinterpret_cast<fletch::Service*>(service_id);
- fletch::service_registry->Unregister(service);
+ dartino::Service* service = reinterpret_cast<dartino::Service*>(service_id);
+ dartino::service_registry->Unregister(service);
}
« no previous file with comments | « src/vm/service_api_impl.h ('k') | src/vm/session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698