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

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: send increment/decrement request from renderer/ process Created 4 years, 3 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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 virtual void RunScriptsAtDocumentStart(RenderFrame* render_frame) {} 335 virtual void RunScriptsAtDocumentStart(RenderFrame* render_frame) {}
336 336
337 // Notifies that the DOM is ready in the frame's document. 337 // Notifies that the DOM is ready in the frame's document.
338 // This method may invalidate the frame. 338 // This method may invalidate the frame.
339 virtual void RunScriptsAtDocumentEnd(RenderFrame* render_frame) {} 339 virtual void RunScriptsAtDocumentEnd(RenderFrame* render_frame) {}
340 340
341 // Notifies that a service worker context has been created. This function 341 // Notifies that a service worker context has been created. This function
342 // is called from the worker thread. 342 // is called from the worker thread.
343 virtual void DidInitializeServiceWorkerContextOnWorkerThread( 343 virtual void DidInitializeServiceWorkerContextOnWorkerThread(
344 v8::Local<v8::Context> context, 344 v8::Local<v8::Context> context,
345 int embedded_worker_id, 345 int64_t service_worker_version_id,
346 const GURL& url) {} 346 const GURL& url) {}
347 347
348 // Notifies that a service worker context will be destroyed. This function 348 // Notifies that a service worker context will be destroyed. This function
349 // is called from the worker thread. 349 // is called from the worker thread.
350 virtual void WillDestroyServiceWorkerContextOnWorkerThread( 350 virtual void WillDestroyServiceWorkerContextOnWorkerThread(
351 v8::Local<v8::Context> context, 351 v8::Local<v8::Context> context,
352 int embedded_worker_id, 352 int64_t service_worker_version_id,
353 const GURL& url) {} 353 const GURL& url) {}
354 354
355 // Whether this renderer should enforce preferences related to the WebRTC 355 // Whether this renderer should enforce preferences related to the WebRTC
356 // routing logic, i.e. allowing multiple routes and non-proxied UDP. 356 // routing logic, i.e. allowing multiple routes and non-proxied UDP.
357 virtual bool ShouldEnforceWebRTCRoutingPreferences(); 357 virtual bool ShouldEnforceWebRTCRoutingPreferences();
358 358
359 // Notifies that a worker context has been created. This function is called 359 // Notifies that a worker context has been created. This function is called
360 // from the worker thread. 360 // from the worker thread.
361 virtual void DidInitializeWorkerContextOnWorkerThread( 361 virtual void DidInitializeWorkerContextOnWorkerThread(
362 v8::Local<v8::Context> context) {} 362 v8::Local<v8::Context> context) {}
363 363
364 // Allows the client to expose interfaces from the renderer process to the 364 // Allows the client to expose interfaces from the renderer process to the
365 // browser process via |registry|. 365 // browser process via |registry|.
366 virtual void ExposeInterfacesToBrowser( 366 virtual void ExposeInterfacesToBrowser(
367 shell::InterfaceRegistry* interface_registry) {} 367 shell::InterfaceRegistry* interface_registry) {}
368 368
369 // Overwrites the given URL to use an HTML5 embed if possible. 369 // Overwrites the given URL to use an HTML5 embed if possible.
370 // An empty URL is returned if the URL is not overriden. 370 // An empty URL is returned if the URL is not overriden.
371 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url); 371 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url);
372 }; 372 };
373 373
374 } // namespace content 374 } // namespace content
375 375
376 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 376 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698