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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_CHILD_NPAPI_WEBPLUGIN_H_
6 #define CONTENT_CHILD_NPAPI_WEBPLUGIN_H_
7
8 #include <stdint.h>
9
10 #include <string>
11 #include <vector>
12
13 #include "build/build_config.h"
14 #include "ui/gfx/geometry/rect.h"
15 #include "ui/gfx/native_widget_types.h"
16 #include "ui/gl/gpu_preference.h"
17
18 // TODO(port): this typedef is obviously incorrect on non-Windows
19 // platforms, but now a lot of code now accidentally depends on them
20 // existing. #ifdef out these declarations and fix all the users.
21 typedef void* HANDLE;
22
23 class GURL;
24 struct NPObject;
25
26 namespace content {
27
28 class WebPluginResourceClient;
29 #if defined(OS_MACOSX)
30 class WebPluginAcceleratedSurface;
31 #endif
32
33 // The WebKit side of a plugin implementation. It provides wrappers around
34 // operations that need to interact with the frame and other WebCore objects.
35 class WebPlugin {
36 public:
37 virtual ~WebPlugin() {}
38
39 virtual void Invalidate() = 0;
40 virtual void InvalidateRect(const gfx::Rect& rect) = 0;
41
42 // Resolves the proxies for the url, returns true on success.
43 virtual bool FindProxyForUrl(const GURL& url, std::string* proxy_list) = 0;
44
45 // Cookies
46 virtual void SetCookie(const GURL& url,
47 const GURL& first_party_for_cookies,
48 const std::string& cookie) = 0;
49 virtual std::string GetCookies(const GURL& url,
50 const GURL& first_party_for_cookies) = 0;
51
52 // Cancels document load.
53 virtual void CancelDocumentLoad() = 0;
54
55 virtual void DidStartLoading() = 0;
56 virtual void DidStopLoading() = 0;
57
58 // Returns true iff in incognito mode.
59 virtual bool IsOffTheRecord() = 0;
60
61 #if defined(OS_MACOSX)
62 // Called to inform the WebPlugin that the plugin has gained or lost focus.
63 virtual void FocusChanged(bool focused) {}
64
65 // Starts plugin IME.
66 virtual void StartIme() {}
67
68 // Returns the accelerated surface abstraction for accelerated plugins.
69 virtual WebPluginAcceleratedSurface* GetAcceleratedSurface(
70 gfx::GpuPreference gpu_preference) = 0;
71
72 // Core Animation plugin support. CA plugins always render through
73 // the compositor.
74 virtual void AcceleratedPluginEnabledRendering() = 0;
75 virtual void AcceleratedPluginAllocatedIOSurface(int32_t width,
76 int32_t height,
77 uint32_t surface_id) = 0;
78 virtual void AcceleratedPluginSwappedIOSurface() = 0;
79 #endif
80 };
81
82 } // namespace content
83
84 #endif // CONTENT_CHILD_NPAPI_WEBPLUGIN_H_
OLDNEW
« 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