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

Unified Diff: webkit/plugins/ppapi/ppb_broker_impl.h

Issue 20165002: Move webkit/plugins/ppapi to content/renderer/pepper. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: more more clang fun Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/plugins/ppapi/ppb_audio_impl.cc ('k') | webkit/plugins/ppapi/ppb_broker_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_broker_impl.h
===================================================================
--- webkit/plugins/ppapi/ppb_broker_impl.h (revision 213561)
+++ webkit/plugins/ppapi/ppb_broker_impl.h (working copy)
@@ -1,62 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef WEBKIT_PLUGINS_PPAPI_PPB_BROKER_IMPL_H_
-#define WEBKIT_PLUGINS_PPAPI_PPB_BROKER_IMPL_H_
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/memory/weak_ptr.h"
-#include "ppapi/c/pp_completion_callback.h"
-#include "ppapi/c/trusted/ppb_broker_trusted.h"
-#include "ppapi/shared_impl/resource.h"
-#include "ppapi/shared_impl/tracked_callback.h"
-#include "ppapi/thunk/ppb_broker_api.h"
-#include "webkit/plugins/ppapi/plugin_delegate.h"
-#include "webkit/plugins/webkit_plugins_export.h"
-
-namespace webkit {
-namespace ppapi {
-
-class WEBKIT_PLUGINS_EXPORT PPB_Broker_Impl
- : public ::ppapi::Resource,
- NON_EXPORTED_BASE(public ::ppapi::thunk::PPB_Broker_API),
- public base::SupportsWeakPtr<PPB_Broker_Impl> {
- public:
- explicit PPB_Broker_Impl(PP_Instance instance);
- virtual ~PPB_Broker_Impl();
-
- // Resource override.
- virtual ::ppapi::thunk::PPB_Broker_API* AsPPB_Broker_API() OVERRIDE;
-
- // PPB_BrokerTrusted implementation.
- virtual int32_t Connect(
- scoped_refptr< ::ppapi::TrackedCallback> connect_callback) OVERRIDE;
- virtual int32_t GetHandle(int32_t* handle) OVERRIDE;
-
- // Returns the URL of the document this plug-in runs in. This is necessary to
- // decide whether to grant access to the PPAPI broker.
- GURL GetDocumentUrl();
-
- void BrokerConnected(int32_t handle, int32_t result);
-
- private:
- // PluginDelegate ppapi broker object.
- // We don't own this pointer but are responsible for calling Disconnect on it.
- PluginDelegate::Broker* broker_;
-
- // Callback invoked from BrokerConnected.
- scoped_refptr< ::ppapi::TrackedCallback> connect_callback_;
-
- // Pipe handle for the plugin instance to use to communicate with the broker.
- // Never owned by this object.
- int32_t pipe_handle_;
-
- DISALLOW_COPY_AND_ASSIGN(PPB_Broker_Impl);
-};
-
-} // namespace ppapi
-} // namespace webkit
-
-#endif // WEBKIT_PLUGINS_PPAPI_PPB_BROKER_IMPL_H_
« no previous file with comments | « webkit/plugins/ppapi/ppb_audio_impl.cc ('k') | webkit/plugins/ppapi/ppb_broker_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698