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

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

Issue 182383008: Create chrome://serviceworker-internals (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nits 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 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_
7
8 #include <vector>
9
10 #include "content/browser/service_worker/service_worker_version.h"
11 #include "url/gurl.h"
12
13 namespace content {
14
15 class ServiceWorkerVersionInfo {
16 public:
17 ServiceWorkerVersionInfo();
18 ServiceWorkerVersionInfo(ServiceWorkerVersion::Status status,
19 int process_id,
20 int thread_id);
21 ~ServiceWorkerVersionInfo();
22
23 bool is_null;
24 ServiceWorkerVersion::Status status;
25 int process_id;
26 int thread_id;
27 };
28
29 class ServiceWorkerRegistrationInfo {
30 public:
31 ServiceWorkerRegistrationInfo(
32 const GURL& script_url,
33 const GURL& pattern,
34 const ServiceWorkerVersionInfo& active_version,
35 const ServiceWorkerVersionInfo& pending_version_);
kinuko 2014/03/07 02:19:09 nit: pending_version_ -> pending_version (no trail
36 ServiceWorkerRegistrationInfo& operator=(
37 const ServiceWorkerRegistrationInfo& other);
38 ~ServiceWorkerRegistrationInfo();
39
40 GURL script_url;
41 GURL pattern;
42
43 ServiceWorkerVersionInfo active_version;
44 ServiceWorkerVersionInfo pending_version;
45 };
46
47 } // namespace content
48
49 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698