| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 class WebPluginResourceClient { | 139 class WebPluginResourceClient { |
| 140 public: | 140 public: |
| 141 virtual ~WebPluginResourceClient() {} | 141 virtual ~WebPluginResourceClient() {} |
| 142 virtual void WillSendRequest(const GURL& url) = 0; | 142 virtual void WillSendRequest(const GURL& url) = 0; |
| 143 // The request_is_seekable parameter indicates whether byte range requests | 143 // The request_is_seekable parameter indicates whether byte range requests |
| 144 // can be issued for the underlying stream. | 144 // can be issued for the underlying stream. |
| 145 virtual void DidReceiveResponse(const std::string& mime_type, | 145 virtual void DidReceiveResponse(const std::string& mime_type, |
| 146 const std::string& headers, | 146 const std::string& headers, |
| 147 uint32 expected_length, | 147 uint32 expected_length, |
| 148 uint32 last_modified, | 148 uint32 last_modified, |
| 149 bool request_is_seekable, | 149 bool request_is_seekable) = 0; |
| 150 bool* cancel) = 0; | |
| 151 virtual void DidReceiveData(const char* buffer, int length, | 150 virtual void DidReceiveData(const char* buffer, int length, |
| 152 int data_offset) = 0; | 151 int data_offset) = 0; |
| 153 virtual void DidFinishLoading() = 0; | 152 virtual void DidFinishLoading() = 0; |
| 154 virtual void DidFail() = 0; | 153 virtual void DidFail() = 0; |
| 155 virtual bool IsMultiByteResponseExpected() = 0; | 154 virtual bool IsMultiByteResponseExpected() = 0; |
| 156 }; | 155 }; |
| 157 | 156 |
| 158 | 157 |
| 159 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_H__ | 158 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_H__ |
| OLD | NEW |