| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_GLUE_WEBPLUGIN_DELEGATE_H__ | 5 #ifndef WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H__ |
| 6 #define WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H__ | 6 #define WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H__ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 // Only Available after Initialize is called. | 104 // Only Available after Initialize is called. |
| 105 virtual std::wstring GetPluginPath() = 0; | 105 virtual std::wstring GetPluginPath() = 0; |
| 106 | 106 |
| 107 // Only Supported when the plugin is the default plugin. | 107 // Only Supported when the plugin is the default plugin. |
| 108 virtual void InstallMissingPlugin() = 0; | 108 virtual void InstallMissingPlugin() = 0; |
| 109 | 109 |
| 110 // Creates a WebPluginResourceClient instance and returns the same. | 110 // Creates a WebPluginResourceClient instance and returns the same. |
| 111 virtual WebPluginResourceClient* CreateResourceClient(int resource_id, | 111 virtual WebPluginResourceClient* CreateResourceClient(int resource_id, |
| 112 const std::string &url, | 112 const std::string &url, |
| 113 bool notify_needed, | 113 bool notify_needed, |
| 114 void *notify_data) = 0; | 114 void *notify_data, |
| 115 void* stream) = 0; |
| 115 // Notifies the delegate about a Get/Post URL request getting routed | 116 // Notifies the delegate about a Get/Post URL request getting routed |
| 116 virtual void URLRequestRouted(const std::string&url, bool notify_needed, | 117 virtual void URLRequestRouted(const std::string&url, bool notify_needed, |
| 117 void* notify_data) = 0; | 118 void* notify_data) = 0; |
| 118 private: | 119 private: |
| 119 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegate); | 120 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegate); |
| 120 }; | 121 }; |
| 121 | 122 |
| 122 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H__ | 123 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H__ |
| 123 | 124 |
| OLD | NEW |