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 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 // size. | 613 // size. |
614 virtual gfx::Size GetScreenSize() = 0; | 614 virtual gfx::Size GetScreenSize() = 0; |
615 | 615 |
616 // Returns a string with the name of the default 8-bit char encoding. | 616 // Returns a string with the name of the default 8-bit char encoding. |
617 virtual std::string GetDefaultEncoding() = 0; | 617 virtual std::string GetDefaultEncoding() = 0; |
618 | 618 |
619 // Sets the minimum and maximum zoom factors. | 619 // Sets the minimum and maximum zoom factors. |
620 virtual void ZoomLimitsChanged(double minimum_factor, | 620 virtual void ZoomLimitsChanged(double minimum_factor, |
621 double maximum_factor) = 0; | 621 double maximum_factor) = 0; |
622 | 622 |
623 // Retrieves the proxy information for the given URL in PAC format. On error, | |
624 // this will return an empty string. | |
625 virtual std::string ResolveProxy(const GURL& url) = 0; | |
626 | |
627 // Tell the browser when resource loading starts/ends. | 623 // Tell the browser when resource loading starts/ends. |
628 virtual void DidStartLoading() = 0; | 624 virtual void DidStartLoading() = 0; |
629 virtual void DidStopLoading() = 0; | 625 virtual void DidStopLoading() = 0; |
630 | 626 |
631 // Sets restrictions on how the content can be used (i.e. no print/copy). | 627 // Sets restrictions on how the content can be used (i.e. no print/copy). |
632 virtual void SetContentRestriction(int restrictions) = 0; | 628 virtual void SetContentRestriction(int restrictions) = 0; |
633 | 629 |
634 // Tells the browser to bring up SaveAs dialog to save specified URL. | 630 // Tells the browser to bring up SaveAs dialog to save specified URL. |
635 virtual void SaveURLAs(const GURL& url) = 0; | 631 virtual void SaveURLAs(const GURL& url) = 0; |
636 | 632 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
695 // Returns restrictions on local data handled by the plug-in. | 691 // Returns restrictions on local data handled by the plug-in. |
696 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( | 692 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( |
697 const GURL& document_url, | 693 const GURL& document_url, |
698 const GURL& plugin_url) = 0; | 694 const GURL& plugin_url) = 0; |
699 }; | 695 }; |
700 | 696 |
701 } // namespace ppapi | 697 } // namespace ppapi |
702 } // namespace webkit | 698 } // namespace webkit |
703 | 699 |
704 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 700 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
OLD | NEW |