OLD | NEW |
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 "chrome/browser/browsing_data_helper.h" | 5 #include "chrome/browser/browsing_data/browsing_data_helper.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "chrome/browser/extensions/extension_special_storage_policy.h" | 9 #include "chrome/browser/extensions/extension_special_storage_policy.h" |
10 #include "chrome/common/chrome_switches.h" | 10 #include "chrome/common/chrome_switches.h" |
11 #include "chrome/common/url_constants.h" | 11 #include "chrome/common/url_constants.h" |
12 #include "content/public/browser/child_process_security_policy.h" | 12 #include "content/public/browser/child_process_security_policy.h" |
13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
15 | 15 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 return true; | 72 return true; |
73 | 73 |
74 // Hosted applications (protected and websafe origins) iff PROTECTED_WEB. | 74 // Hosted applications (protected and websafe origins) iff PROTECTED_WEB. |
75 if (policy->IsStorageProtected(origin.GetOrigin()) && | 75 if (policy->IsStorageProtected(origin.GetOrigin()) && |
76 BrowsingDataHelper::HasWebScheme(origin.GetOrigin()) && | 76 BrowsingDataHelper::HasWebScheme(origin.GetOrigin()) && |
77 origin_set_mask & PROTECTED_WEB) | 77 origin_set_mask & PROTECTED_WEB) |
78 return true; | 78 return true; |
79 | 79 |
80 return false; | 80 return false; |
81 } | 81 } |
OLD | NEW |