OLD | NEW |
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 11 matching lines...) Expand all Loading... |
22 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" | 22 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" |
23 #include "third_party/WebKit/public/web/WebNavigationType.h" | 23 #include "third_party/WebKit/public/web/WebNavigationType.h" |
24 #include "ui/base/page_transition_types.h" | 24 #include "ui/base/page_transition_types.h" |
25 #include "v8/include/v8.h" | 25 #include "v8/include/v8.h" |
26 | 26 |
27 class GURL; | 27 class GURL; |
28 class SkBitmap; | 28 class SkBitmap; |
29 | 29 |
30 namespace base { | 30 namespace base { |
31 class FilePath; | 31 class FilePath; |
32 class SchedulerWorkerPoolParams; | |
33 } | 32 } |
34 | 33 |
35 namespace blink { | 34 namespace blink { |
36 class WebAudioDevice; | 35 class WebAudioDevice; |
37 class WebClipboard; | 36 class WebClipboard; |
38 class WebFrame; | 37 class WebFrame; |
39 class WebLocalFrame; | 38 class WebLocalFrame; |
40 class WebMIDIAccessor; | 39 class WebMIDIAccessor; |
41 class WebMIDIAccessorClient; | 40 class WebMIDIAccessorClient; |
42 class WebMediaStreamCenter; | 41 class WebMediaStreamCenter; |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 | 351 |
353 // Allows the client to expose interfaces from the renderer process to the | 352 // Allows the client to expose interfaces from the renderer process to the |
354 // browser process via |registry|. | 353 // browser process via |registry|. |
355 virtual void ExposeInterfacesToBrowser( | 354 virtual void ExposeInterfacesToBrowser( |
356 service_manager::InterfaceRegistry* interface_registry) {} | 355 service_manager::InterfaceRegistry* interface_registry) {} |
357 | 356 |
358 // Overwrites the given URL to use an HTML5 embed if possible. | 357 // Overwrites the given URL to use an HTML5 embed if possible. |
359 // An empty URL is returned if the URL is not overriden. | 358 // An empty URL is returned if the URL is not overriden. |
360 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url); | 359 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url); |
361 | 360 |
362 // Provides parameters for initializing the global task scheduler. If | 361 // Provides parameters for initializing the global task scheduler. Default |
363 // |params_vector| is left empty, default parameters are used. | 362 // params are used if this returns nullptr. |
364 virtual void GetTaskSchedulerInitializationParams( | 363 virtual std::unique_ptr<base::TaskScheduler::InitParams> |
365 std::vector<base::SchedulerWorkerPoolParams>* params_vector, | 364 GetTaskSchedulerInitParams(); |
366 base::TaskScheduler::WorkerPoolIndexForTraitsCallback* | |
367 index_to_traits_callback) {} | |
368 | 365 |
369 // Returns true if the media pipeline can be suspended, or false otherwise. | 366 // Returns true if the media pipeline can be suspended, or false otherwise. |
370 virtual bool AllowMediaSuspend(); | 367 virtual bool AllowMediaSuspend(); |
371 }; | 368 }; |
372 | 369 |
373 } // namespace content | 370 } // namespace content |
374 | 371 |
375 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 372 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |