Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(591)

Side by Side Diff: chrome/plugin/chrome_plugin_host.cc

Issue 405011: Use an explicit boolean has_new_first_party_for_cookies instead... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Upload before checkin Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/security_filter_peer.cc ('k') | webkit/glue/media/buffered_data_source.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 virtual void OnUploadProgress(uint64 position, uint64 size) { 62 virtual void OnUploadProgress(uint64 position, uint64 size) {
63 CPRR_UploadProgressFunc upload_progress = 63 CPRR_UploadProgressFunc upload_progress =
64 plugin_->functions().response_funcs->upload_progress; 64 plugin_->functions().response_funcs->upload_progress;
65 if (upload_progress) 65 if (upload_progress)
66 upload_progress(cprequest_.get(), position, size); 66 upload_progress(cprequest_.get(), position, size);
67 } 67 }
68 68
69 virtual bool OnReceivedRedirect( 69 virtual bool OnReceivedRedirect(
70 const GURL& new_url, 70 const GURL& new_url,
71 const ResourceLoaderBridge::ResponseInfo& info, 71 const ResourceLoaderBridge::ResponseInfo& info,
72 bool* has_new_first_party_for_cookies,
72 GURL* new_first_party_for_cookies) { 73 GURL* new_first_party_for_cookies) {
73 plugin_->functions().response_funcs->received_redirect( 74 plugin_->functions().response_funcs->received_redirect(
74 cprequest_.get(), new_url.spec().c_str()); 75 cprequest_.get(), new_url.spec().c_str());
75 *new_first_party_for_cookies = GURL(); 76 // TODO(wtc): should we return a new first party for cookies URL?
77 *has_new_first_party_for_cookies = false;
76 return true; 78 return true;
77 } 79 }
78 80
79 virtual void OnReceivedResponse( 81 virtual void OnReceivedResponse(
80 const ResourceLoaderBridge::ResponseInfo& info, 82 const ResourceLoaderBridge::ResponseInfo& info,
81 bool content_filtered) { 83 bool content_filtered) {
82 response_headers_ = info.headers; 84 response_headers_ = info.headers;
83 plugin_->functions().response_funcs->start_completed( 85 plugin_->functions().response_funcs->start_completed(
84 cprequest_.get(), CPERR_SUCCESS); 86 cprequest_.get(), CPERR_SUCCESS);
85 } 87 }
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 705
704 response_funcs.size = sizeof(response_funcs); 706 response_funcs.size = sizeof(response_funcs);
705 response_funcs.received_redirect = CPRR_ReceivedRedirect; 707 response_funcs.received_redirect = CPRR_ReceivedRedirect;
706 response_funcs.start_completed = CPRR_StartCompleted; 708 response_funcs.start_completed = CPRR_StartCompleted;
707 response_funcs.read_completed = CPRR_ReadCompleted; 709 response_funcs.read_completed = CPRR_ReadCompleted;
708 response_funcs.upload_progress = CPRR_UploadProgress; 710 response_funcs.upload_progress = CPRR_UploadProgress;
709 } 711 }
710 712
711 return &browser_funcs; 713 return &browser_funcs;
712 } 714 }
OLDNEW
« no previous file with comments | « chrome/common/security_filter_peer.cc ('k') | webkit/glue/media/buffered_data_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698