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

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
« 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/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 OnWorkerScriptLoaded(int embedded_worker_id); 71 void OnWorkerScriptLoaded(int embedded_worker_id);
74 void OnWorkerScriptLoadFailed(int embedded_worker_id); 72 void OnWorkerScriptLoadFailed(int embedded_worker_id);
75 void OnWorkerStarted(int thread_id, 73 void OnWorkerStarted(int thread_id,
76 int embedded_worker_id); 74 int embedded_worker_id);
77 void OnWorkerStopped(int embedded_worker_id); 75 void OnWorkerStopped(int embedded_worker_id);
78 void OnReportException(int embedded_worker_id, 76 void OnReportException(int embedded_worker_id,
79 const base::string16& error_message, 77 const base::string16& error_message,
80 int line_number, 78 int line_number,
81 int column_number, 79 int column_number,
82 const GURL& source_url); 80 const GURL& source_url);
83 void OnReportConsoleMessage( 81 void OnReportConsoleMessage(
84 int embedded_worker_id, 82 int embedded_worker_id,
85 const EmbeddedWorkerHostMsg_ReportConsoleMessage_Params& params); 83 const EmbeddedWorkerHostMsg_ReportConsoleMessage_Params& params);
86 void OnPostMessage(int handle_id, 84 void OnPostMessage(int handle_id,
87 const base::string16& message, 85 const base::string16& message,
88 const std::vector<int>& sent_message_port_ids); 86 const std::vector<int>& sent_message_port_ids);
89 void OnServiceWorkerObjectDestroyed(int handle_id); 87 void OnIncrementServiceWorkerRefCount(int handle_id);
88 void OnDecrementServiceWorkerRefCount(int handle_id);
90 89
91 // Callbacks from ServiceWorkerContextCore 90 // Callbacks from ServiceWorkerContextCore
92 void RegistrationComplete(int thread_id, 91 void RegistrationComplete(int thread_id,
93 int request_id, 92 int request_id,
94 ServiceWorkerStatusCode status, 93 ServiceWorkerStatusCode status,
95 int64 registration_id, 94 int64 registration_id,
96 int64 version_id); 95 int64 version_id);
97 96
98 void UnregistrationComplete(int thread_id, 97 void UnregistrationComplete(int thread_id,
99 int request_id, 98 int request_id,
(...skipping 11 matching lines...) Expand all
111 110
112 bool channel_ready_; // True after BrowserMessageFilter::channel_ != NULL. 111 bool channel_ready_; // True after BrowserMessageFilter::channel_ != NULL.
113 ScopedVector<IPC::Message> pending_messages_; 112 ScopedVector<IPC::Message> pending_messages_;
114 113
115 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); 114 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost);
116 }; 115 };
117 116
118 } // namespace content 117 } // namespace content
119 118
120 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ 119 #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