Chromium Code Reviews| 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/WebNavigationType.h" | 22 #include "third_party/WebKit/public/web/WebNavigationType.h" |
| 23 #include "ui/base/page_transition_types.h" | 23 #include "ui/base/page_transition_types.h" |
| 24 #include "v8/include/v8.h" | 24 #include "v8/include/v8.h" |
| 25 | 25 |
| 26 class GURL; | 26 class GURL; |
| 27 class SkBitmap; | 27 class SkBitmap; |
| 28 | 28 |
| 29 namespace base { | 29 namespace base { |
| 30 class FilePath; | 30 class FilePath; |
| 31 class SingleThreadTaskRunner; | 31 class SingleThreadTaskRunner; |
| 32 class TimeDelta; | |
| 32 } | 33 } |
| 33 | 34 |
| 34 namespace blink { | 35 namespace blink { |
| 35 class WebAudioDevice; | 36 class WebAudioDevice; |
| 36 class WebClipboard; | 37 class WebClipboard; |
| 37 class WebFrame; | 38 class WebFrame; |
| 38 class WebLocalFrame; | 39 class WebLocalFrame; |
| 39 class WebMIDIAccessor; | 40 class WebMIDIAccessor; |
| 40 class WebMIDIAccessorClient; | 41 class WebMIDIAccessorClient; |
| 41 class WebMediaStreamCenter; | 42 class WebMediaStreamCenter; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 129 // and the embedder's GetNavigationErrorHtml will be called afterwards to get | 130 // and the embedder's GetNavigationErrorHtml will be called afterwards to get |
| 130 // the error html. | 131 // the error html. |
| 131 virtual bool HasErrorPage(int http_status_code, | 132 virtual bool HasErrorPage(int http_status_code, |
| 132 std::string* error_domain); | 133 std::string* error_domain); |
| 133 | 134 |
| 134 // Returns true if the embedder prefers not to show an error page for a failed | 135 // Returns true if the embedder prefers not to show an error page for a failed |
| 135 // navigation to |url| in |render_frame|. | 136 // navigation to |url| in |render_frame|. |
| 136 virtual bool ShouldSuppressErrorPage(RenderFrame* render_frame, | 137 virtual bool ShouldSuppressErrorPage(RenderFrame* render_frame, |
| 137 const GURL& url); | 138 const GURL& url); |
| 138 | 139 |
| 140 // Provides TaskScheduler initialization arguments. |max_background_threads| | |
| 141 // and |max_foregound_threads| are the maximum number of threads for the | |
| 142 // background pool and foreground pool, repectively. |background_reclaim_time| | |
|
robliao
2016/11/15 20:31:51
s/repectively/respectively/ and below.
fdoray
2016/11/16 16:40:52
Done.
| |
| 143 // and |foreground_reclaim_time| are the amount of time to wait before | |
| 144 // reclaiming an idle thread in the background pool and foreground pool, | |
| 145 // repectively. |redirect_sequenced_worker_pool| indicates whether tasks | |
|
gab
2016/11/15 20:25:05
respectively
fdoray
2016/11/16 16:40:52
Done.
| |
| 146 // posted to a SequencedWorkerPool should be redirected to TaskScheduler. | |
| 147 virtual void GetTaskSchedulerInitializationArguments( | |
| 148 int* max_background_threads, | |
| 149 base::TimeDelta* background_reclaim_time, | |
| 150 int* max_foreground_threads, | |
| 151 base::TimeDelta* foreground_reclaim_time, | |
| 152 bool* redirect_sequenced_worker_pool); | |
| 153 | |
| 139 // Returns the information to display when a navigation error occurs. | 154 // Returns the information to display when a navigation error occurs. |
| 140 // If |error_html| is not null then it may be set to a HTML page containing | 155 // If |error_html| is not null then it may be set to a HTML page containing |
| 141 // the details of the error and maybe links to more info. | 156 // the details of the error and maybe links to more info. |
| 142 // If |error_description| is not null it may be set to contain a brief | 157 // If |error_description| is not null it may be set to contain a brief |
| 143 // message describing the error that has occurred. | 158 // message describing the error that has occurred. |
| 144 // Either of the out parameters may be not written to in certain cases | 159 // Either of the out parameters may be not written to in certain cases |
| 145 // (lack of information on the error code) so the caller should take care to | 160 // (lack of information on the error code) so the caller should take care to |
| 146 // initialize the string values with safe defaults before the call. | 161 // initialize the string values with safe defaults before the call. |
| 147 virtual void GetNavigationErrorStrings( | 162 virtual void GetNavigationErrorStrings( |
| 148 content::RenderFrame* render_frame, | 163 content::RenderFrame* render_frame, |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 370 service_manager::InterfaceRegistry* interface_registry) {} | 385 service_manager::InterfaceRegistry* interface_registry) {} |
| 371 | 386 |
| 372 // Overwrites the given URL to use an HTML5 embed if possible. | 387 // Overwrites the given URL to use an HTML5 embed if possible. |
| 373 // An empty URL is returned if the URL is not overriden. | 388 // An empty URL is returned if the URL is not overriden. |
| 374 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url); | 389 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url); |
| 375 }; | 390 }; |
| 376 | 391 |
| 377 } // namespace content | 392 } // namespace content |
| 378 | 393 |
| 379 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 394 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |