| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 | 88 |
| 89 virtual void willSendRequest( | 89 virtual void willSendRequest( |
| 90 WebURLLoader*, WebURLRequest&, const WebURLResponse&) {} | 90 WebURLLoader*, WebURLRequest&, const WebURLResponse&) {} |
| 91 virtual void didSendData( | 91 virtual void didSendData( |
| 92 WebURLLoader*, unsigned long long, unsigned long long) {} | 92 WebURLLoader*, unsigned long long, unsigned long long) {} |
| 93 | 93 |
| 94 // Called when the multipart parser encounters an embedded multipart | 94 // Called when the multipart parser encounters an embedded multipart |
| 95 // response. | 95 // response. |
| 96 virtual void didReceiveResponse( | 96 virtual void didReceiveResponse( |
| 97 WebURLLoader*, const WebURLResponse& response) { | 97 WebURLLoader*, const WebURLResponse& response) { |
| 98 int instance_size; |
| 98 if (!MultipartResponseDelegate::ReadContentRanges( | 99 if (!MultipartResponseDelegate::ReadContentRanges( |
| 99 response, | 100 response, |
| 100 &byte_range_lower_bound_, | 101 &byte_range_lower_bound_, |
| 101 &byte_range_upper_bound_)) { | 102 &byte_range_upper_bound_, |
| 103 &instance_size)) { |
| 102 NOTREACHED(); | 104 NOTREACHED(); |
| 103 return; | 105 return; |
| 104 } | 106 } |
| 105 | 107 |
| 106 resource_response_ = response; | 108 resource_response_ = response; |
| 107 } | 109 } |
| 108 | 110 |
| 109 // Receives individual part data from a multipart response. | 111 // Receives individual part data from a multipart response. |
| 110 virtual void didReceiveData( | 112 virtual void didReceiveData( |
| 111 WebURLLoader*, const char* data, int data_size) { | 113 WebURLLoader*, const char* data, int data_size) { |
| (...skipping 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1324 WebDevToolsAgent* WebPluginImpl::GetDevToolsAgent() { | 1326 WebDevToolsAgent* WebPluginImpl::GetDevToolsAgent() { |
| 1325 if (!webframe_) | 1327 if (!webframe_) |
| 1326 return NULL; | 1328 return NULL; |
| 1327 WebView* view = webframe_->view(); | 1329 WebView* view = webframe_->view(); |
| 1328 if (!view) | 1330 if (!view) |
| 1329 return NULL; | 1331 return NULL; |
| 1330 return view->devToolsAgent(); | 1332 return view->devToolsAgent(); |
| 1331 } | 1333 } |
| 1332 | 1334 |
| 1333 } // namespace webkit_glue | 1335 } // namespace webkit_glue |
| OLD | NEW |