OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 // size. | 579 // size. |
580 virtual gfx::Size GetScreenSize() = 0; | 580 virtual gfx::Size GetScreenSize() = 0; |
581 | 581 |
582 // Returns a string with the name of the default 8-bit char encoding. | 582 // Returns a string with the name of the default 8-bit char encoding. |
583 virtual std::string GetDefaultEncoding() = 0; | 583 virtual std::string GetDefaultEncoding() = 0; |
584 | 584 |
585 // Sets the minimum and maximum zoom factors. | 585 // Sets the minimum and maximum zoom factors. |
586 virtual void ZoomLimitsChanged(double minimum_factor, | 586 virtual void ZoomLimitsChanged(double minimum_factor, |
587 double maximum_factor) = 0; | 587 double maximum_factor) = 0; |
588 | 588 |
589 // Retrieves the proxy information for the given URL in PAC format. On error, | |
590 // this will return an empty string. | |
591 virtual std::string ResolveProxy(const GURL& url) = 0; | |
592 | |
593 // Tell the browser when resource loading starts/ends. | 589 // Tell the browser when resource loading starts/ends. |
594 virtual void DidStartLoading() = 0; | 590 virtual void DidStartLoading() = 0; |
595 virtual void DidStopLoading() = 0; | 591 virtual void DidStopLoading() = 0; |
596 | 592 |
597 // Sets restrictions on how the content can be used (i.e. no print/copy). | 593 // Sets restrictions on how the content can be used (i.e. no print/copy). |
598 virtual void SetContentRestriction(int restrictions) = 0; | 594 virtual void SetContentRestriction(int restrictions) = 0; |
599 | 595 |
600 // Tells the browser to bring up SaveAs dialog to save specified URL. | 596 // Tells the browser to bring up SaveAs dialog to save specified URL. |
601 virtual void SaveURLAs(const GURL& url) = 0; | 597 virtual void SaveURLAs(const GURL& url) = 0; |
602 | 598 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
661 // Returns restrictions on local data handled by the plug-in. | 657 // Returns restrictions on local data handled by the plug-in. |
662 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( | 658 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( |
663 const GURL& document_url, | 659 const GURL& document_url, |
664 const GURL& plugin_url) = 0; | 660 const GURL& plugin_url) = 0; |
665 }; | 661 }; |
666 | 662 |
667 } // namespace ppapi | 663 } // namespace ppapi |
668 } // namespace webkit | 664 } // namespace webkit |
669 | 665 |
670 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 666 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
OLD | NEW |