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

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

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