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

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: remove unnecessary imports 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
« no previous file with comments | « services/icu_data/BUILD.gn ('k') | services/icu_data/icu_data_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/services/icu_data/interfaces/icu_data.mojom.h"
10
11 namespace icu_data {
12
13 class ICUDataImpl : public mojo::ApplicationDelegate, public ICUData {
14 public:
15 ICUDataImpl();
16 ~ICUDataImpl() override;
17
18 // mojo::ApplicationDelegate implementation.
19 bool ConfigureIncomingConnection(
20 mojo::ServiceProviderImpl* service_provider_impl) override;
21
22 void Map(const mojo::String& sha1hash,
23 const mojo::Callback<void(mojo::ScopedSharedBufferHandle)>& callback)
24 override;
25
26 private:
27 void EnsureBuffer();
28
29 scoped_ptr<mojo::SharedBuffer> buffer_;
30 mojo::BindingSet<ICUData> bindings_;
31 };
32
33 } // namespace icu_data;
OLDNEW
« no previous file with comments | « services/icu_data/BUILD.gn ('k') | services/icu_data/icu_data_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698