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

Side by Side Diff: content/browser/child_process_security_policy_impl.cc

Issue 191293009: Cleanup: Move kAboutScheme constant into content namespace. (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
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/browser/child_process_security_policy_impl.h" 5 #include "content/browser/child_process_security_policy_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 // We know about these schemes and believe them to be safe. 310 // We know about these schemes and believe them to be safe.
311 RegisterWebSafeScheme(kHttpScheme); 311 RegisterWebSafeScheme(kHttpScheme);
312 RegisterWebSafeScheme(kHttpsScheme); 312 RegisterWebSafeScheme(kHttpsScheme);
313 RegisterWebSafeScheme(kFtpScheme); 313 RegisterWebSafeScheme(kFtpScheme);
314 RegisterWebSafeScheme(kDataScheme); 314 RegisterWebSafeScheme(kDataScheme);
315 RegisterWebSafeScheme("feed"); 315 RegisterWebSafeScheme("feed");
316 RegisterWebSafeScheme(kBlobScheme); 316 RegisterWebSafeScheme(kBlobScheme);
317 RegisterWebSafeScheme(kFileSystemScheme); 317 RegisterWebSafeScheme(kFileSystemScheme);
318 318
319 // We know about the following pseudo schemes and treat them specially. 319 // We know about the following pseudo schemes and treat them specially.
320 RegisterPseudoScheme(chrome::kAboutScheme); 320 RegisterPseudoScheme(kAboutScheme);
321 RegisterPseudoScheme(kJavaScriptScheme); 321 RegisterPseudoScheme(kJavaScriptScheme);
322 RegisterPseudoScheme(kViewSourceScheme); 322 RegisterPseudoScheme(kViewSourceScheme);
323 } 323 }
324 324
325 ChildProcessSecurityPolicyImpl::~ChildProcessSecurityPolicyImpl() { 325 ChildProcessSecurityPolicyImpl::~ChildProcessSecurityPolicyImpl() {
326 web_safe_schemes_.clear(); 326 web_safe_schemes_.clear();
327 pseudo_schemes_.clear(); 327 pseudo_schemes_.clear();
328 STLDeleteContainerPairSecondPointers(security_state_.begin(), 328 STLDeleteContainerPairSecondPointers(security_state_.begin(),
329 security_state_.end()); 329 security_state_.end());
330 security_state_.clear(); 330 security_state_.clear();
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
875 base::AutoLock lock(lock_); 875 base::AutoLock lock(lock_);
876 876
877 SecurityStateMap::iterator state = security_state_.find(child_id); 877 SecurityStateMap::iterator state = security_state_.find(child_id);
878 if (state == security_state_.end()) 878 if (state == security_state_.end())
879 return false; 879 return false;
880 880
881 return state->second->can_send_midi_sysex(); 881 return state->second->can_send_midi_sysex();
882 } 882 }
883 883
884 } // namespace content 884 } // namespace content
OLDNEW
« no previous file with comments | « chrome/utility/importer/bookmarks_file_importer.cc ('k') | content/browser/child_process_security_policy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698