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

Side by Side Diff: content/renderer/service_worker/service_worker_script_context.h

Issue 871013003: Gather the ServiceWorker client information in the browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rfh_getvisibilitystate
Patch Set: rebase Created 5 years, 11 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 2014 The Chromium Authors. All rights reserved. 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 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_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_ 5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_
6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_ 6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 19 matching lines...) Expand all
30 class WebServiceWorkerContextProxy; 30 class WebServiceWorkerContextProxy;
31 } 31 }
32 32
33 namespace IPC { 33 namespace IPC {
34 class Message; 34 class Message;
35 } 35 }
36 36
37 namespace content { 37 namespace content {
38 38
39 class EmbeddedWorkerContextClient; 39 class EmbeddedWorkerContextClient;
40 class ServiceWorkerClientInfo;
40 class WebServiceWorkerRegistrationImpl; 41 class WebServiceWorkerRegistrationImpl;
41 struct CrossOriginServiceWorkerClient; 42 struct CrossOriginServiceWorkerClient;
42 struct PlatformNotificationData; 43 struct PlatformNotificationData;
43 44
44 // TODO(kinuko): This should implement WebServiceWorkerContextClient 45 // TODO(kinuko): This should implement WebServiceWorkerContextClient
45 // rather than having EmbeddedWorkerContextClient implement it. 46 // rather than having EmbeddedWorkerContextClient implement it.
46 // See the header comment in embedded_worker_context_client.h for the 47 // See the header comment in embedded_worker_context_client.h for the
47 // potential EW/SW layering concerns. 48 // potential EW/SW layering concerns.
48 class ServiceWorkerScriptContext { 49 class ServiceWorkerScriptContext {
49 public: 50 public:
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 std::map<int, base::TimeTicks> install_start_timings_; 160 std::map<int, base::TimeTicks> install_start_timings_;
160 std::map<int, base::TimeTicks> notification_click_start_timings_; 161 std::map<int, base::TimeTicks> notification_click_start_timings_;
161 std::map<int, base::TimeTicks> push_start_timings_; 162 std::map<int, base::TimeTicks> push_start_timings_;
162 163
163 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerScriptContext); 164 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerScriptContext);
164 }; 165 };
165 166
166 } // namespace content 167 } // namespace content
167 168
168 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_ 169 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698