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> |
11 #include <memory> | 11 #include <memory> |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/bind.h" | 15 #include "base/callback_forward.h" |
16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
17 #include "base/strings/string16.h" | 17 #include "base/strings/string16.h" |
| 18 #include "base/task_scheduler/task_scheduler.h" |
18 #include "build/build_config.h" | 19 #include "build/build_config.h" |
19 #include "content/public/common/content_client.h" | 20 #include "content/public/common/content_client.h" |
20 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" | 21 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" |
21 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" | 22 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" |
22 #include "third_party/WebKit/public/web/WebNavigationType.h" | 23 #include "third_party/WebKit/public/web/WebNavigationType.h" |
23 #include "ui/base/page_transition_types.h" | 24 #include "ui/base/page_transition_types.h" |
24 #include "v8/include/v8.h" | 25 #include "v8/include/v8.h" |
25 | 26 |
26 class GURL; | 27 class GURL; |
27 class SkBitmap; | 28 class SkBitmap; |
28 | 29 |
29 namespace base { | 30 namespace base { |
30 class FilePath; | 31 class FilePath; |
| 32 class SchedulerWorkerPoolParams; |
31 class SingleThreadTaskRunner; | 33 class SingleThreadTaskRunner; |
32 } | 34 } |
33 | 35 |
34 namespace blink { | 36 namespace blink { |
35 class WebAudioDevice; | 37 class WebAudioDevice; |
36 class WebClipboard; | 38 class WebClipboard; |
37 class WebFrame; | 39 class WebFrame; |
38 class WebLocalFrame; | 40 class WebLocalFrame; |
39 class WebMIDIAccessor; | 41 class WebMIDIAccessor; |
40 class WebMIDIAccessorClient; | 42 class WebMIDIAccessorClient; |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 v8::Local<v8::Context> context) {} | 366 v8::Local<v8::Context> context) {} |
365 | 367 |
366 // 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 |
367 // browser process via |registry|. | 369 // browser process via |registry|. |
368 virtual void ExposeInterfacesToBrowser( | 370 virtual void ExposeInterfacesToBrowser( |
369 service_manager::InterfaceRegistry* interface_registry) {} | 371 service_manager::InterfaceRegistry* interface_registry) {} |
370 | 372 |
371 // Overwrites the given URL to use an HTML5 embed if possible. | 373 // Overwrites the given URL to use an HTML5 embed if possible. |
372 // An empty URL is returned if the URL is not overriden. | 374 // An empty URL is returned if the URL is not overriden. |
373 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url); | 375 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url); |
| 376 |
| 377 // Provides parameters for initializing the global task scheduler. If |
| 378 // |params_vector| is left empty, default parameters are used. |
| 379 virtual void GetTaskSchedulerInitializationParams( |
| 380 std::vector<base::SchedulerWorkerPoolParams>* params_vector, |
| 381 base::TaskScheduler::WorkerPoolIndexForTraitsCallback* |
| 382 index_to_traits_callback) {} |
374 }; | 383 }; |
375 | 384 |
376 } // namespace content | 385 } // namespace content |
377 | 386 |
378 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 387 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |