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

Unified Diff: content/child/npapi/webplugin.h

Issue 1851093005: Remove content/child/npapi (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_combined_01_02
Patch Set: rebase Created 4 years, 8 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/child/npapi/webplugin.h
diff --git a/content/child/npapi/webplugin.h b/content/child/npapi/webplugin.h
deleted file mode 100644
index 859139163aa2b20e3efcfdad568c0712825abb94..0000000000000000000000000000000000000000
--- a/content/child/npapi/webplugin.h
+++ /dev/null
@@ -1,84 +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_CHILD_NPAPI_WEBPLUGIN_H_
-#define CONTENT_CHILD_NPAPI_WEBPLUGIN_H_
-
-#include <stdint.h>
-
-#include <string>
-#include <vector>
-
-#include "build/build_config.h"
-#include "ui/gfx/geometry/rect.h"
-#include "ui/gfx/native_widget_types.h"
-#include "ui/gl/gpu_preference.h"
-
-// TODO(port): this typedef is obviously incorrect on non-Windows
-// platforms, but now a lot of code now accidentally depends on them
-// existing. #ifdef out these declarations and fix all the users.
-typedef void* HANDLE;
-
-class GURL;
-struct NPObject;
-
-namespace content {
-
-class WebPluginResourceClient;
-#if defined(OS_MACOSX)
-class WebPluginAcceleratedSurface;
-#endif
-
-// The WebKit side of a plugin implementation. It provides wrappers around
-// operations that need to interact with the frame and other WebCore objects.
-class WebPlugin {
- public:
- virtual ~WebPlugin() {}
-
- virtual void Invalidate() = 0;
- virtual void InvalidateRect(const gfx::Rect& rect) = 0;
-
- // Resolves the proxies for the url, returns true on success.
- virtual bool FindProxyForUrl(const GURL& url, std::string* proxy_list) = 0;
-
- // Cookies
- virtual void SetCookie(const GURL& url,
- const GURL& first_party_for_cookies,
- const std::string& cookie) = 0;
- virtual std::string GetCookies(const GURL& url,
- const GURL& first_party_for_cookies) = 0;
-
- // Cancels document load.
- virtual void CancelDocumentLoad() = 0;
-
- virtual void DidStartLoading() = 0;
- virtual void DidStopLoading() = 0;
-
- // Returns true iff in incognito mode.
- virtual bool IsOffTheRecord() = 0;
-
-#if defined(OS_MACOSX)
- // Called to inform the WebPlugin that the plugin has gained or lost focus.
- virtual void FocusChanged(bool focused) {}
-
- // Starts plugin IME.
- virtual void StartIme() {}
-
- // Returns the accelerated surface abstraction for accelerated plugins.
- virtual WebPluginAcceleratedSurface* GetAcceleratedSurface(
- gfx::GpuPreference gpu_preference) = 0;
-
- // Core Animation plugin support. CA plugins always render through
- // the compositor.
- virtual void AcceleratedPluginEnabledRendering() = 0;
- virtual void AcceleratedPluginAllocatedIOSurface(int32_t width,
- int32_t height,
- uint32_t surface_id) = 0;
- virtual void AcceleratedPluginSwappedIOSurface() = 0;
-#endif
-};
-
-} // namespace content
-
-#endif // CONTENT_CHILD_NPAPI_WEBPLUGIN_H_
« no previous file with comments | « content/child/npapi/plugin_web_event_converter_mac.mm ('k') | content/child/npapi/webplugin_accelerated_surface_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698