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

Side by Side Diff: content/child/npapi/webplugin.h

Issue 1483733002: Remove support for NPObjects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 12 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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_CHILD_NPAPI_WEBPLUGIN_H_ 5 #ifndef CONTENT_CHILD_NPAPI_WEBPLUGIN_H_
6 #define CONTENT_CHILD_NPAPI_WEBPLUGIN_H_ 6 #define CONTENT_CHILD_NPAPI_WEBPLUGIN_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 // Called by the plugin delegate to let it know that the window is being 48 // Called by the plugin delegate to let it know that the window is being
49 // destroyed. 49 // destroyed.
50 virtual void WillDestroyWindow(gfx::PluginWindowHandle window) = 0; 50 virtual void WillDestroyWindow(gfx::PluginWindowHandle window) = 0;
51 51
52 // Cancels a pending request. 52 // Cancels a pending request.
53 virtual void CancelResource(unsigned long id) = 0; 53 virtual void CancelResource(unsigned long id) = 0;
54 virtual void Invalidate() = 0; 54 virtual void Invalidate() = 0;
55 virtual void InvalidateRect(const gfx::Rect& rect) = 0; 55 virtual void InvalidateRect(const gfx::Rect& rect) = 0;
56 56
57 // Returns the NPObject for the browser's window object. Does not
58 // take a reference.
59 virtual NPObject* GetWindowScriptNPObject() = 0;
60
61 // Returns the DOM element that loaded the plugin. Does not take a
62 // reference.
63 virtual NPObject* GetPluginElement() = 0;
64
65 // Resolves the proxies for the url, returns true on success. 57 // Resolves the proxies for the url, returns true on success.
66 virtual bool FindProxyForUrl(const GURL& url, std::string* proxy_list) = 0; 58 virtual bool FindProxyForUrl(const GURL& url, std::string* proxy_list) = 0;
67 59
68 // Cookies 60 // Cookies
69 virtual void SetCookie(const GURL& url, 61 virtual void SetCookie(const GURL& url,
70 const GURL& first_party_for_cookies, 62 const GURL& first_party_for_cookies,
71 const std::string& cookie) = 0; 63 const std::string& cookie) = 0;
72 virtual std::string GetCookies(const GURL& url, 64 virtual std::string GetCookies(const GURL& url,
73 const GURL& first_party_for_cookies) = 0; 65 const GURL& first_party_for_cookies) = 0;
74 66
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 virtual void AcceleratedPluginAllocatedIOSurface(int32_t width, 116 virtual void AcceleratedPluginAllocatedIOSurface(int32_t width,
125 int32_t height, 117 int32_t height,
126 uint32_t surface_id) = 0; 118 uint32_t surface_id) = 0;
127 virtual void AcceleratedPluginSwappedIOSurface() = 0; 119 virtual void AcceleratedPluginSwappedIOSurface() = 0;
128 #endif 120 #endif
129 }; 121 };
130 122
131 } // namespace content 123 } // namespace content
132 124
133 #endif // CONTENT_CHILD_NPAPI_WEBPLUGIN_H_ 125 #endif // CONTENT_CHILD_NPAPI_WEBPLUGIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698