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

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: rebase and review comments Created 5 years, 11 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 bool OnMessageReceived(const IPC::Message& msg); 62 bool OnMessageReceived(const IPC::Message& msg);
63 63
64 void Send(IPC::Message* message); 64 void Send(IPC::Message* message);
65 65
66 // WebServiceWorkerContextClient overrides, some of them are just dispatched 66 // WebServiceWorkerContextClient overrides, some of them are just dispatched
67 // on to script_context_. 67 // on to script_context_.
68 virtual blink::WebURL scope() const; 68 virtual blink::WebURL scope() const;
69 virtual blink::WebServiceWorkerCacheStorage* cacheStorage(); 69 virtual blink::WebServiceWorkerCacheStorage* cacheStorage();
70 virtual void didPauseAfterDownload(); 70 virtual void didPauseAfterDownload();
71 virtual void getClients(blink::WebServiceWorkerClientsCallbacks*); 71 virtual void getClients(blink::WebServiceWorkerClientsCallbacks*);
72 virtual void openWindow(const blink::WebURL&,
73 blink::WebServiceWorkerClientCallbacks*);
72 virtual void workerReadyForInspection(); 74 virtual void workerReadyForInspection();
73 virtual void workerContextFailedToStart(); 75 virtual void workerContextFailedToStart();
74 virtual void workerContextStarted(blink::WebServiceWorkerContextProxy* proxy); 76 virtual void workerContextStarted(blink::WebServiceWorkerContextProxy* proxy);
75 virtual void didEvaluateWorkerScript(bool success); 77 virtual void didEvaluateWorkerScript(bool success);
76 virtual void willDestroyWorkerContext(); 78 virtual void willDestroyWorkerContext();
77 virtual void workerContextDestroyed(); 79 virtual void workerContextDestroyed();
78 virtual void reportException(const blink::WebString& error_message, 80 virtual void reportException(const blink::WebString& error_message,
79 int line_number, 81 int line_number,
80 int column_number, 82 int column_number,
81 const blink::WebString& source_url); 83 const blink::WebString& source_url);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 scoped_refptr<ServiceWorkerProviderContext> provider_context_; 148 scoped_refptr<ServiceWorkerProviderContext> provider_context_;
147 149
148 base::WeakPtrFactory<EmbeddedWorkerContextClient> weak_factory_; 150 base::WeakPtrFactory<EmbeddedWorkerContextClient> weak_factory_;
149 151
150 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerContextClient); 152 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerContextClient);
151 }; 153 };
152 154
153 } // namespace content 155 } // namespace content
154 156
155 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_CLIENT_H_ 157 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698