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

Side by Side Diff: content/plugin/webplugin_proxy.cc

Issue 254763005: Move some content url constants to /url. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolve a merge conflict. Created 6 years, 7 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
« no previous file with comments | « content/common/savable_url_schemes.cc ('k') | content/public/common/url_constants.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/plugin/webplugin_proxy.h" 5 #include "content/plugin/webplugin_proxy.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 unsigned int len, 281 unsigned int len,
282 int notify_id, 282 int notify_id,
283 bool popups_allowed, 283 bool popups_allowed,
284 bool notify_redirects) { 284 bool notify_redirects) {
285 if (!target && (0 == base::strcasecmp(method, "GET"))) { 285 if (!target && (0 == base::strcasecmp(method, "GET"))) {
286 // Please refer to https://bugzilla.mozilla.org/show_bug.cgi?id=366082 286 // Please refer to https://bugzilla.mozilla.org/show_bug.cgi?id=366082
287 // for more details on this. 287 // for more details on this.
288 if (delegate_->GetQuirks() & 288 if (delegate_->GetQuirks() &
289 WebPluginDelegateImpl::PLUGIN_QUIRK_BLOCK_NONSTANDARD_GETURL_REQUESTS) { 289 WebPluginDelegateImpl::PLUGIN_QUIRK_BLOCK_NONSTANDARD_GETURL_REQUESTS) {
290 GURL request_url(url); 290 GURL request_url(url);
291 if (!request_url.SchemeIs(kHttpScheme) && 291 if (!request_url.SchemeIs(url::kHttpScheme) &&
292 !request_url.SchemeIs(kHttpsScheme) && 292 !request_url.SchemeIs(url::kHttpsScheme) &&
293 !request_url.SchemeIs(kFtpScheme)) { 293 !request_url.SchemeIs(kFtpScheme)) {
294 return; 294 return;
295 } 295 }
296 } 296 }
297 } 297 }
298 298
299 PluginHostMsg_URLRequest_Params params; 299 PluginHostMsg_URLRequest_Params params;
300 params.url = url; 300 params.url = url;
301 params.method = method; 301 params.method = method;
302 if (target) 302 if (target)
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 int input_type; 611 int input_type;
612 gfx::Rect caret_rect; 612 gfx::Rect caret_rect;
613 if (!delegate_->GetIMEStatus(&input_type, &caret_rect)) 613 if (!delegate_->GetIMEStatus(&input_type, &caret_rect))
614 return; 614 return;
615 615
616 Send(new PluginHostMsg_NotifyIMEStatus(route_id_, input_type, caret_rect)); 616 Send(new PluginHostMsg_NotifyIMEStatus(route_id_, input_type, caret_rect));
617 } 617 }
618 #endif 618 #endif
619 619
620 } // namespace content 620 } // namespace content
OLDNEW
« no previous file with comments | « content/common/savable_url_schemes.cc ('k') | content/public/common/url_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698