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

Side by Side Diff: content/public/renderer/content_renderer_client.h

Issue 2166523003: Add ref count to service workers for extension API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync@tott Created 4 years, 2 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 CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 virtual void RunScriptsAtDocumentEnd(RenderFrame* render_frame) {} 339 virtual void RunScriptsAtDocumentEnd(RenderFrame* render_frame) {}
340 340
341 // Allows subclasses to enable some runtime features before Blink has 341 // Allows subclasses to enable some runtime features before Blink has
342 // started. 342 // started.
343 virtual void SetRuntimeFeaturesDefaultsBeforeBlinkInitialization() {} 343 virtual void SetRuntimeFeaturesDefaultsBeforeBlinkInitialization() {}
344 344
345 // Notifies that a service worker context has been created. This function 345 // Notifies that a service worker context has been created. This function
346 // is called from the worker thread. 346 // is called from the worker thread.
347 virtual void DidInitializeServiceWorkerContextOnWorkerThread( 347 virtual void DidInitializeServiceWorkerContextOnWorkerThread(
348 v8::Local<v8::Context> context, 348 v8::Local<v8::Context> context,
349 int embedded_worker_id, 349 int64_t service_worker_version_id,
350 const GURL& url) {} 350 const GURL& url) {}
351 351
352 // Notifies that a service worker context will be destroyed. This function 352 // Notifies that a service worker context will be destroyed. This function
353 // is called from the worker thread. 353 // is called from the worker thread.
354 virtual void WillDestroyServiceWorkerContextOnWorkerThread( 354 virtual void WillDestroyServiceWorkerContextOnWorkerThread(
355 v8::Local<v8::Context> context, 355 v8::Local<v8::Context> context,
356 int embedded_worker_id, 356 int64_t service_worker_version_id,
357 const GURL& url) {} 357 const GURL& url) {}
358 358
359 // Whether this renderer should enforce preferences related to the WebRTC 359 // Whether this renderer should enforce preferences related to the WebRTC
360 // routing logic, i.e. allowing multiple routes and non-proxied UDP. 360 // routing logic, i.e. allowing multiple routes and non-proxied UDP.
361 virtual bool ShouldEnforceWebRTCRoutingPreferences(); 361 virtual bool ShouldEnforceWebRTCRoutingPreferences();
362 362
363 // Notifies that a worker context has been created. This function is called 363 // Notifies that a worker context has been created. This function is called
364 // from the worker thread. 364 // from the worker thread.
365 virtual void DidInitializeWorkerContextOnWorkerThread( 365 virtual void DidInitializeWorkerContextOnWorkerThread(
366 v8::Local<v8::Context> context) {} 366 v8::Local<v8::Context> context) {}
367 367
368 // Allows the client to expose interfaces from the renderer process to the 368 // Allows the client to expose interfaces from the renderer process to the
369 // browser process via |registry|. 369 // browser process via |registry|.
370 virtual void ExposeInterfacesToBrowser( 370 virtual void ExposeInterfacesToBrowser(
371 shell::InterfaceRegistry* interface_registry) {} 371 shell::InterfaceRegistry* interface_registry) {}
372 372
373 // Overwrites the given URL to use an HTML5 embed if possible. 373 // Overwrites the given URL to use an HTML5 embed if possible.
374 // An empty URL is returned if the URL is not overriden. 374 // An empty URL is returned if the URL is not overriden.
375 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url); 375 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url);
376 }; 376 };
377 377
378 } // namespace content 378 } // namespace content
379 379
380 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 380 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/public/browser/service_worker_context.h ('k') | content/renderer/service_worker/service_worker_context_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698