OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/plugin/chrome_plugin_host.h" | 5 #include "chrome/plugin/chrome_plugin_host.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 const ResourceResponseInfo& info, | 80 const ResourceResponseInfo& info, |
81 bool* has_new_first_party_for_cookies, | 81 bool* has_new_first_party_for_cookies, |
82 GURL* new_first_party_for_cookies) { | 82 GURL* new_first_party_for_cookies) { |
83 plugin_->functions().response_funcs->received_redirect( | 83 plugin_->functions().response_funcs->received_redirect( |
84 cprequest_.get(), new_url.spec().c_str()); | 84 cprequest_.get(), new_url.spec().c_str()); |
85 // TODO(wtc): should we return a new first party for cookies URL? | 85 // TODO(wtc): should we return a new first party for cookies URL? |
86 *has_new_first_party_for_cookies = false; | 86 *has_new_first_party_for_cookies = false; |
87 return true; | 87 return true; |
88 } | 88 } |
89 | 89 |
90 virtual void OnReceivedResponse( | 90 virtual void OnReceivedResponse(const ResourceResponseInfo& info) { |
91 const ResourceResponseInfo& info, | |
92 bool content_filtered) { | |
93 response_headers_ = info.headers; | 91 response_headers_ = info.headers; |
94 plugin_->functions().response_funcs->start_completed( | 92 plugin_->functions().response_funcs->start_completed( |
95 cprequest_.get(), CPERR_SUCCESS); | 93 cprequest_.get(), CPERR_SUCCESS); |
96 } | 94 } |
97 | 95 |
98 virtual void OnDownloadedData(int len) { | 96 virtual void OnDownloadedData(int len) { |
99 } | 97 } |
100 | 98 |
101 virtual void OnReceivedData(const char* data, int len) { | 99 virtual void OnReceivedData(const char* data, int len) { |
102 response_data_.append(data, len); | 100 response_data_.append(data, len); |
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
724 | 722 |
725 response_funcs.size = sizeof(response_funcs); | 723 response_funcs.size = sizeof(response_funcs); |
726 response_funcs.received_redirect = CPRR_ReceivedRedirect; | 724 response_funcs.received_redirect = CPRR_ReceivedRedirect; |
727 response_funcs.start_completed = CPRR_StartCompleted; | 725 response_funcs.start_completed = CPRR_StartCompleted; |
728 response_funcs.read_completed = CPRR_ReadCompleted; | 726 response_funcs.read_completed = CPRR_ReadCompleted; |
729 response_funcs.upload_progress = CPRR_UploadProgress; | 727 response_funcs.upload_progress = CPRR_UploadProgress; |
730 } | 728 } |
731 | 729 |
732 return &browser_funcs; | 730 return &browser_funcs; |
733 } | 731 } |
OLD | NEW |