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

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

Issue 11316316: Implement an IsAllowed function in the pepper PPB_Broker_Trusted API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years 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/content_common.gypi ('k') | content/renderer/pepper/pepper_plugin_delegate_impl.cc » ('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/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/process.h" 9 #include "base/process.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "content/public/browser/browser_thread.h" 11 #include "content/public/browser/browser_thread.h"
12 #include "content/public/browser/render_view_host.h" 12 #include "content/public/browser/render_view_host.h"
13 #include "googleurl/src/gurl.h"
13 #include "ppapi/c/pp_instance.h" 14 #include "ppapi/c/pp_instance.h"
14 15
15 namespace IPC { 16 namespace IPC {
16 class ChannelProxy; 17 class ChannelProxy;
17 struct ChannelHandle; 18 struct ChannelHandle;
18 class Sender; 19 class Sender;
19 } 20 }
20 21
21 namespace net { 22 namespace net {
22 class HostResolver; 23 class HostResolver;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // invalid, the ids will be 0 and false will be returned. 66 // invalid, the ids will be 0 and false will be returned.
66 // 67 //
67 // When a resource is created, the PP_Instance should already have been 68 // When a resource is created, the PP_Instance should already have been
68 // validated, and the resource hosts will be deleted when the resource is 69 // validated, and the resource hosts will be deleted when the resource is
69 // destroyed. So it should not generally be necessary to check for errors 70 // destroyed. So it should not generally be necessary to check for errors
70 // from this function except as a last-minute sanity check if you convert the 71 // from this function except as a last-minute sanity check if you convert the
71 // IDs to a RenderView/ProcessHost on the UI thread. 72 // IDs to a RenderView/ProcessHost on the UI thread.
72 virtual bool GetRenderViewIDsForInstance(PP_Instance instance, 73 virtual bool GetRenderViewIDsForInstance(PP_Instance instance,
73 int* render_process_id, 74 int* render_process_id,
74 int* render_view_id) const = 0; 75 int* render_view_id) const = 0;
76
75 // Returns the name of the plugin. 77 // Returns the name of the plugin.
76 virtual const std::string& GetPluginName() = 0; 78 virtual const std::string& GetPluginName() = 0;
77 79
78 // Returns the user's profile data directory. 80 // Returns the user's profile data directory.
79 virtual const FilePath& GetProfileDataDirectory() = 0; 81 virtual const FilePath& GetProfileDataDirectory() = 0;
82
83 // Get the Document/Plugin URLs for the given PP_Instance.
84 virtual GURL GetDocumentURLForInstance(PP_Instance instance) = 0;
85 virtual GURL GetPluginURLForInstance(PP_Instance instance) = 0;
80 }; 86 };
81 87
82 } // namespace content 88 } // namespace content
83 89
84 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PPAPI_HOST_H_ 90 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PPAPI_HOST_H_
OLDNEW
« no previous file with comments | « content/content_common.gypi ('k') | content/renderer/pepper/pepper_plugin_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698