| OLD | NEW |
| 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/renderer/render_process_impl.h" | 5 #include "content/renderer/render_process_impl.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 | 8 |
| 9 #if defined(OS_WIN) | 9 #if defined(OS_WIN) |
| 10 #include <windows.h> | 10 #include <windows.h> |
| 11 #include <objidl.h> | 11 #include <objidl.h> |
| 12 #include <mlang.h> | 12 #include <mlang.h> |
| 13 #endif | 13 #endif |
| 14 | 14 |
| 15 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
| 16 #include "base/command_line.h" | 16 #include "base/command_line.h" |
| 17 #include "base/compiler_specific.h" | 17 #include "base/compiler_specific.h" |
| 18 #include "base/message_loop/message_loop.h" | |
| 19 #include "base/strings/utf_string_conversions.h" | |
| 20 #include "base/sys_info.h" | |
| 21 #include "content/child/child_thread.h" | |
| 22 #include "content/child/npapi/plugin_instance.h" | |
| 23 #include "content/child/npapi/plugin_lib.h" | |
| 24 #include "content/child/site_isolation_policy.h" | 18 #include "content/child/site_isolation_policy.h" |
| 25 #include "content/common/view_messages.h" | |
| 26 #include "content/public/common/content_switches.h" | 19 #include "content/public/common/content_switches.h" |
| 27 #include "content/public/renderer/content_renderer_client.h" | 20 #include "content/public/renderer/content_renderer_client.h" |
| 28 #include "ipc/ipc_channel.h" | |
| 29 #include "ipc/ipc_message_utils.h" | |
| 30 #include "skia/ext/platform_canvas.h" | |
| 31 #include "third_party/WebKit/public/web/WebFrame.h" | 21 #include "third_party/WebKit/public/web/WebFrame.h" |
| 32 #include "ui/surface/transport_dib.h" | |
| 33 #include "v8/include/v8.h" | 22 #include "v8/include/v8.h" |
| 34 | 23 |
| 35 #if defined(OS_MACOSX) | |
| 36 #include "base/mac/mac_util.h" | |
| 37 #endif | |
| 38 | |
| 39 #if defined(OS_ANDROID) | 24 #if defined(OS_ANDROID) |
| 40 #include "base/android/sys_utils.h" | 25 #include "base/android/sys_utils.h" |
| 41 #endif | 26 #endif |
| 42 | 27 |
| 43 namespace content { | 28 namespace content { |
| 44 | 29 |
| 45 RenderProcessImpl::RenderProcessImpl() | 30 RenderProcessImpl::RenderProcessImpl() |
| 46 : enabled_bindings_(0) { | 31 : enabled_bindings_(0) { |
| 47 #if defined(OS_WIN) | 32 #if defined(OS_WIN) |
| 48 // HACK: See http://b/issue?id=1024307 for rationale. | 33 // HACK: See http://b/issue?id=1024307 for rationale. |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 | 78 |
| 94 void RenderProcessImpl::AddBindings(int bindings) { | 79 void RenderProcessImpl::AddBindings(int bindings) { |
| 95 enabled_bindings_ |= bindings; | 80 enabled_bindings_ |= bindings; |
| 96 } | 81 } |
| 97 | 82 |
| 98 int RenderProcessImpl::GetEnabledBindings() const { | 83 int RenderProcessImpl::GetEnabledBindings() const { |
| 99 return enabled_bindings_; | 84 return enabled_bindings_; |
| 100 } | 85 } |
| 101 | 86 |
| 102 } // namespace content | 87 } // namespace content |
| OLD | NEW |