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_old.h" | 10 #include "base/callback_old.h" |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 // this will return an empty string. | 411 // this will return an empty string. |
412 virtual std::string ResolveProxy(const GURL& url) = 0; | 412 virtual std::string ResolveProxy(const GURL& url) = 0; |
413 | 413 |
414 // Tell the browser when resource loading starts/ends. | 414 // Tell the browser when resource loading starts/ends. |
415 virtual void DidStartLoading() = 0; | 415 virtual void DidStartLoading() = 0; |
416 virtual void DidStopLoading() = 0; | 416 virtual void DidStopLoading() = 0; |
417 | 417 |
418 // Sets restrictions on how the content can be used (i.e. no print/copy). | 418 // Sets restrictions on how the content can be used (i.e. no print/copy). |
419 virtual void SetContentRestriction(int restrictions) = 0; | 419 virtual void SetContentRestriction(int restrictions) = 0; |
420 | 420 |
421 // Tells the browser that the PDF has an unsupported feature. | |
422 virtual void HasUnsupportedFeature() = 0; | |
423 | |
424 // Tells the browser to bring up SaveAs dialog to save specified URL. | 421 // Tells the browser to bring up SaveAs dialog to save specified URL. |
425 virtual void SaveURLAs(const GURL& url) = 0; | 422 virtual void SaveURLAs(const GURL& url) = 0; |
426 | 423 |
427 // Socket dispatcher for P2P connections. Returns to NULL if P2P API | 424 // Socket dispatcher for P2P connections. Returns to NULL if P2P API |
428 // is disabled. | 425 // is disabled. |
429 // | 426 // |
430 // TODO(sergeyu): Stop using GetP2PSocketDispatcher() in remoting | 427 // TODO(sergeyu): Stop using GetP2PSocketDispatcher() in remoting |
431 // client and remove it from here. | 428 // client and remove it from here. |
432 virtual P2PSocketDispatcher* GetP2PSocketDispatcher() = 0; | 429 virtual P2PSocketDispatcher* GetP2PSocketDispatcher() = 0; |
433 | 430 |
(...skipping 11 matching lines...) Expand all Loading... |
445 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0; | 442 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0; |
446 | 443 |
447 // Returns the current preferences. | 444 // Returns the current preferences. |
448 virtual ::ppapi::Preferences GetPreferences() = 0; | 445 virtual ::ppapi::Preferences GetPreferences() = 0; |
449 }; | 446 }; |
450 | 447 |
451 } // namespace ppapi | 448 } // namespace ppapi |
452 } // namespace webkit | 449 } // namespace webkit |
453 | 450 |
454 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 451 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
OLD | NEW |