| 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_PLUGIN_PLUGIN_STREAM_URL_H__ | 5 #ifndef WEBKIT_GLUE_PLUGIN_PLUGIN_STREAM_URL_H__ |
| 6 #define WEBKIT_GLUE_PLUGIN_PLUGIN_STREAM_URL_H__ | 6 #define WEBKIT_GLUE_PLUGIN_PLUGIN_STREAM_URL_H__ |
| 7 | 7 |
| 8 | 8 |
| 9 #include "webkit/glue/webplugin.h" | 9 #include "webkit/glue/webplugin.h" |
| 10 #include "webkit/glue/plugins/plugin_stream.h" | 10 #include "webkit/glue/plugins/plugin_stream.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 virtual void CancelRequest(); | 41 virtual void CancelRequest(); |
| 42 | 42 |
| 43 // | 43 // |
| 44 // WebPluginResourceClient methods | 44 // WebPluginResourceClient methods |
| 45 // | 45 // |
| 46 void WillSendRequest(const GURL& url); | 46 void WillSendRequest(const GURL& url); |
| 47 void DidReceiveResponse(const std::string& mime_type, | 47 void DidReceiveResponse(const std::string& mime_type, |
| 48 const std::string& headers, | 48 const std::string& headers, |
| 49 uint32 expected_length, | 49 uint32 expected_length, |
| 50 uint32 last_modified, | 50 uint32 last_modified, |
| 51 bool request_is_seekable, |
| 51 bool* cancel); | 52 bool* cancel); |
| 52 void DidReceiveData(const char* buffer, int length, int data_offset); | 53 void DidReceiveData(const char* buffer, int length, int data_offset); |
| 53 void DidFinishLoading(); | 54 void DidFinishLoading(); |
| 54 void DidFail(); | 55 void DidFail(); |
| 56 bool IsMultiByteResponseExpected() { |
| 57 return seekable(); |
| 58 } |
| 55 | 59 |
| 56 | 60 |
| 57 private: | 61 private: |
| 58 GURL url_; | 62 GURL url_; |
| 59 int id_; | 63 int id_; |
| 60 | 64 |
| 61 DISALLOW_EVIL_CONSTRUCTORS(PluginStreamUrl); | 65 DISALLOW_EVIL_CONSTRUCTORS(PluginStreamUrl); |
| 62 }; | 66 }; |
| 63 | 67 |
| 64 } // namespace NPAPI | 68 } // namespace NPAPI |
| 65 | 69 |
| 66 #endif // WEBKIT_GLUE_PLUGIN_PLUGIN_STREAM_URL_H__ | 70 #endif // WEBKIT_GLUE_PLUGIN_PLUGIN_STREAM_URL_H__ |
| OLD | NEW |