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

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

Issue 1192013003: [Extension ServiceWorkers] Allow service worker registration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Took out extra reload Created 5 years, 5 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
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 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 #endif 578 #endif
579 579
580 void ChromeContentClient::AddSecureSchemesAndOrigins( 580 void ChromeContentClient::AddSecureSchemesAndOrigins(
581 std::set<std::string>* schemes, 581 std::set<std::string>* schemes,
582 std::set<GURL>* origins) { 582 std::set<GURL>* origins) {
583 schemes->insert(content::kChromeUIScheme); 583 schemes->insert(content::kChromeUIScheme);
584 schemes->insert(extensions::kExtensionScheme); 584 schemes->insert(extensions::kExtensionScheme);
585 schemes->insert(extensions::kExtensionResourceScheme); 585 schemes->insert(extensions::kExtensionResourceScheme);
586 GetSecureOriginWhitelist(origins); 586 GetSecureOriginWhitelist(origins);
587 } 587 }
588
589 void ChromeContentClient::AddServiceWorkerSchemes(
590 std::set<std::string>* schemes) {
591 schemes->insert(extensions::kExtensionScheme);
592 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698