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

Side by Side Diff: content/browser/renderer_host/pepper/pepper_mojo_host.h

Issue 598183002: Pepper: PPB_Mojo prototype. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 (c) 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.
4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_MOJO_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_MOJO_HOST_H_
7
8 #include <string>
9
10 #include "content/common/content_export.h"
11 #include "content/common/mojo/service_registry_impl.h"
12 #include "content/public/browser/browser_ppapi_host.h"
13 #include "ipc/ipc_message.h"
14 #include "mojo/embedder/channel_init.h"
15 #include "ppapi/c/pp_instance.h"
16 #include "ppapi/c/pp_resource.h"
17 #include "ppapi/host/host_message_context.h"
18 #include "ppapi/host/resource_host.h"
19
20 namespace content {
21
22 class CONTENT_EXPORT PepperMojoHost : public ppapi::host::ResourceHost {
23 public:
24 PepperMojoHost(BrowserPpapiHost* host,
25 PP_Instance instance,
26 PP_Resource resource);
27
28 virtual int32_t OnResourceMessageReceived(
29 const IPC::Message& msg,
30 ppapi::host::HostMessageContext* context) OVERRIDE;
31
32 private:
33 int32_t OnGetHandle(ppapi::host::HostMessageContext* context);
34
35 BrowserPpapiHost* browser_ppapi_host_;
36
37 mojo::embedder::ChannelInit channel_init_;
38 ServiceRegistryImpl service_registry_;
39
40 DISALLOW_COPY_AND_ASSIGN(PepperMojoHost);
41 };
42
43 } // namespace content
44
45 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_MOJO_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698