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

Side by Side Diff: content/browser/service_worker/service_worker_dispatcher_host.h

Issue 489253002: Allow the browser to Send messages to an embedded worker once the script as been loaded without hav… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
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_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/id_map.h" 10 #include "base/id_map.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 const GURL& pattern, 70 const GURL& pattern,
71 const GURL& script_url); 71 const GURL& script_url);
72 void OnUnregisterServiceWorker(int thread_id, 72 void OnUnregisterServiceWorker(int thread_id,
73 int request_id, 73 int request_id,
74 int provider_id, 74 int provider_id,
75 const GURL& pattern); 75 const GURL& pattern);
76 void OnProviderCreated(int provider_id); 76 void OnProviderCreated(int provider_id);
77 void OnProviderDestroyed(int provider_id); 77 void OnProviderDestroyed(int provider_id);
78 void OnSetHostedVersionId(int provider_id, int64 version_id); 78 void OnSetHostedVersionId(int provider_id, int64 version_id);
79 void OnWorkerReadyForInspection(int embedded_worker_id); 79 void OnWorkerReadyForInspection(int embedded_worker_id);
80 void OnWorkerScriptLoaded(int embedded_worker_id); 80 void OnWorkerScriptLoaded(int embedded_worker_id, int thread_id);
81 void OnWorkerScriptLoadFailed(int embedded_worker_id); 81 void OnWorkerScriptLoadFailed(int embedded_worker_id);
82 void OnWorkerStarted(int thread_id, 82 void OnWorkerStarted(int embedded_worker_id);
83 int embedded_worker_id);
84 void OnWorkerStopped(int embedded_worker_id); 83 void OnWorkerStopped(int embedded_worker_id);
85 void OnPausedAfterDownload(int embedded_worker_id); 84 void OnPausedAfterDownload(int embedded_worker_id);
86 void OnReportException(int embedded_worker_id, 85 void OnReportException(int embedded_worker_id,
87 const base::string16& error_message, 86 const base::string16& error_message,
88 int line_number, 87 int line_number,
89 int column_number, 88 int column_number,
90 const GURL& source_url); 89 const GURL& source_url);
91 void OnReportConsoleMessage( 90 void OnReportConsoleMessage(
92 int embedded_worker_id, 91 int embedded_worker_id,
93 const EmbeddedWorkerHostMsg_ReportConsoleMessage_Params& params); 92 const EmbeddedWorkerHostMsg_ReportConsoleMessage_Params& params);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 133
135 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. 134 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL.
136 ScopedVector<IPC::Message> pending_messages_; 135 ScopedVector<IPC::Message> pending_messages_;
137 136
138 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); 137 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost);
139 }; 138 };
140 139
141 } // namespace content 140 } // namespace content
142 141
143 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ 142 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698