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

Unified Diff: services/icu_data/icu_data_impl.h

Issue 2005103003: Add implementations of mojo::{Run,Terminate}[Main]Application() for "chromium". (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 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: services/icu_data/icu_data_impl.h
diff --git a/services/icu_data/icu_data_impl.h b/services/icu_data/icu_data_impl.h
index 6c81120559961749cb06ccf888e7b6972b082c5d..c1a0be897bd6b8e74d3e95e6cf06b27da020e4d9 100644
--- a/services/icu_data/icu_data_impl.h
+++ b/services/icu_data/icu_data_impl.h
@@ -2,21 +2,22 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "mojo/common/binding_set.h"
-#include "mojo/public/cpp/application/application_delegate.h"
+#include "mojo/public/cpp/application/application_impl_base.h"
#include "mojo/public/cpp/application/service_provider_impl.h"
#include "mojo/services/icu_data/interfaces/icu_data.mojom.h"
namespace icu_data {
-class ICUDataImpl : public mojo::ApplicationDelegate, public ICUData {
+class ICUDataImpl : public mojo::ApplicationImplBase, public ICUData {
public:
ICUDataImpl();
~ICUDataImpl() override;
- // mojo::ApplicationDelegate implementation.
- bool ConfigureIncomingConnection(
+ // mojo::ApplicationImplBase implementation.
+ bool OnAcceptConnection(
mojo::ServiceProviderImpl* service_provider_impl) override;
void Map(const mojo::String& sha1hash,
@@ -28,6 +29,8 @@ class ICUDataImpl : public mojo::ApplicationDelegate, public ICUData {
scoped_ptr<mojo::SharedBuffer> buffer_;
mojo::BindingSet<ICUData> bindings_;
+
+ DISALLOW_COPY_AND_ASSIGN(ICUDataImpl);
};
} // namespace icu_data;

Powered by Google App Engine
This is Rietveld 408576698