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

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

Issue 1342733002: ServiceWorker: log when the script's loaded separately from thread start (chromium) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fix Created 5 years, 3 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_CONTEXT_CLIENT_H_ 5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 virtual void openWindow(const blink::WebURL&, 91 virtual void openWindow(const blink::WebURL&,
92 blink::WebServiceWorkerClientCallbacks*); 92 blink::WebServiceWorkerClientCallbacks*);
93 virtual void setCachedMetadata(const blink::WebURL&, 93 virtual void setCachedMetadata(const blink::WebURL&,
94 const char* data, 94 const char* data,
95 size_t size); 95 size_t size);
96 virtual void clearCachedMetadata(const blink::WebURL&); 96 virtual void clearCachedMetadata(const blink::WebURL&);
97 virtual void workerReadyForInspection(); 97 virtual void workerReadyForInspection();
98 98
99 // Called on the main thread. 99 // Called on the main thread.
100 virtual void workerContextFailedToStart(); 100 virtual void workerContextFailedToStart();
101 virtual void workerScriptLoaded();
101 102
102 virtual void workerContextStarted(blink::WebServiceWorkerContextProxy* proxy); 103 virtual void workerContextStarted(blink::WebServiceWorkerContextProxy* proxy);
103 virtual void didEvaluateWorkerScript(bool success); 104 virtual void didEvaluateWorkerScript(bool success);
104 virtual void didInitializeWorkerContext(v8::Local<v8::Context> context, 105 virtual void didInitializeWorkerContext(v8::Local<v8::Context> context,
105 const blink::WebURL& url); 106 const blink::WebURL& url);
106 virtual void willDestroyWorkerContext(v8::Local<v8::Context> context); 107 virtual void willDestroyWorkerContext(v8::Local<v8::Context> context);
107 virtual void workerContextDestroyed(); 108 virtual void workerContextDestroyed();
108 virtual void reportException(const blink::WebString& error_message, 109 virtual void reportException(const blink::WebString& error_message,
109 int line_number, 110 int line_number,
110 int column_number, 111 int column_number,
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 // Initialized on the worker thread in workerContextStarted and 233 // Initialized on the worker thread in workerContextStarted and
233 // destructed on the worker thread in willDestroyWorkerContext. 234 // destructed on the worker thread in willDestroyWorkerContext.
234 scoped_ptr<WorkerContextData> context_; 235 scoped_ptr<WorkerContextData> context_;
235 236
236 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); 237 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient);
237 }; 238 };
238 239
239 } // namespace content 240 } // namespace content
240 241
241 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 242 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698