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

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: Add ServiceWorker*Info classes 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