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

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

Issue 182863004: Wire provider_id into scriptable API provider to start listening events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit fix Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_dispatcher_host.cc » ('j') | 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_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 "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "content/browser/service_worker/service_worker_registration_status.h" 9 #include "content/browser/service_worker/service_worker_registration_status.h"
10 #include "content/public/browser/browser_message_filter.h" 10 #include "content/public/browser/browser_message_filter.h"
(...skipping 28 matching lines...) Expand all
39 // IPC Message handlers 39 // IPC Message handlers
40 void OnRegisterServiceWorker(int32 thread_id, 40 void OnRegisterServiceWorker(int32 thread_id,
41 int32 request_id, 41 int32 request_id,
42 const GURL& pattern, 42 const GURL& pattern,
43 const GURL& script_url); 43 const GURL& script_url);
44 void OnUnregisterServiceWorker(int32 thread_id, 44 void OnUnregisterServiceWorker(int32 thread_id,
45 int32 request_id, 45 int32 request_id,
46 const GURL& pattern); 46 const GURL& pattern);
47 void OnProviderCreated(int provider_id); 47 void OnProviderCreated(int provider_id);
48 void OnProviderDestroyed(int provider_id); 48 void OnProviderDestroyed(int provider_id);
49 void OnAddScriptClient(int thread_id, int provider_id);
50 void OnRemoveScriptClient(int thread_id, int provider_id);
49 void OnWorkerStarted(int thread_id, 51 void OnWorkerStarted(int thread_id,
50 int embedded_worker_id); 52 int embedded_worker_id);
51 void OnWorkerStopped(int embedded_worker_id); 53 void OnWorkerStopped(int embedded_worker_id);
52 void OnSendMessageToBrowser(int embedded_worker_id, 54 void OnSendMessageToBrowser(int embedded_worker_id,
53 int request_id, 55 int request_id,
54 const IPC::Message& message); 56 const IPC::Message& message);
55 57
56 // Callbacks from ServiceWorkerContextCore 58 // Callbacks from ServiceWorkerContextCore
57 void RegistrationComplete(int32 thread_id, 59 void RegistrationComplete(int32 thread_id,
58 int32 request_id, 60 int32 request_id,
59 ServiceWorkerStatusCode status, 61 ServiceWorkerStatusCode status,
60 int64 registration_id); 62 int64 registration_id);
61 63
62 void UnregistrationComplete(int32 thread_id, 64 void UnregistrationComplete(int32 thread_id,
63 int32 request_id, 65 int32 request_id,
64 ServiceWorkerStatusCode status); 66 ServiceWorkerStatusCode status);
65 67
66 void SendRegistrationError(int32 thread_id, 68 void SendRegistrationError(int32 thread_id,
67 int32 request_id, 69 int32 request_id,
68 ServiceWorkerStatusCode status); 70 ServiceWorkerStatusCode status);
69 int render_process_id_; 71 int render_process_id_;
70 base::WeakPtr<ServiceWorkerContextCore> context_; 72 base::WeakPtr<ServiceWorkerContextCore> context_;
71 }; 73 };
72 74
73 } // namespace content 75 } // namespace content
74 76
75 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ 77 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_
OLDNEW
« 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