| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 141 |
| 142 private: | 142 private: |
| 143 DISALLOW_EVIL_CONSTRUCTORS(WebPlugin); | 143 DISALLOW_EVIL_CONSTRUCTORS(WebPlugin); |
| 144 }; | 144 }; |
| 145 | 145 |
| 146 // Simpler version of ResourceHandleClient that lends itself to proxying. | 146 // Simpler version of ResourceHandleClient that lends itself to proxying. |
| 147 class WebPluginResourceClient { | 147 class WebPluginResourceClient { |
| 148 public: | 148 public: |
| 149 virtual ~WebPluginResourceClient() {} | 149 virtual ~WebPluginResourceClient() {} |
| 150 virtual void WillSendRequest(const GURL& url) = 0; | 150 virtual void WillSendRequest(const GURL& url) = 0; |
| 151 // The request_is_seekable parameter indicates whether byte range requests |
| 152 // can be issued for the underlying stream. |
| 151 virtual void DidReceiveResponse(const std::string& mime_type, | 153 virtual void DidReceiveResponse(const std::string& mime_type, |
| 152 const std::string& headers, | 154 const std::string& headers, |
| 153 uint32 expected_length, | 155 uint32 expected_length, |
| 154 uint32 last_modified, | 156 uint32 last_modified, |
| 157 bool request_is_seekable, |
| 155 bool* cancel) = 0; | 158 bool* cancel) = 0; |
| 156 virtual void DidReceiveData(const char* buffer, int length, | 159 virtual void DidReceiveData(const char* buffer, int length, |
| 157 int data_offset) = 0; | 160 int data_offset) = 0; |
| 158 virtual void DidFinishLoading() = 0; | 161 virtual void DidFinishLoading() = 0; |
| 159 virtual void DidFail() = 0; | 162 virtual void DidFail() = 0; |
| 163 virtual bool IsMultiByteResponseExpected() = 0; |
| 160 }; | 164 }; |
| 161 | 165 |
| 162 | 166 |
| 163 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_H__ | 167 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_H__ |
| 164 | 168 |
| OLD | NEW |