| 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 CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
| 6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 int64_t service_worker_version_id, | 184 int64_t service_worker_version_id, |
| 185 const GURL& url) override; | 185 const GURL& url) override; |
| 186 void WillDestroyServiceWorkerContextOnWorkerThread( | 186 void WillDestroyServiceWorkerContextOnWorkerThread( |
| 187 v8::Local<v8::Context> context, | 187 v8::Local<v8::Context> context, |
| 188 int64_t service_worker_version_id, | 188 int64_t service_worker_version_id, |
| 189 const GURL& url) override; | 189 const GURL& url) override; |
| 190 bool ShouldEnforceWebRTCRoutingPreferences() override; | 190 bool ShouldEnforceWebRTCRoutingPreferences() override; |
| 191 GURL OverrideFlashEmbedWithHTML(const GURL& url) override; | 191 GURL OverrideFlashEmbedWithHTML(const GURL& url) override; |
| 192 std::unique_ptr<base::TaskScheduler::InitParams> GetTaskSchedulerInitParams() | 192 std::unique_ptr<base::TaskScheduler::InitParams> GetTaskSchedulerInitParams() |
| 193 override; | 193 override; |
| 194 bool CanBeBackgrounded() const override; |
| 194 | 195 |
| 195 #if BUILDFLAG(ENABLE_SPELLCHECK) | 196 #if BUILDFLAG(ENABLE_SPELLCHECK) |
| 196 // Sets a new |spellcheck|. Used for testing only. | 197 // Sets a new |spellcheck|. Used for testing only. |
| 197 // Takes ownership of |spellcheck|. | 198 // Takes ownership of |spellcheck|. |
| 198 void SetSpellcheck(SpellCheck* spellcheck); | 199 void SetSpellcheck(SpellCheck* spellcheck); |
| 199 #endif | 200 #endif |
| 200 | 201 |
| 201 #if BUILDFLAG(ENABLE_PLUGINS) | 202 #if BUILDFLAG(ENABLE_PLUGINS) |
| 202 static blink::WebPlugin* CreatePlugin( | 203 static blink::WebPlugin* CreatePlugin( |
| 203 content::RenderFrame* render_frame, | 204 content::RenderFrame* render_frame, |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 // Observes module load and unload events and notifies the ModuleDatabase in | 269 // Observes module load and unload events and notifies the ModuleDatabase in |
| 269 // the browser process. | 270 // the browser process. |
| 270 std::unique_ptr<ModuleWatcher> module_watcher_; | 271 std::unique_ptr<ModuleWatcher> module_watcher_; |
| 271 mojom::ModuleEventSinkPtr module_event_sink_; | 272 mojom::ModuleEventSinkPtr module_event_sink_; |
| 272 #endif | 273 #endif |
| 273 | 274 |
| 274 DISALLOW_COPY_AND_ASSIGN(ChromeContentRendererClient); | 275 DISALLOW_COPY_AND_ASSIGN(ChromeContentRendererClient); |
| 275 }; | 276 }; |
| 276 | 277 |
| 277 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 278 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |