OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ |
6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ | 6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 virtual void CancelResource(unsigned long id); | 103 virtual void CancelResource(unsigned long id); |
104 virtual void Invalidate(); | 104 virtual void Invalidate(); |
105 virtual void InvalidateRect(const gfx::Rect& rect); | 105 virtual void InvalidateRect(const gfx::Rect& rect); |
106 virtual NPObject* GetWindowScriptNPObject(); | 106 virtual NPObject* GetWindowScriptNPObject(); |
107 virtual NPObject* GetPluginElement(); | 107 virtual NPObject* GetPluginElement(); |
108 virtual void SetCookie(const GURL& url, | 108 virtual void SetCookie(const GURL& url, |
109 const GURL& first_party_for_cookies, | 109 const GURL& first_party_for_cookies, |
110 const std::string& cookie); | 110 const std::string& cookie); |
111 virtual std::string GetCookies(const GURL& url, | 111 virtual std::string GetCookies(const GURL& url, |
112 const GURL& first_party_for_cookies); | 112 const GURL& first_party_for_cookies); |
113 virtual void OnMissingPluginStatus(int status); | |
114 | |
115 virtual void URLRedirectResponse(bool allow, int resource_id); | 113 virtual void URLRedirectResponse(bool allow, int resource_id); |
116 | 114 |
117 // Given a (maybe partial) url, completes using the base url. | 115 // Given a (maybe partial) url, completes using the base url. |
118 GURL CompleteURL(const char* url); | 116 GURL CompleteURL(const char* url); |
119 | 117 |
120 enum RoutingStatus { | 118 enum RoutingStatus { |
121 ROUTED, | 119 ROUTED, |
122 NOT_ROUTED, | 120 NOT_ROUTED, |
123 INVALID_URL, | 121 INVALID_URL, |
124 GENERAL_FAILURE | 122 GENERAL_FAILURE |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 | 299 |
302 ScopedRunnableMethodFactory<WebPluginImpl> method_factory_; | 300 ScopedRunnableMethodFactory<WebPluginImpl> method_factory_; |
303 | 301 |
304 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); | 302 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); |
305 }; | 303 }; |
306 | 304 |
307 } // namespace npapi | 305 } // namespace npapi |
308 } // namespace webkit | 306 } // namespace webkit |
309 | 307 |
310 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ | 308 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ |
OLD | NEW |