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

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

Issue 1426923007: Remove PluginLoadObserver and related logic, it was only used for NPAPI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « content/child/npapi/plugin_url_fetcher.cc ('k') | content/child/npapi/webplugin_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // Resolves the proxies for the url, returns true on success. 63 // Resolves the proxies for the url, returns true on success.
64 virtual bool FindProxyForUrl(const GURL& url, std::string* proxy_list) = 0; 64 virtual bool FindProxyForUrl(const GURL& url, std::string* proxy_list) = 0;
65 65
66 // Cookies 66 // Cookies
67 virtual void SetCookie(const GURL& url, 67 virtual void SetCookie(const GURL& url,
68 const GURL& first_party_for_cookies, 68 const GURL& first_party_for_cookies,
69 const std::string& cookie) = 0; 69 const std::string& cookie) = 0;
70 virtual std::string GetCookies(const GURL& url, 70 virtual std::string GetCookies(const GURL& url,
71 const GURL& first_party_for_cookies) = 0; 71 const GURL& first_party_for_cookies) = 0;
72 72
73 // Handles GetURL/GetURLNotify/PostURL/PostURLNotify requests initiated
74 // by plugins. If the plugin wants notification of the result, notify_id will
75 // be non-zero.
76 virtual void HandleURLRequest(const char* url,
77 const char* method,
78 const char* target,
79 const char* buf,
80 unsigned int len,
81 int notify_id,
82 bool popups_allowed,
83 bool notify_redirects) = 0;
84
85 // Cancels document load. 73 // Cancels document load.
86 virtual void CancelDocumentLoad() = 0; 74 virtual void CancelDocumentLoad() = 0;
87 75
88 // Initiates a HTTP range request for an existing stream.
89 virtual void InitiateHTTPRangeRequest(const char* url,
90 const char* range_info,
91 int range_request_id) = 0;
92
93 virtual void DidStartLoading() = 0; 76 virtual void DidStartLoading() = 0;
94 virtual void DidStopLoading() = 0; 77 virtual void DidStopLoading() = 0;
95 78
96 // Returns true iff in incognito mode. 79 // Returns true iff in incognito mode.
97 virtual bool IsOffTheRecord() = 0; 80 virtual bool IsOffTheRecord() = 0;
98 81
99 // Called when the WebPluginResourceClient instance is deleted. 82 // Called when the WebPluginResourceClient instance is deleted.
100 virtual void ResourceClientDeleted( 83 virtual void ResourceClientDeleted(
101 WebPluginResourceClient* resource_client) {} 84 WebPluginResourceClient* resource_client) {}
102 85
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 virtual void AcceleratedPluginAllocatedIOSurface(int32 width, 122 virtual void AcceleratedPluginAllocatedIOSurface(int32 width,
140 int32 height, 123 int32 height,
141 uint32 surface_id) = 0; 124 uint32 surface_id) = 0;
142 virtual void AcceleratedPluginSwappedIOSurface() = 0; 125 virtual void AcceleratedPluginSwappedIOSurface() = 0;
143 #endif 126 #endif
144 }; 127 };
145 128
146 } // namespace content 129 } // namespace content
147 130
148 #endif // CONTENT_CHILD_NPAPI_WEBPLUGIN_H_ 131 #endif // CONTENT_CHILD_NPAPI_WEBPLUGIN_H_
OLDNEW
« no previous file with comments | « content/child/npapi/plugin_url_fetcher.cc ('k') | content/child/npapi/webplugin_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698