| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "webkit/glue/plugins/webplugin_impl.h" | 5 #include "webkit/glue/plugins/webplugin_impl.h" |
| 6 | 6 |
| 7 #include "base/linked_ptr.h" | 7 #include "base/linked_ptr.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 | 89 |
| 90 virtual void willSendRequest( | 90 virtual void willSendRequest( |
| 91 WebURLLoader*, WebURLRequest&, const WebURLResponse&) {} | 91 WebURLLoader*, WebURLRequest&, const WebURLResponse&) {} |
| 92 virtual void didSendData( | 92 virtual void didSendData( |
| 93 WebURLLoader*, unsigned long long, unsigned long long) {} | 93 WebURLLoader*, unsigned long long, unsigned long long) {} |
| 94 | 94 |
| 95 // Called when the multipart parser encounters an embedded multipart | 95 // Called when the multipart parser encounters an embedded multipart |
| 96 // response. | 96 // response. |
| 97 virtual void didReceiveResponse( | 97 virtual void didReceiveResponse( |
| 98 WebURLLoader*, const WebURLResponse& response) { | 98 WebURLLoader*, const WebURLResponse& response) { |
| 99 int instance_size; | |
| 100 if (!MultipartResponseDelegate::ReadContentRanges( | 99 if (!MultipartResponseDelegate::ReadContentRanges( |
| 101 response, | 100 response, |
| 102 &byte_range_lower_bound_, | 101 &byte_range_lower_bound_, |
| 103 &byte_range_upper_bound_, | 102 &byte_range_upper_bound_)) { |
| 104 &instance_size)) { | |
| 105 NOTREACHED(); | 103 NOTREACHED(); |
| 106 return; | 104 return; |
| 107 } | 105 } |
| 108 | 106 |
| 109 resource_response_ = response; | 107 resource_response_ = response; |
| 110 } | 108 } |
| 111 | 109 |
| 112 // Receives individual part data from a multipart response. | 110 // Receives individual part data from a multipart response. |
| 113 virtual void didReceiveData( | 111 virtual void didReceiveData( |
| 114 WebURLLoader*, const char* data, int data_size) { | 112 WebURLLoader*, const char* data, int data_size) { |
| (...skipping 1257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1372 WebDevToolsAgent* WebPluginImpl::GetDevToolsAgent() { | 1370 WebDevToolsAgent* WebPluginImpl::GetDevToolsAgent() { |
| 1373 if (!webframe_) | 1371 if (!webframe_) |
| 1374 return NULL; | 1372 return NULL; |
| 1375 WebView* view = webframe_->view(); | 1373 WebView* view = webframe_->view(); |
| 1376 if (!view) | 1374 if (!view) |
| 1377 return NULL; | 1375 return NULL; |
| 1378 return view->devToolsAgent(); | 1376 return view->devToolsAgent(); |
| 1379 } | 1377 } |
| 1380 | 1378 |
| 1381 } // namespace webkit_glue | 1379 } // namespace webkit_glue |
| OLD | NEW |