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

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

Issue 318753007: Remove stale references to PlatformFile flags, errors or functions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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"
11 #include "base/platform_file.h"
12 #include "base/stl_util.h" 11 #include "base/stl_util.h"
13 #include "base/strings/string_util.h" 12 #include "base/strings/string_util.h"
14 #include "content/browser/plugin_process_host.h" 13 #include "content/browser/plugin_process_host.h"
15 #include "content/browser/site_instance_impl.h" 14 #include "content/browser/site_instance_impl.h"
16 #include "content/public/browser/child_process_data.h" 15 #include "content/public/browser/child_process_data.h"
17 #include "content/public/browser/content_browser_client.h" 16 #include "content/public/browser/content_browser_client.h"
18 #include "content/public/browser/render_process_host.h" 17 #include "content/public/browser/render_process_host.h"
19 #include "content/public/common/bindings_policy.h" 18 #include "content/public/common/bindings_policy.h"
20 #include "content/public/common/content_switches.h" 19 #include "content/public/common/content_switches.h"
21 #include "content/public/common/url_constants.h" 20 #include "content/public/common/url_constants.h"
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 return can_read_raw_cookies_; 266 return can_read_raw_cookies_;
268 } 267 }
269 268
270 bool can_send_midi_sysex() const { 269 bool can_send_midi_sysex() const {
271 return can_send_midi_sysex_; 270 return can_send_midi_sysex_;
272 } 271 }
273 272
274 private: 273 private:
275 typedef std::map<std::string, bool> SchemeMap; 274 typedef std::map<std::string, bool> SchemeMap;
276 275
277 typedef int FilePermissionFlags; // bit-set of PlatformFileFlags 276 typedef int FilePermissionFlags; // bit-set of base::File::Flags
278 typedef std::map<base::FilePath, FilePermissionFlags> FileMap; 277 typedef std::map<base::FilePath, FilePermissionFlags> FileMap;
279 typedef std::map<std::string, FilePermissionFlags> FileSystemMap; 278 typedef std::map<std::string, FilePermissionFlags> FileSystemMap;
280 typedef std::set<base::FilePath> FileSet; 279 typedef std::set<base::FilePath> FileSet;
281 280
282 // Maps URL schemes to whether permission has been granted or revoked: 281 // Maps URL schemes to whether permission has been granted or revoked:
283 // |true| means the scheme has been granted. 282 // |true| means the scheme has been granted.
284 // |false| means the scheme has been revoked. 283 // |false| means the scheme has been revoked.
285 // If a scheme is not present in the map, then it has never been granted 284 // If a scheme is not present in the map, then it has never been granted
286 // or revoked. 285 // or revoked.
287 SchemeMap scheme_policy_; 286 SchemeMap scheme_policy_;
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
885 base::AutoLock lock(lock_); 884 base::AutoLock lock(lock_);
886 885
887 SecurityStateMap::iterator state = security_state_.find(child_id); 886 SecurityStateMap::iterator state = security_state_.find(child_id);
888 if (state == security_state_.end()) 887 if (state == security_state_.end())
889 return false; 888 return false;
890 889
891 return state->second->can_send_midi_sysex(); 890 return state->second->can_send_midi_sysex();
892 } 891 }
893 892
894 } // namespace content 893 } // namespace content
OLDNEW
« no previous file with comments | « chrome/installer/test/alternate_version_generator.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