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

Side by Side Diff: content/public/browser/browser_ppapi_host.h

Issue 10912062: Implement the gamepad API in the IPC proxy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « content/ppapi_plugin/ppapi_thread.cc ('k') | content/renderer/gamepad_shared_memory_reader.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_PPAPI_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_PPAPI_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PPAPI_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PPAPI_HOST_H_
7 7
8 #include "base/process.h"
9 #include "content/common/content_export.h"
10
8 namespace ppapi { 11 namespace ppapi {
9 namespace host { 12 namespace host {
10 class PpapiHost; 13 class PpapiHost;
11 } 14 }
12 } 15 }
13 16
14 namespace content { 17 namespace content {
15 18
16 // Interface that allows components in the embedder app to talk to the 19 // Interface that allows components in the embedder app to talk to the
17 // PpapiHost in the browser process. 20 // PpapiHost in the browser process.
18 // 21 //
19 // There will be one of these objects in the browser per plugin process. It 22 // There will be one of these objects in the browser per plugin process. It
20 // lives entirely on the I/O thread. 23 // lives entirely on the I/O thread.
21 class BrowserPpapiHost { 24 class CONTENT_EXPORT BrowserPpapiHost {
22 public: 25 public:
23 // Returns the PpapiHost object. 26 // Returns the PpapiHost object.
24 virtual ppapi::host::PpapiHost* GetPpapiHost() = 0; 27 virtual ppapi::host::PpapiHost* GetPpapiHost() = 0;
25 28
29 // Returns the handle to the plugin process.
30 virtual base::ProcessHandle GetPluginProcessHandle() const = 0;
31
26 protected: 32 protected:
27 virtual ~BrowserPpapiHost() {} 33 virtual ~BrowserPpapiHost() {}
28 }; 34 };
29 35
30 } // namespace content 36 } // namespace content
31 37
32 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PPAPI_HOST_H_ 38 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PPAPI_HOST_H_
OLDNEW
« no previous file with comments | « content/ppapi_plugin/ppapi_thread.cc ('k') | content/renderer/gamepad_shared_memory_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698