Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / ppapi / nacl_irt / manifest_service.h
blob7a869e7c58a8bde1c0d1909b84ab14d01ed6887c
1 // Copyright 2014 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.
5 #ifndef PPAPI_NACL_IRT_MANIFEST_SERVICE_H_
6 #define PPAPI_NACL_IRT_MANIFEST_SERVICE_H_
8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "base/synchronization/lock.h"
13 namespace base {
14 class SingleThreadTaskRunner;
15 class WaitableEvent;
16 } // namespace base
18 namespace IPC {
19 struct ChannelHandle;
20 class ChannelProxy;
21 class SyncMessageFilter;
22 } // namespace IPC
24 namespace ppapi {
26 class ManifestService {
27 public:
28 ManifestService(const IPC::ChannelHandle& handle,
29 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
30 base::WaitableEvent* shutdown_event);
31 ~ManifestService();
33 void StartupInitializationComplete();
34 bool OpenResource(const char* file, int* fd);
36 private:
37 scoped_ptr<IPC::ChannelProxy> channel_;
38 scoped_refptr<IPC::SyncMessageFilter> filter_;
40 base::Lock open_resource_lock_;
42 DISALLOW_COPY_AND_ASSIGN(ManifestService);
45 } // namespace ppapi
47 #endif // PPAPI_NACL_IRT_MANIFEST_SERVICE_H_