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

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

Issue 23658056: content: Move kHttpScheme constant into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | « 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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 unsigned int len, 314 unsigned int len,
315 int notify_id, 315 int notify_id,
316 bool popups_allowed, 316 bool popups_allowed,
317 bool notify_redirects) { 317 bool notify_redirects) {
318 if (!target && (0 == base::strcasecmp(method, "GET"))) { 318 if (!target && (0 == base::strcasecmp(method, "GET"))) {
319 // Please refer to https://bugzilla.mozilla.org/show_bug.cgi?id=366082 319 // Please refer to https://bugzilla.mozilla.org/show_bug.cgi?id=366082
320 // for more details on this. 320 // for more details on this.
321 if (delegate_->GetQuirks() & 321 if (delegate_->GetQuirks() &
322 WebPluginDelegateImpl::PLUGIN_QUIRK_BLOCK_NONSTANDARD_GETURL_REQUESTS) { 322 WebPluginDelegateImpl::PLUGIN_QUIRK_BLOCK_NONSTANDARD_GETURL_REQUESTS) {
323 GURL request_url(url); 323 GURL request_url(url);
324 if (!request_url.SchemeIs(chrome::kHttpScheme) && 324 if (!request_url.SchemeIs(kHttpScheme) &&
325 !request_url.SchemeIs(kHttpsScheme) && 325 !request_url.SchemeIs(kHttpsScheme) &&
326 !request_url.SchemeIs(chrome::kFtpScheme)) { 326 !request_url.SchemeIs(chrome::kFtpScheme)) {
327 return; 327 return;
328 } 328 }
329 } 329 }
330 } 330 }
331 331
332 PluginHostMsg_URLRequest_Params params; 332 PluginHostMsg_URLRequest_Params params;
333 params.url = url; 333 params.url = url;
334 params.method = method; 334 params.method = method;
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 int input_type; 709 int input_type;
710 gfx::Rect caret_rect; 710 gfx::Rect caret_rect;
711 if (!delegate_->GetIMEStatus(&input_type, &caret_rect)) 711 if (!delegate_->GetIMEStatus(&input_type, &caret_rect))
712 return; 712 return;
713 713
714 Send(new PluginHostMsg_NotifyIMEStatus(route_id_, input_type, caret_rect)); 714 Send(new PluginHostMsg_NotifyIMEStatus(route_id_, input_type, caret_rect));
715 } 715 }
716 #endif 716 #endif
717 717
718 } // namespace content 718 } // 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