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

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

Issue 261533003: Populate .current when navigator.serviceWorker is accessed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 "base/id_map.h" 8 #include "base/id_map.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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 int request_id, 60 int request_id,
61 int provider_id, 61 int provider_id,
62 const GURL& pattern, 62 const GURL& pattern,
63 const GURL& script_url); 63 const GURL& script_url);
64 void OnUnregisterServiceWorker(int thread_id, 64 void OnUnregisterServiceWorker(int thread_id,
65 int request_id, 65 int request_id,
66 int provider_id, 66 int provider_id,
67 const GURL& pattern); 67 const GURL& pattern);
68 void OnProviderCreated(int provider_id); 68 void OnProviderCreated(int provider_id);
69 void OnProviderDestroyed(int provider_id); 69 void OnProviderDestroyed(int provider_id);
70 void OnAddScriptClient(int thread_id, int provider_id);
71 void OnRemoveScriptClient(int thread_id, int provider_id);
72 void OnSetHostedVersionId(int provider_id, int64 version_id); 70 void OnSetHostedVersionId(int provider_id, int64 version_id);
73 void OnWorkerStarted(int thread_id, 71 void OnWorkerStarted(int thread_id,
74 int embedded_worker_id); 72 int embedded_worker_id);
75 void OnWorkerStopped(int embedded_worker_id); 73 void OnWorkerStopped(int embedded_worker_id);
76 void OnReportException(int embedded_worker_id, 74 void OnReportException(int embedded_worker_id,
77 const base::string16& error_message, 75 const base::string16& error_message,
78 int line_number, 76 int line_number,
79 int column_number, 77 int column_number,
80 const GURL& source_url); 78 const GURL& source_url);
81 void OnReportConsoleMessage( 79 void OnReportConsoleMessage(
82 int embedded_worker_id, 80 int embedded_worker_id,
83 const EmbeddedWorkerHostMsg_ReportConsoleMessage_Params& params); 81 const EmbeddedWorkerHostMsg_ReportConsoleMessage_Params& params);
84 void OnPostMessage(int handle_id, 82 void OnPostMessage(int handle_id,
85 const base::string16& message, 83 const base::string16& message,
86 const std::vector<int>& sent_message_port_ids); 84 const std::vector<int>& sent_message_port_ids);
87 void OnServiceWorkerObjectDestroyed(int handle_id); 85 void OnIncrementServiceWorkerRefCount(int handle_id);
86 void OnDecrementServiceWorkerRefCount(int handle_id);
88 87
89 // Callbacks from ServiceWorkerContextCore 88 // Callbacks from ServiceWorkerContextCore
90 void RegistrationComplete(int thread_id, 89 void RegistrationComplete(int thread_id,
91 int request_id, 90 int request_id,
92 ServiceWorkerStatusCode status, 91 ServiceWorkerStatusCode status,
93 int64 registration_id, 92 int64 registration_id,
94 int64 version_id); 93 int64 version_id);
95 94
96 void UnregistrationComplete(int thread_id, 95 void UnregistrationComplete(int thread_id,
97 int request_id, 96 int request_id,
(...skipping 11 matching lines...) Expand all
109 108
110 bool channel_ready_; // True after BrowserMessageFilter::channel_ != NULL. 109 bool channel_ready_; // True after BrowserMessageFilter::channel_ != NULL.
111 ScopedVector<IPC::Message> pending_messages_; 110 ScopedVector<IPC::Message> pending_messages_;
112 111
113 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); 112 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost);
114 }; 113 };
115 114
116 } // namespace content 115 } // namespace content
117 116
118 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ 117 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698