| 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 #include "chrome/renderer/chrome_content_renderer_client.h" | 5 #include "chrome/renderer/chrome_content_renderer_client.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1360 // it's allowed to access. | 1360 // it's allowed to access. |
| 1361 #if BUILDFLAG(ENABLE_EXTENSIONS) | 1361 #if BUILDFLAG(ENABLE_EXTENSIONS) |
| 1362 return !IsStandaloneExtensionProcess(); | 1362 return !IsStandaloneExtensionProcess(); |
| 1363 #else | 1363 #else |
| 1364 return true; | 1364 return true; |
| 1365 #endif | 1365 #endif |
| 1366 } | 1366 } |
| 1367 | 1367 |
| 1368 std::unique_ptr<blink::WebContentSettingsClient> | 1368 std::unique_ptr<blink::WebContentSettingsClient> |
| 1369 ChromeContentRendererClient::CreateWorkerContentSettingsClient( | 1369 ChromeContentRendererClient::CreateWorkerContentSettingsClient( |
| 1370 content::RenderFrame* render_frame, | 1370 content::RenderFrame* render_frame) { |
| 1371 WebFrame* frame) { | 1371 return base::MakeUnique<WorkerContentSettingsClient>(render_frame); |
| 1372 return base::MakeUnique<WorkerContentSettingsClient>(render_frame, frame); | |
| 1373 } | 1372 } |
| 1374 | 1373 |
| 1375 bool ChromeContentRendererClient::IsPluginAllowedToUseDevChannelAPIs() { | 1374 bool ChromeContentRendererClient::IsPluginAllowedToUseDevChannelAPIs() { |
| 1376 #if BUILDFLAG(ENABLE_PLUGINS) | 1375 #if BUILDFLAG(ENABLE_PLUGINS) |
| 1377 // Allow access for tests. | 1376 // Allow access for tests. |
| 1378 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 1377 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1379 switches::kEnablePepperTesting)) { | 1378 switches::kEnablePepperTesting)) { |
| 1380 return true; | 1379 return true; |
| 1381 } | 1380 } |
| 1382 | 1381 |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1593 | 1592 |
| 1594 RecordYouTubeRewriteUMA(result); | 1593 RecordYouTubeRewriteUMA(result); |
| 1595 return corrected_url.ReplaceComponents(r); | 1594 return corrected_url.ReplaceComponents(r); |
| 1596 } | 1595 } |
| 1597 | 1596 |
| 1598 std::unique_ptr<base::TaskScheduler::InitParams> | 1597 std::unique_ptr<base::TaskScheduler::InitParams> |
| 1599 ChromeContentRendererClient::GetTaskSchedulerInitParams() { | 1598 ChromeContentRendererClient::GetTaskSchedulerInitParams() { |
| 1600 return task_scheduler_util:: | 1599 return task_scheduler_util:: |
| 1601 GetRendererTaskSchedulerInitParamsFromCommandLine(); | 1600 GetRendererTaskSchedulerInitParamsFromCommandLine(); |
| 1602 } | 1601 } |
| OLD | NEW |