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_render_process_observer.h" | 5 #include "chrome/renderer/chrome_render_process_observer.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <limits> | 8 #include <limits> |
9 #include <set> | 9 #include <set> |
10 #include <utility> | 10 #include <utility> |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
249 if (command_line.HasSwitch(switches::kDisableJavaScriptHarmonyShipping)) { | 249 if (command_line.HasSwitch(switches::kDisableJavaScriptHarmonyShipping)) { |
250 std::string flag("--noharmony-shipping"); | 250 std::string flag("--noharmony-shipping"); |
251 v8::V8::SetFlagsFromString(flag.c_str(), static_cast<int>(flag.size())); | 251 v8::V8::SetFlagsFromString(flag.c_str(), static_cast<int>(flag.size())); |
252 } | 252 } |
253 | 253 |
254 if (command_line.HasSwitch(switches::kJavaScriptHarmony)) { | 254 if (command_line.HasSwitch(switches::kJavaScriptHarmony)) { |
255 std::string flag("--harmony"); | 255 std::string flag("--harmony"); |
256 v8::V8::SetFlagsFromString(flag.c_str(), static_cast<int>(flag.size())); | 256 v8::V8::SetFlagsFromString(flag.c_str(), static_cast<int>(flag.size())); |
257 } | 257 } |
258 | 258 |
259 if (command_line.HasSwitch(switches::kEnableIgnition)) { | |
260 std::string flag("--ignition"); | |
261 v8::V8::SetFlagsFromString(flag.c_str(), static_cast<int>(flag.size())); | |
jochen (gone - plz use gerrit)
2016/03/24 14:43:41
the proxy and pdfium will run without ignition the
rmcilroy
2016/03/24 15:46:47
I'm not too worried about this being used for prox
| |
262 } | |
263 | |
259 if (command_line.HasSwitch(switches::kEnableWasm)) { | 264 if (command_line.HasSwitch(switches::kEnableWasm)) { |
260 std::string flag("--expose-wasm"); | 265 std::string flag("--expose-wasm"); |
261 v8::V8::SetFlagsFromString(flag.c_str(), static_cast<int>(flag.size())); | 266 v8::V8::SetFlagsFromString(flag.c_str(), static_cast<int>(flag.size())); |
262 } | 267 } |
263 | 268 |
264 RenderThread* thread = RenderThread::Get(); | 269 RenderThread* thread = RenderThread::Get(); |
265 resource_delegate_.reset(new RendererResourceDelegate()); | 270 resource_delegate_.reset(new RendererResourceDelegate()); |
266 thread->SetResourceDispatcherDelegate(resource_delegate_.get()); | 271 thread->SetResourceDispatcherDelegate(resource_delegate_.get()); |
267 | 272 |
268 thread->GetServiceRegistry()->AddService<ResourceUsageReporter>( | 273 thread->GetServiceRegistry()->AddService<ResourceUsageReporter>( |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
390 ChromeRenderProcessObserver::content_setting_rules() const { | 395 ChromeRenderProcessObserver::content_setting_rules() const { |
391 return &content_setting_rules_; | 396 return &content_setting_rules_; |
392 } | 397 } |
393 | 398 |
394 void ChromeRenderProcessObserver::OnFieldTrialGroupFinalized( | 399 void ChromeRenderProcessObserver::OnFieldTrialGroupFinalized( |
395 const std::string& trial_name, | 400 const std::string& trial_name, |
396 const std::string& group_name) { | 401 const std::string& group_name) { |
397 content::RenderThread::Get()->Send( | 402 content::RenderThread::Get()->Send( |
398 new ChromeViewHostMsg_FieldTrialActivated(trial_name)); | 403 new ChromeViewHostMsg_FieldTrialActivated(trial_name)); |
399 } | 404 } |
OLD | NEW |