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

Side by Side Diff: chrome/renderer/chrome_content_renderer_client.h

Issue 2943583002: [extension SW] Support lazy events from extension service workers. (Closed)
Patch Set: Created 3 years, 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_
6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ 6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 void RecordRapporURL(const std::string& metric, const GURL& url) override; 178 void RecordRapporURL(const std::string& metric, const GURL& url) override;
179 void AddImageContextMenuProperties( 179 void AddImageContextMenuProperties(
180 const blink::WebURLResponse& response, 180 const blink::WebURLResponse& response,
181 std::map<std::string, std::string>* properties) override; 181 std::map<std::string, std::string>* properties) override;
182 void RunScriptsAtDocumentStart(content::RenderFrame* render_frame) override; 182 void RunScriptsAtDocumentStart(content::RenderFrame* render_frame) override;
183 void RunScriptsAtDocumentEnd(content::RenderFrame* render_frame) override; 183 void RunScriptsAtDocumentEnd(content::RenderFrame* render_frame) override;
184 void RunScriptsAtDocumentIdle(content::RenderFrame* render_frame) override; 184 void RunScriptsAtDocumentIdle(content::RenderFrame* render_frame) override;
185 void DidInitializeServiceWorkerContextOnWorkerThread( 185 void DidInitializeServiceWorkerContextOnWorkerThread(
186 v8::Local<v8::Context> context, 186 v8::Local<v8::Context> context,
187 int64_t service_worker_version_id, 187 int64_t service_worker_version_id,
188 const GURL& url) override; 188 const GURL& service_worker_scope,
189 const GURL& script_url) override;
189 void WillDestroyServiceWorkerContextOnWorkerThread( 190 void WillDestroyServiceWorkerContextOnWorkerThread(
190 v8::Local<v8::Context> context, 191 v8::Local<v8::Context> context,
191 int64_t service_worker_version_id, 192 int64_t service_worker_version_id,
192 const GURL& url) override; 193 const GURL& service_worker_scope,
194 const GURL& script_url) override;
193 bool ShouldEnforceWebRTCRoutingPreferences() override; 195 bool ShouldEnforceWebRTCRoutingPreferences() override;
194 GURL OverrideFlashEmbedWithHTML(const GURL& url) override; 196 GURL OverrideFlashEmbedWithHTML(const GURL& url) override;
195 std::unique_ptr<base::TaskScheduler::InitParams> GetTaskSchedulerInitParams() 197 std::unique_ptr<base::TaskScheduler::InitParams> GetTaskSchedulerInitParams()
196 override; 198 override;
197 199
198 #if BUILDFLAG(ENABLE_SPELLCHECK) 200 #if BUILDFLAG(ENABLE_SPELLCHECK)
199 // Sets a new |spellcheck|. Used for testing only. 201 // Sets a new |spellcheck|. Used for testing only.
200 // Takes ownership of |spellcheck|. 202 // Takes ownership of |spellcheck|.
201 void SetSpellcheck(SpellCheck* spellcheck); 203 void SetSpellcheck(SpellCheck* spellcheck);
202 #endif 204 #endif
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 // Observes module load and unload events and notifies the ModuleDatabase in 275 // Observes module load and unload events and notifies the ModuleDatabase in
274 // the browser process. 276 // the browser process.
275 std::unique_ptr<ModuleWatcher> module_watcher_; 277 std::unique_ptr<ModuleWatcher> module_watcher_;
276 mojom::ModuleEventSinkPtr module_event_sink_; 278 mojom::ModuleEventSinkPtr module_event_sink_;
277 #endif 279 #endif
278 280
279 DISALLOW_COPY_AND_ASSIGN(ChromeContentRendererClient); 281 DISALLOW_COPY_AND_ASSIGN(ChromeContentRendererClient);
280 }; 282 };
281 283
282 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ 284 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698