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

Side by Side Diff: content/browser/plugin_process_host.cc

Issue 139253003: Pass the high-dpi-support command line switch to plugin processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 10 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "content/browser/plugin_process_host.h" 5 #include "content/browser/plugin_process_host.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #elif defined(OS_POSIX) 9 #elif defined(OS_POSIX)
10 #include <utility> // for pair<> 10 #include <utility> // for pair<>
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 #if defined(OS_MACOSX) 49 #if defined(OS_MACOSX)
50 #include "base/mac/mac_util.h" 50 #include "base/mac/mac_util.h"
51 #include "content/common/plugin_carbon_interpose_constants_mac.h" 51 #include "content/common/plugin_carbon_interpose_constants_mac.h"
52 #include "ui/gfx/rect.h" 52 #include "ui/gfx/rect.h"
53 #endif 53 #endif
54 54
55 #if defined(OS_WIN) 55 #if defined(OS_WIN)
56 #include "base/win/windows_version.h" 56 #include "base/win/windows_version.h"
57 #include "content/common/plugin_constants_win.h" 57 #include "content/common/plugin_constants_win.h"
58 #include "content/public/common/sandboxed_process_launcher_delegate.h" 58 #include "content/public/common/sandboxed_process_launcher_delegate.h"
59 #include "ui/gfx/switches.h"
59 #endif 60 #endif
60 61
61 namespace content { 62 namespace content {
62 63
63 #if defined(OS_WIN) 64 #if defined(OS_WIN)
64 void PluginProcessHost::OnPluginWindowDestroyed(HWND window, HWND parent) { 65 void PluginProcessHost::OnPluginWindowDestroyed(HWND window, HWND parent) {
65 // The window is destroyed at this point, we just care about its parent, which 66 // The window is destroyed at this point, we just care about its parent, which
66 // is the intermediate window we created. 67 // is the intermediate window we created.
67 std::set<HWND>::iterator window_index = 68 std::set<HWND>::iterator window_index =
68 plugin_parent_windows_set_.find(parent); 69 plugin_parent_windows_set_.find(parent);
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 // Propagate the following switches to the plugin command line (along with 189 // Propagate the following switches to the plugin command line (along with
189 // any associated values) if present in the browser command line 190 // any associated values) if present in the browser command line
190 static const char* const kSwitchNames[] = { 191 static const char* const kSwitchNames[] = {
191 switches::kDisableBreakpad, 192 switches::kDisableBreakpad,
192 #if defined(OS_MACOSX) 193 #if defined(OS_MACOSX)
193 switches::kDisableCoreAnimationPlugins, 194 switches::kDisableCoreAnimationPlugins,
194 switches::kEnableSandboxLogging, 195 switches::kEnableSandboxLogging,
195 #endif 196 #endif
196 switches::kEnableStatsTable, 197 switches::kEnableStatsTable,
197 switches::kFullMemoryCrashReport, 198 switches::kFullMemoryCrashReport,
199 #if defined(OS_WIN)
200 switches::kHighDPISupport,
201 #endif
198 switches::kLoggingLevel, 202 switches::kLoggingLevel,
199 switches::kLogPluginMessages, 203 switches::kLogPluginMessages,
200 switches::kNoSandbox, 204 switches::kNoSandbox,
201 switches::kPluginStartupDialog, 205 switches::kPluginStartupDialog,
202 switches::kTestSandbox, 206 switches::kTestSandbox,
203 switches::kTraceStartup, 207 switches::kTraceStartup,
204 switches::kUseGL, 208 switches::kUseGL,
205 switches::kUserAgent, 209 switches::kUserAgent,
206 }; 210 };
207 211
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 429
426 void PluginProcessHost::GetContexts(const ResourceHostMsg_Request& request, 430 void PluginProcessHost::GetContexts(const ResourceHostMsg_Request& request,
427 ResourceContext** resource_context, 431 ResourceContext** resource_context,
428 net::URLRequestContext** request_context) { 432 net::URLRequestContext** request_context) {
429 *resource_context = 433 *resource_context =
430 resource_context_map_[request.origin_pid].resource_context; 434 resource_context_map_[request.origin_pid].resource_context;
431 *request_context = (*resource_context)->GetRequestContext(); 435 *request_context = (*resource_context)->GetRequestContext();
432 } 436 }
433 437
434 } // namespace content 438 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698