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

Side by Side Diff: content/child/npapi/plugin_url_fetcher.cc

Issue 183993004: Tease apart ServiceWorkerNetworkProvider from other stuff. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months 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 | « no previous file | content/child/request_extra_data.h » ('j') | content/child/request_extra_data.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "content/child/npapi/plugin_url_fetcher.h" 5 #include "content/child/npapi/plugin_url_fetcher.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "content/child/child_thread.h" 8 #include "content/child/child_thread.h"
9 #include "content/child/npapi/webplugin.h" 9 #include "content/child/npapi/webplugin.h"
10 #include "content/child/npapi/plugin_host.h" 10 #include "content/child/npapi/plugin_host.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 render_frame_id, 112 render_frame_id,
113 false, 113 false,
114 -1, 114 -1,
115 GURL(), 115 GURL(),
116 false, 116 false,
117 -1, 117 -1,
118 true, 118 true,
119 PAGE_TRANSITION_LINK, 119 PAGE_TRANSITION_LINK,
120 false, 120 false,
121 -1, 121 -1,
122 -1,
122 -1); 123 -1);
123 124
124 request_info.extra_data = &extra_data; 125 request_info.extra_data = &extra_data;
125 126
126 std::vector<char> body; 127 std::vector<char> body;
127 if (method == "POST") { 128 if (method == "POST") {
128 bool content_type_found = false; 129 bool content_type_found = false;
129 std::vector<std::string> names; 130 std::vector<std::string> names;
130 std::vector<std::string> values; 131 std::vector<std::string> values;
131 PluginHost::SetPostData(buf, len, &names, &values, &body); 132 PluginHost::SetPostData(buf, len, &names, &values, &body);
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 } 352 }
352 353
353 if (error_code == net::OK) { 354 if (error_code == net::OK) {
354 plugin_stream_->DidFinishLoading(resource_id_); 355 plugin_stream_->DidFinishLoading(resource_id_);
355 } else { 356 } else {
356 plugin_stream_->DidFail(resource_id_); 357 plugin_stream_->DidFail(resource_id_);
357 } 358 }
358 } 359 }
359 360
360 } // namespace content 361 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/child/request_extra_data.h » ('j') | content/child/request_extra_data.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698