| 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_H__ | 5 #ifndef WEBKIT_GLUE_WEBPLUGIN_H__ |
| 6 #define WEBKIT_GLUE_WEBPLUGIN_H__ | 6 #define WEBKIT_GLUE_WEBPLUGIN_H__ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 bool notify, const char* url, | 126 bool notify, const char* url, |
| 127 void* notify_data, bool popups_allowed) = 0; | 127 void* notify_data, bool popups_allowed) = 0; |
| 128 | 128 |
| 129 private: | 129 private: |
| 130 DISALLOW_EVIL_CONSTRUCTORS(WebPlugin); | 130 DISALLOW_EVIL_CONSTRUCTORS(WebPlugin); |
| 131 }; | 131 }; |
| 132 | 132 |
| 133 // Simpler version of ResourceHandleClient that lends itself to proxying. | 133 // Simpler version of ResourceHandleClient that lends itself to proxying. |
| 134 class WebPluginResourceClient { | 134 class WebPluginResourceClient { |
| 135 public: | 135 public: |
| 136 virtual ~WebPluginResourceClient() {} |
| 136 virtual void WillSendRequest(const GURL& url) = 0; | 137 virtual void WillSendRequest(const GURL& url) = 0; |
| 137 virtual void DidReceiveResponse(const std::string& mime_type, | 138 virtual void DidReceiveResponse(const std::string& mime_type, |
| 138 const std::string& headers, | 139 const std::string& headers, |
| 139 uint32 expected_length, | 140 uint32 expected_length, |
| 140 uint32 last_modified, | 141 uint32 last_modified, |
| 141 bool* cancel) = 0; | 142 bool* cancel) = 0; |
| 142 virtual void DidReceiveData(const char* buffer, int length) = 0; | 143 virtual void DidReceiveData(const char* buffer, int length) = 0; |
| 143 virtual void DidFinishLoading() = 0; | 144 virtual void DidFinishLoading() = 0; |
| 144 virtual void DidFail() = 0; | 145 virtual void DidFail() = 0; |
| 145 }; | 146 }; |
| 146 | 147 |
| 147 | 148 |
| 148 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_H__ | 149 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_H__ |
| 149 | 150 |
| OLD | NEW |