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

Side by Side Diff: chrome/common/chrome_content_client.cc

Issue 1192003006: Cache Storage: restrict access to secure origins (Chromium-side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add chrome-search scheme to secure scheme list Created 5 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
« no previous file with comments | « no previous file | content/browser/bad_message.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 "chrome/common/chrome_content_client.h" 5 #include "chrome/common/chrome_content_client.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/debug/crash_logging.h" 8 #include "base/debug/crash_logging.h"
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/json/json_reader.h" 10 #include "base/json/json_reader.h"
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 return true; 543 return true;
544 } 544 }
545 #endif 545 #endif
546 return false; 546 return false;
547 } 547 }
548 #endif 548 #endif
549 549
550 void ChromeContentClient::AddSecureSchemesAndOrigins( 550 void ChromeContentClient::AddSecureSchemesAndOrigins(
551 std::set<std::string>* schemes, 551 std::set<std::string>* schemes,
552 std::set<GURL>* origins) { 552 std::set<GURL>* origins) {
553 schemes->insert(chrome::kChromeSearchScheme);
553 schemes->insert(content::kChromeUIScheme); 554 schemes->insert(content::kChromeUIScheme);
554 schemes->insert(extensions::kExtensionScheme); 555 schemes->insert(extensions::kExtensionScheme);
555 schemes->insert(extensions::kExtensionResourceScheme); 556 schemes->insert(extensions::kExtensionResourceScheme);
556 GetSecureOriginWhitelist(origins); 557 GetSecureOriginWhitelist(origins);
557 } 558 }
OLDNEW
« no previous file with comments | « no previous file | content/browser/bad_message.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698