Chromium Code Reviews| Index: mojo/services/surfaces/surfaces_service_impl.h |
| diff --git a/mojo/services/surfaces/surfaces_service_impl.h b/mojo/services/surfaces/surfaces_service_impl.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..da8c4a7e693ff047ac66f487dc322b38abfcdebd |
| --- /dev/null |
| +++ b/mojo/services/surfaces/surfaces_service_impl.h |
| @@ -0,0 +1,39 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef MOJO_SERVICES_SURFACES_SURFACES_SERVICE_IMPL_H_ |
| +#define MOJO_SERVICES_SURFACES_SURFACES_SERVICE_IMPL_H_ |
| + |
| +#include "base/macros.h" |
| +#include "mojo/services/public/interfaces/surfaces/surfaces_service.mojom.h" |
| +#include "mojo/services/surfaces/surfaces_impl.h" |
| + |
| +namespace cc { |
| +class SurfaceManager; |
| +} |
| + |
| +namespace mojo { |
| + |
| +class SurfacesServiceImpl : public InterfaceImpl<SurfacesService> { |
| + public: |
| + SurfacesServiceImpl(cc::SurfaceManager* manager, |
| + uint32_t* next_id_namespace_, |
|
sky
2014/08/22 22:20:09
Document who owns next_id_namespace_.
|
| + SurfacesImpl::Client* client); |
| + virtual ~SurfacesServiceImpl(); |
| + |
| + // InterfaceImpl<SurfacesService> implementation. |
| + virtual void CreateSurfaceConnection(const mojo::Callback< |
| + void(mojo::SurfacePtr, uint32_t)>& callback) OVERRIDE; |
| + |
| + private: |
| + cc::SurfaceManager* manager_; |
| + uint32_t* next_id_namespace_; |
| + SurfacesImpl::Client* client_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(SurfacesServiceImpl); |
| +}; |
| + |
| +} // namespace mojo |
| + |
| +#endif // MOJO_SERVICES_SURFACES_SURFACES_SERVICE_IMPL_H_ |