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

Side by Side Diff: content/browser/ppapi_plugin_process_host.h

Issue 9369009: Make content::ResourceContext be a real interface like the rest of the Content API (i.e. don't ha... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 8 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ 5 #ifndef CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_
6 #define CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ 6 #define CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <queue> 9 #include <queue>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // error. On error, the parameters should be: 43 // error. On error, the parameters should be:
44 // base::kNullProcessHandle 44 // base::kNullProcessHandle
45 // IPC::ChannelHandle() 45 // IPC::ChannelHandle()
46 virtual void OnChannelOpened(base::ProcessHandle plugin_process_handle, 46 virtual void OnChannelOpened(base::ProcessHandle plugin_process_handle,
47 const IPC::ChannelHandle& channel_handle) = 0; 47 const IPC::ChannelHandle& channel_handle) = 0;
48 }; 48 };
49 49
50 class PluginClient : public Client { 50 class PluginClient : public Client {
51 public: 51 public:
52 // Returns the resource context for the renderer requesting the channel. 52 // Returns the resource context for the renderer requesting the channel.
53 virtual const content::ResourceContext* GetResourceContext() = 0; 53 virtual content::ResourceContext* GetResourceContext() = 0;
54 }; 54 };
55 55
56 class BrokerClient : public Client { 56 class BrokerClient : public Client {
57 }; 57 };
58 58
59 virtual ~PpapiPluginProcessHost(); 59 virtual ~PpapiPluginProcessHost();
60 60
61 static PpapiPluginProcessHost* CreatePluginHost( 61 static PpapiPluginProcessHost* CreatePluginHost(
62 const content::PepperPluginInfo& info, 62 const content::PepperPluginInfo& info,
63 net::HostResolver* host_resolver); 63 net::HostResolver* host_resolver);
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 : public content::BrowserChildProcessHostTypeIterator< 140 : public content::BrowserChildProcessHostTypeIterator<
141 PpapiPluginProcessHost> { 141 PpapiPluginProcessHost> {
142 public: 142 public:
143 PpapiBrokerProcessHostIterator() 143 PpapiBrokerProcessHostIterator()
144 : content::BrowserChildProcessHostTypeIterator< 144 : content::BrowserChildProcessHostTypeIterator<
145 PpapiPluginProcessHost>(content::PROCESS_TYPE_PPAPI_BROKER) {} 145 PpapiPluginProcessHost>(content::PROCESS_TYPE_PPAPI_BROKER) {}
146 }; 146 };
147 147
148 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ 148 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_
149 149
OLDNEW
« no previous file with comments | « content/browser/plugin_service_impl_browsertest.cc ('k') | content/browser/renderer_host/async_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698