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

Side by Side Diff: content/renderer/pepper_plugin_delegate_impl.h

Issue 7885009: Removed the dependency of PepperPluginRegistry on Pepper proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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) 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_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <map> 10 #include <map>
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 ~BrokerDispatcherWrapper(); 61 ~BrokerDispatcherWrapper();
62 62
63 bool Init(base::ProcessHandle plugin_process_handle, 63 bool Init(base::ProcessHandle plugin_process_handle,
64 const IPC::ChannelHandle& channel_handle); 64 const IPC::ChannelHandle& channel_handle);
65 65
66 int32_t SendHandleToBroker(PP_Instance instance, 66 int32_t SendHandleToBroker(PP_Instance instance,
67 base::SyncSocket::Handle handle); 67 base::SyncSocket::Handle handle);
68 68
69 private: 69 private:
70 scoped_ptr<ppapi::proxy::BrokerDispatcher> dispatcher_; 70 scoped_ptr<ppapi::proxy::BrokerDispatcher> dispatcher_;
71 scoped_ptr<ppapi::proxy::ProxyChannel::Delegate> dispatcher_delegate_;
71 }; 72 };
72 73
73 // This object is NOT thread-safe. 74 // This object is NOT thread-safe.
74 class PpapiBrokerImpl : public webkit::ppapi::PluginDelegate::PpapiBroker, 75 class PpapiBrokerImpl : public webkit::ppapi::PluginDelegate::PpapiBroker,
75 public base::RefCountedThreadSafe<PpapiBrokerImpl>{ 76 public base::RefCountedThreadSafe<PpapiBrokerImpl>{
76 public: 77 public:
77 PpapiBrokerImpl(webkit::ppapi::PluginModule* plugin_module, 78 PpapiBrokerImpl(webkit::ppapi::PluginModule* plugin_module,
78 PepperPluginDelegateImpl* delegate_); 79 PepperPluginDelegateImpl* delegate_);
79 80
80 // PpapiBroker implementation. 81 // PpapiBroker implementation.
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 bool is_pepper_plugin_focused_; 344 bool is_pepper_plugin_focused_;
344 345
345 // Set of instances to receive a notification when the enterprise policy has 346 // Set of instances to receive a notification when the enterprise policy has
346 // been updated. 347 // been updated.
347 std::set<webkit::ppapi::PluginInstance*> subscribed_to_policy_updates_; 348 std::set<webkit::ppapi::PluginInstance*> subscribed_to_policy_updates_;
348 349
349 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); 350 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl);
350 }; 351 };
351 352
352 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ 353 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_
OLDNEW
« no previous file with comments | « content/common/pepper_plugin_registry.cc ('k') | content/renderer/pepper_plugin_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698