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

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

Issue 970693003: ServiceWorker: plumbing for ClientQueryOptions (2/2, chromium) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase build fix... Created 5 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_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_CLIENT_H_ 5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_CLIENT_H_
6 #define CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_CLIENT_H_ 6 #define CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 bool OnMessageReceived(const IPC::Message& msg); 57 bool OnMessageReceived(const IPC::Message& msg);
58 58
59 void Send(IPC::Message* message); 59 void Send(IPC::Message* message);
60 60
61 // WebServiceWorkerContextClient overrides, some of them are just dispatched 61 // WebServiceWorkerContextClient overrides, some of them are just dispatched
62 // on to script_context_. 62 // on to script_context_.
63 virtual blink::WebURL scope() const; 63 virtual blink::WebURL scope() const;
64 virtual blink::WebServiceWorkerCacheStorage* cacheStorage(); 64 virtual blink::WebServiceWorkerCacheStorage* cacheStorage();
65 virtual void didPauseAfterDownload(); 65 virtual void didPauseAfterDownload();
66 virtual void getClients(blink::WebServiceWorkerClientsCallbacks*); 66 virtual void getClients(const blink::WebServiceWorkerClientQueryOptions&,
67 blink::WebServiceWorkerClientsCallbacks*);
67 virtual void openWindow(const blink::WebURL&, 68 virtual void openWindow(const blink::WebURL&,
68 blink::WebServiceWorkerClientCallbacks*); 69 blink::WebServiceWorkerClientCallbacks*);
69 virtual void setCachedMetadata(const blink::WebURL&, 70 virtual void setCachedMetadata(const blink::WebURL&,
70 const char* data, 71 const char* data,
71 size_t size); 72 size_t size);
72 virtual void clearCachedMetadata(const blink::WebURL&); 73 virtual void clearCachedMetadata(const blink::WebURL&);
73 virtual void workerReadyForInspection(); 74 virtual void workerReadyForInspection();
74 75
75 // Called on the main thread. 76 // Called on the main thread.
76 virtual void workerContextFailedToStart(); 77 virtual void workerContextFailedToStart();
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 scoped_refptr<ServiceWorkerProviderContext> provider_context_; 156 scoped_refptr<ServiceWorkerProviderContext> provider_context_;
156 157
157 base::WeakPtrFactory<EmbeddedWorkerContextClient> weak_factory_; 158 base::WeakPtrFactory<EmbeddedWorkerContextClient> weak_factory_;
158 159
159 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerContextClient); 160 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerContextClient);
160 }; 161 };
161 162
162 } // namespace content 163 } // namespace content
163 164
164 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_CLIENT_H_ 165 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698