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

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

Issue 486083002: ServiceWorker: Introduce ServiceWorkerRegistrationObjectInfo for cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 <vector> 8 #include <vector>
9 9
10 #include "base/id_map.h" 10 #include "base/id_map.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 const std::vector<int>& sent_message_port_ids); 95 const std::vector<int>& sent_message_port_ids);
96 void OnIncrementServiceWorkerRefCount(int handle_id); 96 void OnIncrementServiceWorkerRefCount(int handle_id);
97 void OnDecrementServiceWorkerRefCount(int handle_id); 97 void OnDecrementServiceWorkerRefCount(int handle_id);
98 void OnIncrementRegistrationRefCount(int registration_handle_id); 98 void OnIncrementRegistrationRefCount(int registration_handle_id);
99 void OnDecrementRegistrationRefCount(int registration_handle_id); 99 void OnDecrementRegistrationRefCount(int registration_handle_id);
100 void OnPostMessageToWorker(int handle_id, 100 void OnPostMessageToWorker(int handle_id,
101 const base::string16& message, 101 const base::string16& message,
102 const std::vector<int>& sent_message_port_ids); 102 const std::vector<int>& sent_message_port_ids);
103 void OnServiceWorkerObjectDestroyed(int handle_id); 103 void OnServiceWorkerObjectDestroyed(int handle_id);
104 104
105 ServiceWorkerHandle* FindHandle(
106 int provider_id,
107 int64 version_id);
108 ServiceWorkerRegistrationHandle* FindRegistrationHandle( 105 ServiceWorkerRegistrationHandle* FindRegistrationHandle(
109 int provider_id, 106 int provider_id,
110 int64 registration_id); 107 int64 registration_id);
111 108
112 // Callbacks from ServiceWorkerContextCore 109 // Callbacks from ServiceWorkerContextCore
113 void RegistrationComplete(int thread_id, 110 void RegistrationComplete(int thread_id,
114 int provider_id, 111 int provider_id,
115 int request_id, 112 int request_id,
116 ServiceWorkerStatusCode status, 113 ServiceWorkerStatusCode status,
117 int64 registration_id, 114 int64 registration_id,
(...skipping 18 matching lines...) Expand all
136 133
137 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. 134 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL.
138 ScopedVector<IPC::Message> pending_messages_; 135 ScopedVector<IPC::Message> pending_messages_;
139 136
140 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); 137 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost);
141 }; 138 };
142 139
143 } // namespace content 140 } // namespace content
144 141
145 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ 142 #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