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

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

Issue 182383008: Create chrome://serviceworker-internals (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix GetInfo / const stuff Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2014 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_info.h"
6
7 namespace content {
8
9 ServiceWorkerVersionInfo::ServiceWorkerVersionInfo()
10 : is_null(true),
11 status(ServiceWorkerVersion::STOPPED),
12 process_id(-1),
13 thread_id(-1) {}
14
15 ServiceWorkerVersionInfo::ServiceWorkerVersionInfo(
16 ServiceWorkerVersion::Status status,
17 int process_id,
18 int thread_id)
19 : is_null(false),
20 status(status),
21 process_id(process_id),
22 thread_id(thread_id) {}
23 ServiceWorkerVersionInfo::~ServiceWorkerVersionInfo() {}
24
25 ServiceWorkerRegistrationInfo::ServiceWorkerRegistrationInfo(
26 const GURL& script_url,
27 const GURL& pattern,
28 const ServiceWorkerVersionInfo& active_version,
29 const ServiceWorkerVersionInfo& pending_version)
30 : script_url(script_url),
31 pattern(pattern),
32 active_version(active_version),
33 pending_version(pending_version) {}
34
35 ServiceWorkerRegistrationInfo& ServiceWorkerRegistrationInfo::operator=(
36 const ServiceWorkerRegistrationInfo& other) {
37 script_url = other.script_url;
38 pattern = other.pattern;
39 active_version = other.active_version;
40 pending_version = other.pending_version;
41 return *this;
42 }
43
44 ServiceWorkerRegistrationInfo::~ServiceWorkerRegistrationInfo() {}
45
46 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698