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

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

Issue 155905: Separates ipc code from common (http://crbug.com/16829) (Closed)
Patch Set: Fixes reference to 'common_message_traits' it's actually 'common_param_traits' Created 11 years, 5 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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>
(...skipping 16 matching lines...) Expand all
27 #include "base/scoped_ptr.h" 27 #include "base/scoped_ptr.h"
28 #include "base/thread.h" 28 #include "base/thread.h"
29 #include "chrome/browser/browser_process.h" 29 #include "chrome/browser/browser_process.h"
30 #include "chrome/browser/chrome_plugin_browsing_context.h" 30 #include "chrome/browser/chrome_plugin_browsing_context.h"
31 #include "chrome/browser/chrome_thread.h" 31 #include "chrome/browser/chrome_thread.h"
32 #include "chrome/browser/plugin_service.h" 32 #include "chrome/browser/plugin_service.h"
33 #include "chrome/browser/profile.h" 33 #include "chrome/browser/profile.h"
34 #include "chrome/browser/renderer_host/browser_render_process_host.h" 34 #include "chrome/browser/renderer_host/browser_render_process_host.h"
35 #include "chrome/browser/renderer_host/render_process_host.h" 35 #include "chrome/browser/renderer_host/render_process_host.h"
36 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" 36 #include "chrome/browser/renderer_host/resource_dispatcher_host.h"
37 #include "chrome/common/chrome_descriptors.h"
38 #include "chrome/common/chrome_paths.h" 37 #include "chrome/common/chrome_paths.h"
39 #include "chrome/common/chrome_plugin_lib.h" 38 #include "chrome/common/chrome_plugin_lib.h"
40 #include "chrome/common/chrome_switches.h" 39 #include "chrome/common/chrome_switches.h"
41 #include "chrome/common/logging_chrome.h" 40 #include "chrome/common/logging_chrome.h"
42 #include "chrome/common/plugin_messages.h" 41 #include "chrome/common/plugin_messages.h"
43 #include "chrome/common/render_messages.h" 42 #include "chrome/common/render_messages.h"
44 #include "chrome/common/ipc_channel_handle.h" 43 #include "ipc/ipc_channel_handle.h"
44 #include "ipc/ipc_descriptors.h"
45 #include "net/base/cookie_monster.h" 45 #include "net/base/cookie_monster.h"
46 #include "net/base/file_stream.h" 46 #include "net/base/file_stream.h"
47 #include "net/base/io_buffer.h" 47 #include "net/base/io_buffer.h"
48 #include "net/url_request/url_request.h" 48 #include "net/url_request/url_request.h"
49 #include "net/url_request/url_request_context.h" 49 #include "net/url_request/url_request_context.h"
50 #include "webkit/glue/plugins/plugin_constants_win.h" 50 #include "webkit/glue/plugins/plugin_constants_win.h"
51 51
52 #if defined(OS_WIN) 52 #if defined(OS_WIN)
53 #include "app/win_util.h" 53 #include "app/win_util.h"
54 #include "chrome/browser/sandbox_policy.h" 54 #include "chrome/browser/sandbox_policy.h"
55 #include "sandbox/src/sandbox.h" 55 #include "sandbox/src/sandbox.h"
56 #endif 56 #endif
57 57
58 #if defined(OS_POSIX) 58 #if defined(OS_POSIX)
59 #include "chrome/common/ipc_channel_posix.h" 59 #include "ipc/ipc_channel_posix.h"
60 #endif 60 #endif
61 61
62 #if defined(OS_LINUX) 62 #if defined(OS_LINUX)
63 #include "base/gfx/gtk_native_view_id_manager.h" 63 #include "base/gfx/gtk_native_view_id_manager.h"
64 #endif 64 #endif
65 65
66 static const char kDefaultPluginFinderURL[] = 66 static const char kDefaultPluginFinderURL[] =
67 "http://dl.google.com/chrome/plugins/plugins2.xml"; 67 "http://dl.google.com/chrome/plugins/plugins2.xml";
68 68
69 #if defined(OS_WIN) 69 #if defined(OS_WIN)
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 DCHECK(MessageLoop::current() == 589 DCHECK(MessageLoop::current() ==
590 ChromeThread::GetMessageLoop(ChromeThread::IO)); 590 ChromeThread::GetMessageLoop(ChromeThread::IO));
591 591
592 ChromePluginLib *chrome_plugin = ChromePluginLib::Find(info_.path); 592 ChromePluginLib *chrome_plugin = ChromePluginLib::Find(info_.path);
593 if (chrome_plugin) { 593 if (chrome_plugin) {
594 void *data_ptr = const_cast<void*>(reinterpret_cast<const void*>(&data[0])); 594 void *data_ptr = const_cast<void*>(reinterpret_cast<const void*>(&data[0]));
595 uint32 data_len = static_cast<uint32>(data.size()); 595 uint32 data_len = static_cast<uint32>(data.size());
596 chrome_plugin->functions().on_message(data_ptr, data_len); 596 chrome_plugin->functions().on_message(data_ptr, data_len);
597 } 597 }
598 } 598 }
OLDNEW
« no previous file with comments | « chrome/browser/plugin_process_host.h ('k') | chrome/browser/renderer_host/audio_renderer_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698