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

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

Issue 326003: Make GetURLForDebugging return a const GURL (Closed)
Patch Set: no const 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
« 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 cprequest_.get(), CPERR_FAILURE); 111 cprequest_.get(), CPERR_FAILURE);
112 } 112 }
113 } else if (read_buffer_) { 113 } else if (read_buffer_) {
114 // The plugin was waiting for more data. Inform him we're done. 114 // The plugin was waiting for more data. Inform him we're done.
115 read_buffer_ = NULL; 115 read_buffer_ = NULL;
116 plugin_->functions().response_funcs->read_completed( 116 plugin_->functions().response_funcs->read_completed(
117 cprequest_.get(), CPERR_SUCCESS); 117 cprequest_.get(), CPERR_SUCCESS);
118 } 118 }
119 } 119 }
120 120
121 virtual std::string GetURLForDebugging() { 121 virtual GURL GetURLForDebugging() const {
122 return cprequest_->url; 122 return GURL(cprequest_->url);
123 } 123 }
124 124
125 void set_extra_headers(const std::string& headers) { 125 void set_extra_headers(const std::string& headers) {
126 extra_headers_ = headers; 126 extra_headers_ = headers;
127 } 127 }
128 void set_load_flags(uint32 flags) { 128 void set_load_flags(uint32 flags) {
129 load_flags_ = flags; 129 load_flags_ = flags;
130 } 130 }
131 void set_sync(bool sync) { 131 void set_sync(bool sync) {
132 sync_ = sync; 132 sync_ = sync;
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 683
684 response_funcs.size = sizeof(response_funcs); 684 response_funcs.size = sizeof(response_funcs);
685 response_funcs.received_redirect = CPRR_ReceivedRedirect; 685 response_funcs.received_redirect = CPRR_ReceivedRedirect;
686 response_funcs.start_completed = CPRR_StartCompleted; 686 response_funcs.start_completed = CPRR_StartCompleted;
687 response_funcs.read_completed = CPRR_ReadCompleted; 687 response_funcs.read_completed = CPRR_ReadCompleted;
688 response_funcs.upload_progress = CPRR_UploadProgress; 688 response_funcs.upload_progress = CPRR_UploadProgress;
689 } 689 }
690 690
691 return &browser_funcs; 691 return &browser_funcs;
692 } 692 }
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