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

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

Issue 2706923003: Add UMA for how long service workers run for. (Closed)
Patch Set: rebase Created 3 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <functional> 10 #include <functional>
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 int source_identifier, 127 int source_identifier,
128 int message_level, 128 int message_level,
129 const base::string16& message, 129 const base::string16& message,
130 int line_number, 130 int line_number,
131 const GURL& source_url) {} 131 const GURL& source_url) {}
132 virtual void OnControlleeAdded(ServiceWorkerVersion* version, 132 virtual void OnControlleeAdded(ServiceWorkerVersion* version,
133 ServiceWorkerProviderHost* provider_host) {} 133 ServiceWorkerProviderHost* provider_host) {}
134 virtual void OnControlleeRemoved(ServiceWorkerVersion* version, 134 virtual void OnControlleeRemoved(ServiceWorkerVersion* version,
135 ServiceWorkerProviderHost* provider_host) { 135 ServiceWorkerProviderHost* provider_host) {
136 } 136 }
137 virtual void OnDevToolsAttached(ServiceWorkerVersion* version) {}
nhiroki 2017/02/28 08:50:07 Maybe is this no longer necessary?
137 virtual void OnNoControllees(ServiceWorkerVersion* version) {} 138 virtual void OnNoControllees(ServiceWorkerVersion* version) {}
138 virtual void OnNoWork(ServiceWorkerVersion* version) {} 139 virtual void OnNoWork(ServiceWorkerVersion* version) {}
139 virtual void OnCachedMetadataUpdated(ServiceWorkerVersion* version) {} 140 virtual void OnCachedMetadataUpdated(ServiceWorkerVersion* version) {}
140 141
141 protected: 142 protected:
142 virtual ~Listener() {} 143 virtual ~Listener() {}
143 }; 144 };
144 145
145 ServiceWorkerVersion(ServiceWorkerRegistration* registration, 146 ServiceWorkerVersion(ServiceWorkerRegistration* registration,
146 const GURL& script_url, 147 const GURL& script_url,
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after
914 915
915 // At this point |this| can have been deleted, so don't do anything other 916 // At this point |this| can have been deleted, so don't do anything other
916 // than returning. 917 // than returning.
917 918
918 return true; 919 return true;
919 } 920 }
920 921
921 } // namespace content 922 } // namespace content
922 923
923 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 924 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698