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

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

Issue 22923014: TCPSockets are switched to the new Pepper proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync. Created 7 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
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/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/process/process.h" 9 #include "base/process/process.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "content/public/browser/render_view_host.h" 11 #include "content/public/browser/render_view_host.h"
12 #include "ppapi/c/pp_instance.h" 12 #include "ppapi/c/pp_instance.h"
13 #include "url/gurl.h" 13 #include "url/gurl.h"
14 14
15 namespace IPC { 15 namespace IPC {
16 class ChannelProxy; 16 class ChannelProxy;
17 struct ChannelHandle; 17 struct ChannelHandle;
18 class Sender; 18 class Sender;
19 } 19 }
20 20
21 namespace net {
22 class HostResolver;
23 }
24
25 namespace ppapi { 21 namespace ppapi {
26 class PpapiPermissions; 22 class PpapiPermissions;
27 namespace host { 23 namespace host {
28 class PpapiHost; 24 class PpapiHost;
29 } 25 }
30 } 26 }
31 27
32 namespace content { 28 namespace content {
33 29
34 // Interface that allows components in the embedder app to talk to the 30 // Interface that allows components in the embedder app to talk to the
35 // PpapiHost in the browser process. 31 // PpapiHost in the browser process.
36 // 32 //
37 // There will be one of these objects in the browser per plugin process. It 33 // There will be one of these objects in the browser per plugin process. It
38 // lives entirely on the I/O thread. 34 // lives entirely on the I/O thread.
39 class CONTENT_EXPORT BrowserPpapiHost { 35 class CONTENT_EXPORT BrowserPpapiHost {
40 public: 36 public:
41 // Creates a browser host and sets up an out-of-process proxy for an external 37 // Creates a browser host and sets up an out-of-process proxy for an external
42 // pepper plugin process. 38 // pepper plugin process.
43 static BrowserPpapiHost* CreateExternalPluginProcess( 39 static BrowserPpapiHost* CreateExternalPluginProcess(
44 IPC::Sender* sender, 40 IPC::Sender* sender,
45 ppapi::PpapiPermissions permissions, 41 ppapi::PpapiPermissions permissions,
46 base::ProcessHandle plugin_child_process, 42 base::ProcessHandle plugin_child_process,
47 IPC::ChannelProxy* channel, 43 IPC::ChannelProxy* channel,
48 net::HostResolver* host_resolver,
49 int render_process_id, 44 int render_process_id,
50 int render_view_id, 45 int render_view_id,
51 const base::FilePath& profile_directory); 46 const base::FilePath& profile_directory);
52 47
53 virtual ~BrowserPpapiHost() {} 48 virtual ~BrowserPpapiHost() {}
54 49
55 // Returns the PpapiHost object. 50 // Returns the PpapiHost object.
56 virtual ppapi::host::PpapiHost* GetPpapiHost() = 0; 51 virtual ppapi::host::PpapiHost* GetPpapiHost() = 0;
57 52
58 // Returns the handle to the plugin process. 53 // Returns the handle to the plugin process.
(...skipping 25 matching lines...) Expand all
84 virtual const base::FilePath& GetProfileDataDirectory() = 0; 79 virtual const base::FilePath& GetProfileDataDirectory() = 0;
85 80
86 // Get the Document/Plugin URLs for the given PP_Instance. 81 // Get the Document/Plugin URLs for the given PP_Instance.
87 virtual GURL GetDocumentURLForInstance(PP_Instance instance) = 0; 82 virtual GURL GetDocumentURLForInstance(PP_Instance instance) = 0;
88 virtual GURL GetPluginURLForInstance(PP_Instance instance) = 0; 83 virtual GURL GetPluginURLForInstance(PP_Instance instance) = 0;
89 }; 84 };
90 85
91 } // namespace content 86 } // namespace content
92 87
93 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PPAPI_HOST_H_ 88 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PPAPI_HOST_H_
OLDNEW
« no previous file with comments | « content/ppapi_plugin/ppapi_thread.cc ('k') | content/renderer/pepper/ppb_tcp_socket_private_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698