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

Side by Side Diff: services/icu_data/icu_data_impl.h

Issue 1987363004: Build libraries for a number of services. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix intput_manager_service.mojo 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/memory/scoped_ptr.h"
6 #include "mojo/common/binding_set.h"
7 #include "mojo/public/cpp/application/application_delegate.h"
8 #include "mojo/public/cpp/application/service_provider_impl.h"
9 #include "mojo/public/cpp/bindings/interface_ptr.h"
10 #include "mojo/services/icu_data/interfaces/icu_data.mojom.h"
11 #include "services/icu_data/kICUData.h"
12
13 namespace icu_data {
14
15 class ICUDataImpl : public mojo::ApplicationDelegate, public ICUData {
16 public:
17 ICUDataImpl();
18 ~ICUDataImpl() override;
19
20 // mojo::ApplicationDelegate implementation.
21 bool ConfigureIncomingConnection(
22 mojo::ServiceProviderImpl* service_provider_impl) override;
23
24 void Map(const mojo::String& sha1hash,
25 const mojo::Callback<void(mojo::ScopedSharedBufferHandle)>& callback)
26 override;
27
28 private:
29 void EnsureBuffer();
30
31 scoped_ptr<mojo::SharedBuffer> buffer_;
32 mojo::BindingSet<ICUData> bindings_;
33 };
34
35 } // namespace icu_data;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698