Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Side by Side Diff: chrome/browser/renderer_host/browser_render_process_host.cc

Issue 4338001: Implement print preview tab controller. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 switches::kRemoteShellPort, 618 switches::kRemoteShellPort,
619 switches::kEnablePepperTesting, 619 switches::kEnablePepperTesting,
620 switches::kBlockNonSandboxedPlugins, 620 switches::kBlockNonSandboxedPlugins,
621 switches::kDisableOutdatedPlugins, 621 switches::kDisableOutdatedPlugins,
622 switches::kEnableRemoting, 622 switches::kEnableRemoting,
623 switches::kEnableClickToPlay, 623 switches::kEnableClickToPlay,
624 switches::kEnableResourceContentSettings, 624 switches::kEnableResourceContentSettings,
625 switches::kPrelaunchGpuProcess, 625 switches::kPrelaunchGpuProcess,
626 switches::kEnableAcceleratedDecoding, 626 switches::kEnableAcceleratedDecoding,
627 switches::kDisableFileSystem, 627 switches::kDisableFileSystem,
628 switches::kPpapiOutOfProcess 628 switches::kPpapiOutOfProcess,
629 switches::kEnablePrintPreview,
629 }; 630 };
630 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, 631 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames,
631 arraysize(kSwitchNames)); 632 arraysize(kSwitchNames));
632 633
633 // Disable databases in incognito mode. 634 // Disable databases in incognito mode.
634 if (profile()->IsOffTheRecord() && 635 if (profile()->IsOffTheRecord() &&
635 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { 636 !browser_cmd.HasSwitch(switches::kDisableDatabases)) {
636 renderer_cmd->AppendSwitch(switches::kDisableDatabases); 637 renderer_cmd->AppendSwitch(switches::kDisableDatabases);
637 } 638 }
638 } 639 }
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
1167 IPC::InvalidPlatformFileForTransit(), 1168 IPC::InvalidPlatformFileForTransit(),
1168 std::vector<std::string>(), 1169 std::vector<std::string>(),
1169 std::string(), 1170 std::string(),
1170 false)); 1171 false));
1171 } 1172 }
1172 } 1173 }
1173 1174
1174 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) { 1175 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) {
1175 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable)); 1176 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable));
1176 } 1177 }
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_preview_tab_controller_unittest.cc ('k') | chrome/browser/renderer_host/render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698