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

Unified Diff: content/plugin/webplugin_delegate_stub.h

Issue 1852593004: Remove content/plugin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_npapi_test_plugin
Patch Set: . Created 4 years, 9 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
Index: content/plugin/webplugin_delegate_stub.h
diff --git a/content/plugin/webplugin_delegate_stub.h b/content/plugin/webplugin_delegate_stub.h
deleted file mode 100644
index 69b62fa9ceb73d27f174af322f921e6225902555..0000000000000000000000000000000000000000
--- a/content/plugin/webplugin_delegate_stub.h
+++ /dev/null
@@ -1,98 +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 CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_
-#define CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_
-
-#include <string>
-#include <vector>
-
-#include "base/macros.h"
-#include "base/memory/ref_counted.h"
-#include "build/build_config.h"
-#include "ipc/ipc_listener.h"
-#include "ipc/ipc_sender.h"
-#include "third_party/npapi/bindings/npapi.h"
-#include "ui/gfx/geometry/rect.h"
-#include "ui/gfx/native_widget_types.h"
-#include "url/gurl.h"
-
-struct PluginMsg_Init_Params;
-struct PluginMsg_UpdateGeometry_Param;
-
-namespace blink {
-class WebInputEvent;
-}
-
-namespace content {
-class PluginChannel;
-class WebCursor;
-class WebPluginDelegateImpl;
-class WebPluginProxy;
-
-// Converts the IPC messages from WebPluginDelegateProxy into calls to the
-// actual WebPluginDelegateImpl object.
-class WebPluginDelegateStub : public IPC::Listener,
- public IPC::Sender,
- public base::RefCounted<WebPluginDelegateStub> {
- public:
- WebPluginDelegateStub(const std::string& mime_type, int instance_id,
- PluginChannel* channel);
-
- // IPC::Listener implementation:
- bool OnMessageReceived(const IPC::Message& msg) override;
-
- // IPC::Sender implementation:
- bool Send(IPC::Message* msg) override;
-
- int instance_id() { return instance_id_; }
- WebPluginDelegateImpl* delegate() { return delegate_; }
- WebPluginProxy* webplugin() { return webplugin_; }
-
- private:
- friend class base::RefCounted<WebPluginDelegateStub>;
-
- ~WebPluginDelegateStub() override;
-
- // Message handlers for the WebPluginDelegate calls that are proxied from the
- // renderer over the IPC channel.
- void OnInit(const PluginMsg_Init_Params& params,
- bool* transparent,
- bool* result);
- void OnSetFocus(bool focused);
- void OnHandleInputEvent(const blink::WebInputEvent* event,
- bool* handled, WebCursor* cursor);
- void OnPaint(const gfx::Rect& damaged_rect);
- void OnDidPaint();
- void OnUpdateGeometry(const PluginMsg_UpdateGeometry_Param& param);
-
- void OnSetContentAreaFocus(bool has_focus);
-#if defined(OS_MACOSX)
- void OnSetWindowFocus(bool has_focus);
- void OnContainerHidden();
- void OnContainerShown(gfx::Rect window_frame, gfx::Rect view_frame,
- bool has_focus);
- void OnWindowFrameChanged(const gfx::Rect& window_frame,
- const gfx::Rect& view_frame);
- void OnImeCompositionCompleted(const base::string16& text);
-#endif
-
- std::string mime_type_;
- int instance_id_;
-
- scoped_refptr<PluginChannel> channel_;
-
- WebPluginDelegateImpl* delegate_;
- WebPluginProxy* webplugin_;
- bool in_destructor_;
-
- // The url of the main frame hosting the plugin.
- GURL page_url_;
-
- DISALLOW_IMPLICIT_CONSTRUCTORS(WebPluginDelegateStub);
-};
-
-} // namespace content
-
-#endif // CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_
« no previous file with comments | « content/plugin/webplugin_accelerated_surface_proxy_mac.cc ('k') | content/plugin/webplugin_delegate_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698