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

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

Issue 2850021: Cleanup: Remove some unneeded webkit/glue headers from chrome.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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/crash_recovery_browsertest.cc ('k') | chrome/browser/plugin_service.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) 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 #include "chrome/browser/plugin_process_host.h" 5 #include "chrome/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 22 matching lines...) Expand all
33 #include "chrome/common/net/url_request_context_getter.h" 33 #include "chrome/common/net/url_request_context_getter.h"
34 #include "chrome/common/plugin_messages.h" 34 #include "chrome/common/plugin_messages.h"
35 #include "chrome/common/render_messages.h" 35 #include "chrome/common/render_messages.h"
36 #include "gfx/native_widget_types.h" 36 #include "gfx/native_widget_types.h"
37 #include "ipc/ipc_switches.h" 37 #include "ipc/ipc_switches.h"
38 #include "net/base/file_stream.h" 38 #include "net/base/file_stream.h"
39 #include "net/base/io_buffer.h" 39 #include "net/base/io_buffer.h"
40 #include "net/url_request/url_request.h" 40 #include "net/url_request/url_request.h"
41 #include "net/url_request/url_request_context.h" 41 #include "net/url_request/url_request_context.h"
42 42
43 #if defined(OS_WIN)
44 #include "app/win_util.h"
45 #include "webkit/glue/plugins/plugin_constants_win.h"
46 #endif
47
48 #if defined(USE_X11) 43 #if defined(USE_X11)
49 #include "gfx/gtk_native_view_id_manager.h" 44 #include "gfx/gtk_native_view_id_manager.h"
50 #endif 45 #endif
51 46
52 #if defined(OS_MACOSX) 47 #if defined(OS_MACOSX)
53 #include "base/mac_util.h" 48 #include "base/mac_util.h"
54 #include "chrome/common/plugin_carbon_interpose_constants_mac.h" 49 #include "chrome/common/plugin_carbon_interpose_constants_mac.h"
55 #endif 50 #endif
56 51
57 static const char kDefaultPluginFinderURL[] = 52 static const char kDefaultPluginFinderURL[] =
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 const std::vector<uint8>& data) { 666 const std::vector<uint8>& data) {
672 DCHECK(ChromeThread::CurrentlyOn(ChromeThread::IO)); 667 DCHECK(ChromeThread::CurrentlyOn(ChromeThread::IO));
673 668
674 ChromePluginLib *chrome_plugin = ChromePluginLib::Find(info_.path); 669 ChromePluginLib *chrome_plugin = ChromePluginLib::Find(info_.path);
675 if (chrome_plugin) { 670 if (chrome_plugin) {
676 void *data_ptr = const_cast<void*>(reinterpret_cast<const void*>(&data[0])); 671 void *data_ptr = const_cast<void*>(reinterpret_cast<const void*>(&data[0]));
677 uint32 data_len = static_cast<uint32>(data.size()); 672 uint32 data_len = static_cast<uint32>(data.size());
678 chrome_plugin->functions().on_message(data_ptr, data_len); 673 chrome_plugin->functions().on_message(data_ptr, data_len);
679 } 674 }
680 } 675 }
OLDNEW
« no previous file with comments | « chrome/browser/crash_recovery_browsertest.cc ('k') | chrome/browser/plugin_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698