| 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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 // Tell the browser when resource loading starts/ends. | 365 // Tell the browser when resource loading starts/ends. |
| 366 virtual void DidStartLoading() = 0; | 366 virtual void DidStartLoading() = 0; |
| 367 virtual void DidStopLoading() = 0; | 367 virtual void DidStopLoading() = 0; |
| 368 | 368 |
| 369 // Sets restrictions on how the content can be used (i.e. no print/copy). | 369 // Sets restrictions on how the content can be used (i.e. no print/copy). |
| 370 virtual void SetContentRestriction(int restrictions) = 0; | 370 virtual void SetContentRestriction(int restrictions) = 0; |
| 371 | 371 |
| 372 // Tells the browser that the PDF has an unsupported feature. | 372 // Tells the browser that the PDF has an unsupported feature. |
| 373 virtual void HasUnsupportedFeature() = 0; | 373 virtual void HasUnsupportedFeature() = 0; |
| 374 | 374 |
| 375 // Tells the browser to bring up SaveAs dialog. |
| 376 virtual void SaveAs() = 0; |
| 377 |
| 375 // Socket dispatcher for P2P connections. Returns to NULL if P2P API | 378 // Socket dispatcher for P2P connections. Returns to NULL if P2P API |
| 376 // is disabled. | 379 // is disabled. |
| 377 // | 380 // |
| 378 // TODO(sergeyu): Stop using GetP2PSocketDispatcher() in remoting | 381 // TODO(sergeyu): Stop using GetP2PSocketDispatcher() in remoting |
| 379 // client and remove it from here. | 382 // client and remove it from here. |
| 380 virtual P2PSocketDispatcher* GetP2PSocketDispatcher() = 0; | 383 virtual P2PSocketDispatcher* GetP2PSocketDispatcher() = 0; |
| 381 | 384 |
| 382 // Creates P2PTransport object. | 385 // Creates P2PTransport object. |
| 383 virtual webkit_glue::P2PTransport* CreateP2PTransport() = 0; | 386 virtual webkit_glue::P2PTransport* CreateP2PTransport() = 0; |
| 384 }; | 387 }; |
| 385 | 388 |
| 386 } // namespace ppapi | 389 } // namespace ppapi |
| 387 } // namespace webkit | 390 } // namespace webkit |
| 388 | 391 |
| 389 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 392 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| OLD | NEW |