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

Side by Side Diff: content/public/renderer/renderer_ppapi_host.h

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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_RENDERER_RENDERER_PPAPI_HOST_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDERER_PPAPI_HOST_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDERER_PPAPI_HOST_H_ 6 #define CONTENT_PUBLIC_RENDERER_RENDERER_PPAPI_HOST_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/platform_file.h" 9 #include "base/platform_file.h"
10 #include "base/process.h" 10 #include "base/process.h"
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "ipc/ipc_platform_file.h" 12 #include "ipc/ipc_platform_file.h"
13 #include "ppapi/c/pp_instance.h" 13 #include "ppapi/c/pp_instance.h"
14 #include "webkit/plugins/ppapi/plugin_delegate.h" 14 #include "webkit/plugins/ppapi/plugin_delegate.h"
15 15
16 namespace base {
16 class FilePath; 17 class FilePath;
18 }
17 19
18 namespace gfx { 20 namespace gfx {
19 class Point; 21 class Point;
20 } 22 }
21 23
22 namespace IPC { 24 namespace IPC {
23 struct ChannelHandle; 25 struct ChannelHandle;
24 } 26 }
25 27
26 namespace ppapi { 28 namespace ppapi {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 class RendererPpapiHost { 60 class RendererPpapiHost {
59 public: 61 public:
60 // Creates a host and sets up an out-of-process proxy for an external plugin 62 // Creates a host and sets up an out-of-process proxy for an external plugin
61 // module. |file_path| should identify the module. It is only used to report 63 // module. |file_path| should identify the module. It is only used to report
62 // failures to the renderer. 64 // failures to the renderer.
63 // Returns a host if the external module is proxied successfully, otherwise 65 // Returns a host if the external module is proxied successfully, otherwise
64 // returns NULL. 66 // returns NULL.
65 CONTENT_EXPORT static RendererPpapiHost* CreateExternalPluginModule( 67 CONTENT_EXPORT static RendererPpapiHost* CreateExternalPluginModule(
66 scoped_refptr<webkit::ppapi::PluginModule> plugin_module, 68 scoped_refptr<webkit::ppapi::PluginModule> plugin_module,
67 webkit::ppapi::PluginInstance* plugin_instance, 69 webkit::ppapi::PluginInstance* plugin_instance,
68 const FilePath& file_path, 70 const base::FilePath& file_path,
69 ppapi::PpapiPermissions permissions, 71 ppapi::PpapiPermissions permissions,
70 const IPC::ChannelHandle& channel_handle, 72 const IPC::ChannelHandle& channel_handle,
71 base::ProcessId plugin_pid, 73 base::ProcessId plugin_pid,
72 int plugin_child_id); 74 int plugin_child_id);
73 75
74 // Returns the RendererPpapiHost associated with the given PP_Instance, 76 // Returns the RendererPpapiHost associated with the given PP_Instance,
75 // or NULL if the instance is invalid. 77 // or NULL if the instance is invalid.
76 CONTENT_EXPORT static RendererPpapiHost* GetForPPInstance( 78 CONTENT_EXPORT static RendererPpapiHost* GetForPPInstance(
77 PP_Instance instance); 79 PP_Instance instance);
78 80
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // Returns true if the plugin is running in process. 138 // Returns true if the plugin is running in process.
137 virtual bool IsRunningInProcess() const = 0; 139 virtual bool IsRunningInProcess() const = 0;
138 140
139 protected: 141 protected:
140 virtual ~RendererPpapiHost() {} 142 virtual ~RendererPpapiHost() {}
141 }; 143 };
142 144
143 } // namespace content 145 } // namespace content
144 146
145 #endif // CONTENT_PUBLIC_RENDERER_RENDERER_PPAPI_HOST_H_ 147 #endif // CONTENT_PUBLIC_RENDERER_RENDERER_PPAPI_HOST_H_
OLDNEW
« no previous file with comments | « content/public/renderer/content_renderer_client.cc ('k') | content/public/test/browser_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698