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

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

Issue 205033002: Browser side of new ServiceWorker 'sync' event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Kinuko comments Created 6 years, 8 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_CHILD_SERVICE_WORKER_EMBEDDED_WORKER_CLIENT_H_ 5 #ifndef CONTENT_CHILD_SERVICE_WORKER_EMBEDDED_WORKER_CLIENT_H_
6 #define CONTENT_CHILD_SERVICE_WORKER_EMBEDDED_WORKER_CLIENT_H_ 6 #define CONTENT_CHILD_SERVICE_WORKER_EMBEDDED_WORKER_CLIENT_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 virtual void workerContextStarted(blink::WebServiceWorkerContextProxy* proxy); 62 virtual void workerContextStarted(blink::WebServiceWorkerContextProxy* proxy);
63 virtual void workerContextDestroyed(); 63 virtual void workerContextDestroyed();
64 virtual void didHandleInstallEvent(int request_id, 64 virtual void didHandleInstallEvent(int request_id,
65 blink::WebServiceWorkerEventResult result); 65 blink::WebServiceWorkerEventResult result);
66 virtual void didHandleFetchEvent(int request_id); 66 virtual void didHandleFetchEvent(int request_id);
67 virtual void didHandleFetchEvent( 67 virtual void didHandleFetchEvent(
68 int request_id, 68 int request_id,
69 const blink::WebServiceWorkerResponse& response); 69 const blink::WebServiceWorkerResponse& response);
70 virtual blink::WebServiceWorkerNetworkProvider* 70 virtual blink::WebServiceWorkerNetworkProvider*
71 createServiceWorkerNetworkProvider(blink::WebDataSource* data_source); 71 createServiceWorkerNetworkProvider(blink::WebDataSource* data_source);
72 virtual void didHandleSyncEvent(int request_id);
72 73
73 // TODO: Implement DevTools related method overrides. 74 // TODO: Implement DevTools related method overrides.
74 75
75 int embedded_worker_id() const { return embedded_worker_id_; } 76 int embedded_worker_id() const { return embedded_worker_id_; }
76 base::MessageLoopProxy* main_thread_proxy() const { 77 base::MessageLoopProxy* main_thread_proxy() const {
77 return main_thread_proxy_; 78 return main_thread_proxy_;
78 } 79 }
79 80
80 private: 81 private:
81 void OnSendMessageToWorker(int thread_id, 82 void OnSendMessageToWorker(int thread_id,
(...skipping 12 matching lines...) Expand all
94 scoped_ptr<ServiceWorkerScriptContext> script_context_; 95 scoped_ptr<ServiceWorkerScriptContext> script_context_;
95 96
96 base::WeakPtrFactory<EmbeddedWorkerContextClient> weak_factory_; 97 base::WeakPtrFactory<EmbeddedWorkerContextClient> weak_factory_;
97 98
98 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerContextClient); 99 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerContextClient);
99 }; 100 };
100 101
101 } // namespace content 102 } // namespace content
102 103
103 #endif // CONTENT_CHILD_SERVICE_WORKER_EMBEDDED_WORKER_CLIENT_H_ 104 #endif // CONTENT_CHILD_SERVICE_WORKER_EMBEDDED_WORKER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698