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

Side by Side Diff: content/browser/service_worker/service_worker_context.cc

Issue 61023005: service worker scaffolding (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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
(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
OLDNEW
« no previous file with comments | « content/browser/service_worker/service_worker_context.h ('k') | content/browser/service_worker/service_worker_context_core.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698