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

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

Issue 1031063002: Cache Storage: Implement Blink Platform API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Better name for origin arg 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
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 virtual ~EmbeddedWorkerContextClient(); 56 virtual ~EmbeddedWorkerContextClient();
57 57
58 bool OnMessageReceived(const IPC::Message& msg); 58 bool OnMessageReceived(const IPC::Message& msg);
59 59
60 void Send(IPC::Message* message); 60 void Send(IPC::Message* message);
61 61
62 // WebServiceWorkerContextClient overrides, some of them are just dispatched 62 // WebServiceWorkerContextClient overrides, some of them are just dispatched
63 // on to script_context_. 63 // on to script_context_.
64 virtual blink::WebURL scope() const; 64 virtual blink::WebURL scope() const;
65 // TODO(jsbell): Remove this once Blink is updated. http://crbug.com/439389
65 virtual blink::WebServiceWorkerCacheStorage* cacheStorage(); 66 virtual blink::WebServiceWorkerCacheStorage* cacheStorage();
66 virtual void didPauseAfterDownload(); 67 virtual void didPauseAfterDownload();
67 virtual void getClients(const blink::WebServiceWorkerClientQueryOptions&, 68 virtual void getClients(const blink::WebServiceWorkerClientQueryOptions&,
68 blink::WebServiceWorkerClientsCallbacks*); 69 blink::WebServiceWorkerClientsCallbacks*);
69 virtual void openWindow(const blink::WebURL&, 70 virtual void openWindow(const blink::WebURL&,
70 blink::WebServiceWorkerClientCallbacks*); 71 blink::WebServiceWorkerClientCallbacks*);
71 virtual void setCachedMetadata(const blink::WebURL&, 72 virtual void setCachedMetadata(const blink::WebURL&,
72 const char* data, 73 const char* data,
73 size_t size); 74 size_t size);
74 virtual void clearCachedMetadata(const blink::WebURL&); 75 virtual void clearCachedMetadata(const blink::WebURL&);
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 scoped_refptr<ServiceWorkerProviderContext> provider_context_; 163 scoped_refptr<ServiceWorkerProviderContext> provider_context_;
163 164
164 base::WeakPtrFactory<EmbeddedWorkerContextClient> weak_factory_; 165 base::WeakPtrFactory<EmbeddedWorkerContextClient> weak_factory_;
165 166
166 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerContextClient); 167 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerContextClient);
167 }; 168 };
168 169
169 } // namespace content 170 } // namespace content
170 171
171 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_CLIENT_H_ 172 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_CLIENT_H_
OLDNEW
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698