| 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/pepper_url_loader.h" | 5 #include "webkit/glue/plugins/pepper_url_loader.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "third_party/ppapi/c/pp_completion_callback.h" | 8 #include "ppapi/c/pp_completion_callback.h" |
| 9 #include "third_party/ppapi/c/pp_errors.h" | 9 #include "ppapi/c/pp_errors.h" |
| 10 #include "third_party/ppapi/c/dev/ppb_url_loader_dev.h" | 10 #include "ppapi/c/dev/ppb_url_loader_dev.h" |
| 11 #include "third_party/ppapi/c/dev/ppb_url_loader_trusted_dev.h" | 11 #include "ppapi/c/dev/ppb_url_loader_trusted_dev.h" |
| 12 #include "third_party/WebKit/WebKit/chromium/public/WebDocument.h" | 12 #include "third_party/WebKit/WebKit/chromium/public/WebDocument.h" |
| 13 #include "third_party/WebKit/WebKit/chromium/public/WebElement.h" | 13 #include "third_party/WebKit/WebKit/chromium/public/WebElement.h" |
| 14 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" | 14 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" |
| 15 #include "third_party/WebKit/WebKit/chromium/public/WebKit.h" | 15 #include "third_party/WebKit/WebKit/chromium/public/WebKit.h" |
| 16 #include "third_party/WebKit/WebKit/chromium/public/WebKitClient.h" | 16 #include "third_party/WebKit/WebKit/chromium/public/WebKitClient.h" |
| 17 #include "third_party/WebKit/WebKit/chromium/public/WebPluginContainer.h" | 17 #include "third_party/WebKit/WebKit/chromium/public/WebPluginContainer.h" |
| 18 #include "third_party/WebKit/WebKit/chromium/public/WebSecurityOrigin.h" | 18 #include "third_party/WebKit/WebKit/chromium/public/WebSecurityOrigin.h" |
| 19 #include "third_party/WebKit/WebKit/chromium/public/WebURLRequest.h" | 19 #include "third_party/WebKit/WebKit/chromium/public/WebURLRequest.h" |
| 20 #include "third_party/WebKit/WebKit/chromium/public/WebURLResponse.h" | 20 #include "third_party/WebKit/WebKit/chromium/public/WebURLResponse.h" |
| 21 #include "webkit/appcache/web_application_cache_host_impl.h" | 21 #include "webkit/appcache/web_application_cache_host_impl.h" |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 std::copy(buffer_.begin(), buffer_.begin() + bytes_to_copy, user_buffer_); | 370 std::copy(buffer_.begin(), buffer_.begin() + bytes_to_copy, user_buffer_); |
| 371 buffer_.erase(buffer_.begin(), buffer_.begin() + bytes_to_copy); | 371 buffer_.erase(buffer_.begin(), buffer_.begin() + bytes_to_copy); |
| 372 | 372 |
| 373 // Reset for next time. | 373 // Reset for next time. |
| 374 user_buffer_ = NULL; | 374 user_buffer_ = NULL; |
| 375 user_buffer_size_ = 0; | 375 user_buffer_size_ = 0; |
| 376 return bytes_to_copy; | 376 return bytes_to_copy; |
| 377 } | 377 } |
| 378 | 378 |
| 379 } // namespace pepper | 379 } // namespace pepper |
| OLD | NEW |