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

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

Issue 273017: Move native_widget_types and gtk_native_view_id_manager from base/gfx to... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | « chrome/browser/plugin_process_host.h ('k') | chrome/browser/printing/print_job.h » ('j') | 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #include "chrome/browser/plugin_process_host.h" 7 #include "chrome/browser/plugin_process_host.h"
8 8
9 #if defined(OS_WIN) 9 #if defined(OS_WIN)
10 #include <windows.h> 10 #include <windows.h>
11 #endif 11 #endif
12 12
13 #include <vector> 13 #include <vector>
14 14
15 #include "app/app_switches.h" 15 #include "app/app_switches.h"
16 #include "app/gfx/native_widget_types.h"
16 #include "base/command_line.h" 17 #include "base/command_line.h"
17 #if defined(OS_POSIX) 18 #if defined(OS_POSIX)
18 #include "base/global_descriptors_posix.h" 19 #include "base/global_descriptors_posix.h"
19 #endif 20 #endif
20 #include "base/file_path.h" 21 #include "base/file_path.h"
21 #include "base/file_util.h" 22 #include "base/file_util.h"
22 #include "base/file_version_info.h" 23 #include "base/file_version_info.h"
23 #include "base/gfx/native_widget_types.h"
24 #include "base/logging.h" 24 #include "base/logging.h"
25 #include "base/path_service.h" 25 #include "base/path_service.h"
26 #include "base/process_util.h" 26 #include "base/process_util.h"
27 #include "base/scoped_ptr.h" 27 #include "base/scoped_ptr.h"
28 #include "base/string_util.h" 28 #include "base/string_util.h"
29 #include "base/thread.h" 29 #include "base/thread.h"
30 #include "chrome/browser/browser.h" 30 #include "chrome/browser/browser.h"
31 #include "chrome/browser/browser_list.h" 31 #include "chrome/browser/browser_list.h"
32 #include "chrome/browser/browser_process.h" 32 #include "chrome/browser/browser_process.h"
33 #include "chrome/browser/browser_window.h" 33 #include "chrome/browser/browser_window.h"
(...skipping 25 matching lines...) Expand all
59 #include "app/win_util.h" 59 #include "app/win_util.h"
60 #include "chrome/browser/sandbox_policy.h" 60 #include "chrome/browser/sandbox_policy.h"
61 #include "sandbox/src/sandbox.h" 61 #include "sandbox/src/sandbox.h"
62 #endif 62 #endif
63 63
64 #if defined(OS_POSIX) 64 #if defined(OS_POSIX)
65 #include "ipc/ipc_channel_posix.h" 65 #include "ipc/ipc_channel_posix.h"
66 #endif 66 #endif
67 67
68 #if defined(OS_LINUX) 68 #if defined(OS_LINUX)
69 #include "base/gfx/gtk_native_view_id_manager.h" 69 #include "app/gfx/gtk_native_view_id_manager.h"
70 #endif 70 #endif
71 71
72 #if defined(OS_MACOSX) 72 #if defined(OS_MACOSX)
73 #include "chrome/common/plugin_carbon_interpose_constants_mac.h" 73 #include "chrome/common/plugin_carbon_interpose_constants_mac.h"
74 #endif 74 #endif
75 75
76 static const char kDefaultPluginFinderURL[] = 76 static const char kDefaultPluginFinderURL[] =
77 "http://cache.pack.google.com/edgedl/chrome/plugins/plugins2.xml"; 77 "http://cache.pack.google.com/edgedl/chrome/plugins/plugins2.xml";
78 78
79 #if defined(OS_WIN) 79 #if defined(OS_WIN)
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 DCHECK(MessageLoop::current() == 660 DCHECK(MessageLoop::current() ==
661 ChromeThread::GetMessageLoop(ChromeThread::IO)); 661 ChromeThread::GetMessageLoop(ChromeThread::IO));
662 662
663 ChromePluginLib *chrome_plugin = ChromePluginLib::Find(info_.path); 663 ChromePluginLib *chrome_plugin = ChromePluginLib::Find(info_.path);
664 if (chrome_plugin) { 664 if (chrome_plugin) {
665 void *data_ptr = const_cast<void*>(reinterpret_cast<const void*>(&data[0])); 665 void *data_ptr = const_cast<void*>(reinterpret_cast<const void*>(&data[0]));
666 uint32 data_len = static_cast<uint32>(data.size()); 666 uint32 data_len = static_cast<uint32>(data.size());
667 chrome_plugin->functions().on_message(data_ptr, data_len); 667 chrome_plugin->functions().on_message(data_ptr, data_len);
668 } 668 }
669 } 669 }
OLDNEW
« no previous file with comments | « chrome/browser/plugin_process_host.h ('k') | chrome/browser/printing/print_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698