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

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

Issue 843583005: [ServiceWorker] Implement WebServiceWorkerContextClient::openWindow(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@content_browser_client_openurl
Patch Set: review comments Created 5 years, 10 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(blink::WebServiceWorkerClientsCallbacks*);
67 virtual void openWindow(const blink::WebURL&,
68 blink::WebServiceWorkerClientCallbacks*);
67 virtual void workerReadyForInspection(); 69 virtual void workerReadyForInspection();
68 virtual void workerContextFailedToStart(); 70 virtual void workerContextFailedToStart();
69 virtual void workerContextStarted(blink::WebServiceWorkerContextProxy* proxy); 71 virtual void workerContextStarted(blink::WebServiceWorkerContextProxy* proxy);
70 virtual void didEvaluateWorkerScript(bool success); 72 virtual void didEvaluateWorkerScript(bool success);
71 virtual void willDestroyWorkerContext(); 73 virtual void willDestroyWorkerContext();
72 virtual void workerContextDestroyed(); 74 virtual void workerContextDestroyed();
73 virtual void reportException(const blink::WebString& error_message, 75 virtual void reportException(const blink::WebString& error_message,
74 int line_number, 76 int line_number,
75 int column_number, 77 int column_number,
76 const blink::WebString& source_url); 78 const blink::WebString& source_url);
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 scoped_refptr<ServiceWorkerProviderContext> provider_context_; 144 scoped_refptr<ServiceWorkerProviderContext> provider_context_;
143 145
144 base::WeakPtrFactory<EmbeddedWorkerContextClient> weak_factory_; 146 base::WeakPtrFactory<EmbeddedWorkerContextClient> weak_factory_;
145 147
146 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerContextClient); 148 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerContextClient);
147 }; 149 };
148 150
149 } // namespace content 151 } // namespace content
150 152
151 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_CLIENT_H_ 153 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_CLIENT_H_
OLDNEW
« no previous file with comments | « content/public/browser/content_browser_client.cc ('k') | content/renderer/service_worker/embedded_worker_context_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698