| OLD | NEW | 
|---|
|  | (Empty) | 
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |  | 
| 2 // Use of this source code is governed by a BSD-style license that can be |  | 
| 3 // found in the LICENSE file. |  | 
| 4 |  | 
| 5 #include "content/browser/service_worker/service_worker_context.h" |  | 
| 6 |  | 
| 7 #include "base/command_line.h" |  | 
| 8 #include "base/files/file_path.h" |  | 
| 9 #include "content/public/common/content_switches.h" |  | 
| 10 #include "webkit/browser/quota/quota_manager.h" |  | 
| 11 |  | 
| 12 namespace content { |  | 
| 13 |  | 
| 14 const base::FilePath::CharType kServiceWorkerDirectory[] = |  | 
| 15     FILE_PATH_LITERAL("ServiceWorker"); |  | 
| 16 |  | 
| 17 ServiceWorkerContext::ServiceWorkerContext( |  | 
| 18     const base::FilePath& path, |  | 
| 19     quota::QuotaManagerProxy* quota_manager_proxy) |  | 
| 20     : quota_manager_proxy_(quota_manager_proxy) { |  | 
| 21   if (!path.empty()) |  | 
| 22     path_ = path.Append(kServiceWorkerDirectory); |  | 
| 23 } |  | 
| 24 |  | 
| 25 bool ServiceWorkerContext::IsEnabled() { |  | 
| 26   return CommandLine::ForCurrentProcess()->HasSwitch( |  | 
| 27       switches::kEnableServiceWorker); |  | 
| 28 } |  | 
| 29 |  | 
| 30 ServiceWorkerContext::~ServiceWorkerContext() {} |  | 
| 31 |  | 
| 32 }  // namespace content |  | 
| OLD | NEW | 
|---|