| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_PPAPI_PLUGIN_DELEGATE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 // Retrieves the proxy information for the given URL in PAC format. On error, | 328 // Retrieves the proxy information for the given URL in PAC format. On error, |
| 329 // this will return an empty string. | 329 // this will return an empty string. |
| 330 virtual std::string ResolveProxy(const GURL& url) = 0; | 330 virtual std::string ResolveProxy(const GURL& url) = 0; |
| 331 | 331 |
| 332 // Tell the browser when resource loading starts/ends. | 332 // Tell the browser when resource loading starts/ends. |
| 333 virtual void DidStartLoading() = 0; | 333 virtual void DidStartLoading() = 0; |
| 334 virtual void DidStopLoading() = 0; | 334 virtual void DidStopLoading() = 0; |
| 335 | 335 |
| 336 // Sets restrictions on how the content can be used (i.e. no print/copy). | 336 // Sets restrictions on how the content can be used (i.e. no print/copy). |
| 337 virtual void SetContentRestriction(int restrictions) = 0; | 337 virtual void SetContentRestriction(int restrictions) = 0; |
| 338 |
| 339 // Tells the browser that the PDF has an unsupported feature. |
| 340 virtual void HasUnsupportedFeature() = 0; |
| 338 }; | 341 }; |
| 339 | 342 |
| 340 } // namespace ppapi | 343 } // namespace ppapi |
| 341 } // namespace webkit | 344 } // namespace webkit |
| 342 | 345 |
| 343 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 346 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| OLD | NEW |