OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // Represents the browser side of the browser <--> renderer communication | 5 // Represents the browser side of the browser <--> renderer communication |
6 // channel. There will be one RenderProcessHost per renderer process. | 6 // channel. There will be one RenderProcessHost per renderer process. |
7 | 7 |
8 #include "chrome/browser/renderer_host/browser_render_process_host.h" | 8 #include "chrome/browser/renderer_host/browser_render_process_host.h" |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 #include "chrome/common/render_messages.h" | 54 #include "chrome/common/render_messages.h" |
55 #include "chrome/common/result_codes.h" | 55 #include "chrome/common/result_codes.h" |
56 #include "chrome/renderer/render_process_impl.h" | 56 #include "chrome/renderer/render_process_impl.h" |
57 #include "chrome/renderer/render_thread.h" | 57 #include "chrome/renderer/render_thread.h" |
58 #include "grit/generated_resources.h" | 58 #include "grit/generated_resources.h" |
59 #include "ipc/ipc_logging.h" | 59 #include "ipc/ipc_logging.h" |
60 #include "ipc/ipc_message.h" | 60 #include "ipc/ipc_message.h" |
61 #include "ipc/ipc_platform_file.h" | 61 #include "ipc/ipc_platform_file.h" |
62 #include "ipc/ipc_switches.h" | 62 #include "ipc/ipc_switches.h" |
63 #include "media/base/media_switches.h" | 63 #include "media/base/media_switches.h" |
| 64 #include "webkit/glue/plugins/plugin_switches.h" |
64 | 65 |
65 #if defined(OS_WIN) | 66 #if defined(OS_WIN) |
66 #include "app/win_util.h" | 67 #include "app/win_util.h" |
67 #endif | 68 #endif |
68 | 69 |
69 using WebKit::WebCache; | 70 using WebKit::WebCache; |
70 | 71 |
71 #include "third_party/skia/include/core/SkBitmap.h" | 72 #include "third_party/skia/include/core/SkBitmap.h" |
72 | 73 |
73 | 74 |
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 // information is needed very early during bringup. We prefer to | 567 // information is needed very early during bringup. We prefer to |
567 // use the WebPreferences to set this flag on a page-by-page basis. | 568 // use the WebPreferences to set this flag on a page-by-page basis. |
568 switches::kEnableExperimentalWebGL, | 569 switches::kEnableExperimentalWebGL, |
569 switches::kInProcessWebGL, | 570 switches::kInProcessWebGL, |
570 #if defined(OS_MACOSX) | 571 #if defined(OS_MACOSX) |
571 // Allow this to be set when invoking the browser and relayed along. | 572 // Allow this to be set when invoking the browser and relayed along. |
572 switches::kEnableSandboxLogging, | 573 switches::kEnableSandboxLogging, |
573 switches::kDisableFlashCoreAnimation, | 574 switches::kDisableFlashCoreAnimation, |
574 #endif | 575 #endif |
575 switches::kRemoteShellPort, | 576 switches::kRemoteShellPort, |
| 577 switches::kEnablePepperTesting, |
576 }; | 578 }; |
577 | 579 |
578 for (size_t i = 0; i < arraysize(switch_names); ++i) { | 580 for (size_t i = 0; i < arraysize(switch_names); ++i) { |
579 if (browser_cmd.HasSwitch(switch_names[i])) { | 581 if (browser_cmd.HasSwitch(switch_names[i])) { |
580 renderer_cmd->AppendSwitchWithValue(switch_names[i], | 582 renderer_cmd->AppendSwitchWithValue(switch_names[i], |
581 browser_cmd.GetSwitchValueASCII(switch_names[i])); | 583 browser_cmd.GetSwitchValueASCII(switch_names[i])); |
582 } | 584 } |
583 } | 585 } |
584 | 586 |
585 // Disable databases in incognito mode. | 587 // Disable databases in incognito mode. |
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1063 IPC::InvalidPlatformFileForTransit(), | 1065 IPC::InvalidPlatformFileForTransit(), |
1064 std::vector<std::string>(), | 1066 std::vector<std::string>(), |
1065 std::string(), | 1067 std::string(), |
1066 false)); | 1068 false)); |
1067 } | 1069 } |
1068 } | 1070 } |
1069 | 1071 |
1070 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) { | 1072 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) { |
1071 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable)); | 1073 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable)); |
1072 } | 1074 } |
OLD | NEW |