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

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

Issue 6263008: Move ResourceBundle, DataPack to ui/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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_installer.cc ('k') | chrome/browser/possible_url_model.cc » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 24 matching lines...) Expand all
35 #include "chrome/common/logging_chrome.h" 35 #include "chrome/common/logging_chrome.h"
36 #include "chrome/common/net/url_request_context_getter.h" 36 #include "chrome/common/net/url_request_context_getter.h"
37 #include "chrome/common/plugin_messages.h" 37 #include "chrome/common/plugin_messages.h"
38 #include "chrome/common/render_messages.h" 38 #include "chrome/common/render_messages.h"
39 #include "gfx/native_widget_types.h" 39 #include "gfx/native_widget_types.h"
40 #include "ipc/ipc_switches.h" 40 #include "ipc/ipc_switches.h"
41 #include "net/base/cookie_store.h" 41 #include "net/base/cookie_store.h"
42 #include "net/base/io_buffer.h" 42 #include "net/base/io_buffer.h"
43 #include "net/url_request/url_request.h" 43 #include "net/url_request/url_request.h"
44 #include "net/url_request/url_request_context.h" 44 #include "net/url_request/url_request_context.h"
45 #include "ui/base/ui_base_switches.h"
45 46
46 #if defined(USE_X11) 47 #if defined(USE_X11)
47 #include "gfx/gtk_native_view_id_manager.h" 48 #include "gfx/gtk_native_view_id_manager.h"
48 #endif 49 #endif
49 50
50 #if defined(OS_MACOSX) 51 #if defined(OS_MACOSX)
51 #include "base/mac/mac_util.h" 52 #include "base/mac/mac_util.h"
52 #include "chrome/common/plugin_carbon_interpose_constants_mac.h" 53 #include "chrome/common/plugin_carbon_interpose_constants_mac.h"
53 #include "gfx/rect.h" 54 #include "gfx/rect.h"
54 #endif 55 #endif
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 const std::vector<uint8>& data) { 468 const std::vector<uint8>& data) {
468 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 469 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
469 470
470 ChromePluginLib *chrome_plugin = ChromePluginLib::Find(info_.path); 471 ChromePluginLib *chrome_plugin = ChromePluginLib::Find(info_.path);
471 if (chrome_plugin) { 472 if (chrome_plugin) {
472 void *data_ptr = const_cast<void*>(reinterpret_cast<const void*>(&data[0])); 473 void *data_ptr = const_cast<void*>(reinterpret_cast<const void*>(&data[0]));
473 uint32 data_len = static_cast<uint32>(data.size()); 474 uint32 data_len = static_cast<uint32>(data.size());
474 chrome_plugin->functions().on_message(data_ptr, data_len); 475 chrome_plugin->functions().on_message(data_ptr, data_len);
475 } 476 }
476 } 477 }
OLDNEW
« no previous file with comments | « chrome/browser/plugin_installer.cc ('k') | chrome/browser/possible_url_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698