Cast: Stop logging kVideoFrameSentToEncoder and rename a couple events.
[chromium-blink-merge.git] / content / browser / service_worker / service_worker_info.h
blob9d1a617ad6c248c1d9bc41110a6c54d814efbdd9
1 // Copyright 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.
5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_
8 #include <vector>
10 #include "content/browser/service_worker/service_worker_version.h"
11 #include "content/common/content_export.h"
12 #include "url/gurl.h"
14 namespace content {
16 class CONTENT_EXPORT ServiceWorkerVersionInfo {
17 public:
18 ServiceWorkerVersionInfo();
19 ServiceWorkerVersionInfo(ServiceWorkerVersion::RunningStatus running_status,
20 ServiceWorkerVersion::Status status,
21 int64 version_id,
22 int process_id,
23 int thread_id);
24 ~ServiceWorkerVersionInfo();
26 bool is_null;
27 ServiceWorkerVersion::RunningStatus running_status;
28 ServiceWorkerVersion::Status status;
29 int64 version_id;
30 int process_id;
31 int thread_id;
34 class CONTENT_EXPORT ServiceWorkerRegistrationInfo {
35 public:
36 ServiceWorkerRegistrationInfo();
37 ServiceWorkerRegistrationInfo(
38 const GURL& script_url,
39 const GURL& pattern,
40 const ServiceWorkerVersionInfo& active_version,
41 const ServiceWorkerVersionInfo& pending_version);
42 ~ServiceWorkerRegistrationInfo();
44 GURL script_url;
45 GURL pattern;
46 ServiceWorkerVersionInfo active_version;
47 ServiceWorkerVersionInfo pending_version;
50 } // namespace content
52 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_