| 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_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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 // Tell the browser when resource loading starts/ends. | 357 // Tell the browser when resource loading starts/ends. |
| 358 virtual void DidStartLoading() = 0; | 358 virtual void DidStartLoading() = 0; |
| 359 virtual void DidStopLoading() = 0; | 359 virtual void DidStopLoading() = 0; |
| 360 | 360 |
| 361 // Sets restrictions on how the content can be used (i.e. no print/copy). | 361 // Sets restrictions on how the content can be used (i.e. no print/copy). |
| 362 virtual void SetContentRestriction(int restrictions) = 0; | 362 virtual void SetContentRestriction(int restrictions) = 0; |
| 363 | 363 |
| 364 // Tells the browser that the PDF has an unsupported feature. | 364 // Tells the browser that the PDF has an unsupported feature. |
| 365 virtual void HasUnsupportedFeature() = 0; | 365 virtual void HasUnsupportedFeature() = 0; |
| 366 | 366 |
| 367 // Tells the browser to bring up SaveAs dialog. |
| 368 virtual void SaveAs() = 0; |
| 369 |
| 367 // Socket dispatcher for P2P connections. Returns to NULL if P2P API | 370 // Socket dispatcher for P2P connections. Returns to NULL if P2P API |
| 368 // is disabled. | 371 // is disabled. |
| 369 // | 372 // |
| 370 // TODO(sergeyu): Replace this with a higher-level P2P API | 373 // TODO(sergeyu): Replace this with a higher-level P2P API |
| 371 // implementation. | 374 // implementation. |
| 372 virtual P2PSocketDispatcher* GetP2PSocketDispatcher() = 0; | 375 virtual P2PSocketDispatcher* GetP2PSocketDispatcher() = 0; |
| 373 }; | 376 }; |
| 374 | 377 |
| 375 } // namespace ppapi | 378 } // namespace ppapi |
| 376 } // namespace webkit | 379 } // namespace webkit |
| 377 | 380 |
| 378 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 381 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| OLD | NEW |