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

Unified Diff: content/browser/service_worker/service_worker_dispatcher_host.h

Issue 1701843002: ServiceWorker: Implement 'source' and 'origin' attributes of ExtendableMessageEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_focus_into_utils
Patch Set: clean up tests Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_dispatcher_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/service_worker/service_worker_dispatcher_host.h
diff --git a/content/browser/service_worker/service_worker_dispatcher_host.h b/content/browser/service_worker/service_worker_dispatcher_host.h
index e44b5ff37a60e225f4f7a6ea70ceb469a59be1cc..b5b1d06d1254eacbcdef8220c2016d57aa2dc0c9 100644
--- a/content/browser/service_worker/service_worker_dispatcher_host.h
+++ b/content/browser/service_worker/service_worker_dispatcher_host.h
@@ -21,6 +21,10 @@
class GURL;
struct EmbeddedWorkerHostMsg_ReportConsoleMessage_Params;
+namespace url {
+class Origin;
+}
+
namespace content {
class MessagePortMessageFilter;
@@ -136,7 +140,9 @@ class CONTENT_EXPORT ServiceWorkerDispatcherHost : public BrowserMessageFilter {
void OnDecrementRegistrationRefCount(int registration_handle_id);
void OnPostMessageToWorker(
int handle_id,
+ int provider_id,
const base::string16& message,
+ const url::Origin& source_origin,
const std::vector<TransferredMessagePort>& sent_message_ports);
// TODO(nhiroki): Remove this after ExtendableMessageEvent is enabled by
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698