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; |
99 if (!MultipartResponseDelegate::ReadContentRanges( | 100 if (!MultipartResponseDelegate::ReadContentRanges( |
100 response, | 101 response, |
101 &byte_range_lower_bound_, | 102 &byte_range_lower_bound_, |
102 &byte_range_upper_bound_)) { | 103 &byte_range_upper_bound_, |
| 104 &instance_size)) { |
103 NOTREACHED(); | 105 NOTREACHED(); |
104 return; | 106 return; |
105 } | 107 } |
106 | 108 |
107 resource_response_ = response; | 109 resource_response_ = response; |
108 } | 110 } |
109 | 111 |
110 // Receives individual part data from a multipart response. | 112 // Receives individual part data from a multipart response. |
111 virtual void didReceiveData( | 113 virtual void didReceiveData( |
112 WebURLLoader*, const char* data, int data_size) { | 114 WebURLLoader*, const char* data, int data_size) { |
(...skipping 1257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1370 WebDevToolsAgent* WebPluginImpl::GetDevToolsAgent() { | 1372 WebDevToolsAgent* WebPluginImpl::GetDevToolsAgent() { |
1371 if (!webframe_) | 1373 if (!webframe_) |
1372 return NULL; | 1374 return NULL; |
1373 WebView* view = webframe_->view(); | 1375 WebView* view = webframe_->view(); |
1374 if (!view) | 1376 if (!view) |
1375 return NULL; | 1377 return NULL; |
1376 return view->devToolsAgent(); | 1378 return view->devToolsAgent(); |
1377 } | 1379 } |
1378 | 1380 |
1379 } // namespace webkit_glue | 1381 } // namespace webkit_glue |
OLD | NEW |