| 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 // Represents the browser side of the browser <--> renderer communication | 5 // Represents the browser side of the browser <--> renderer communication |
| 6 // channel. There will be one RenderProcessHost per renderer process. | 6 // channel. There will be one RenderProcessHost per renderer process. |
| 7 | 7 |
| 8 #include "content/browser/renderer_host/render_process_host_impl.h" | 8 #include "content/browser/renderer_host/render_process_host_impl.h" |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 #include "content/browser/child_process_security_policy_impl.h" | 46 #include "content/browser/child_process_security_policy_impl.h" |
| 47 #include "content/browser/device_orientation/orientation_message_filter.h" | 47 #include "content/browser/device_orientation/orientation_message_filter.h" |
| 48 #include "content/browser/dom_storage/dom_storage_context_impl.h" | 48 #include "content/browser/dom_storage/dom_storage_context_impl.h" |
| 49 #include "content/browser/dom_storage/dom_storage_message_filter.h" | 49 #include "content/browser/dom_storage/dom_storage_message_filter.h" |
| 50 #include "content/browser/download/mhtml_generation_manager.h" | 50 #include "content/browser/download/mhtml_generation_manager.h" |
| 51 #include "content/browser/fileapi/chrome_blob_storage_context.h" | 51 #include "content/browser/fileapi/chrome_blob_storage_context.h" |
| 52 #include "content/browser/fileapi/fileapi_message_filter.h" | 52 #include "content/browser/fileapi/fileapi_message_filter.h" |
| 53 #include "content/browser/geolocation/geolocation_dispatcher_host.h" | 53 #include "content/browser/geolocation/geolocation_dispatcher_host.h" |
| 54 #include "content/browser/gpu/gpu_data_manager_impl.h" | 54 #include "content/browser/gpu/gpu_data_manager_impl.h" |
| 55 #include "content/browser/gpu/gpu_process_host.h" | 55 #include "content/browser/gpu/gpu_process_host.h" |
| 56 #include "content/browser/gpu/shader_disk_cache.h" | 56 #include "content/browser/gpu/shader_disk_cache_impl.h" |
| 57 #include "content/browser/histogram_message_filter.h" | 57 #include "content/browser/histogram_message_filter.h" |
| 58 #include "content/browser/hyphenator/hyphenator_message_filter.h" | 58 #include "content/browser/hyphenator/hyphenator_message_filter.h" |
| 59 #include "content/browser/in_process_webkit/indexed_db_context_impl.h" | 59 #include "content/browser/in_process_webkit/indexed_db_context_impl.h" |
| 60 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" | 60 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" |
| 61 #include "content/browser/loader/resource_message_filter.h" | 61 #include "content/browser/loader/resource_message_filter.h" |
| 62 #include "content/browser/loader/resource_scheduler_filter.h" | 62 #include "content/browser/loader/resource_scheduler_filter.h" |
| 63 #include "content/browser/media/media_internals.h" | 63 #include "content/browser/media/media_internals.h" |
| 64 #include "content/browser/mime_registry_message_filter.h" | 64 #include "content/browser/mime_registry_message_filter.h" |
| 65 #include "content/browser/plugin_service_impl.h" | 65 #include "content/browser/plugin_service_impl.h" |
| 66 #include "content/browser/profiler_message_filter.h" | 66 #include "content/browser/profiler_message_filter.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 #include "third_party/skia/include/core/SkBitmap.h" | 137 #include "third_party/skia/include/core/SkBitmap.h" |
| 138 | 138 |
| 139 extern bool g_exited_main_message_loop; | 139 extern bool g_exited_main_message_loop; |
| 140 | 140 |
| 141 static const char* kSiteProcessMapKeyName = "content_site_process_map"; | 141 static const char* kSiteProcessMapKeyName = "content_site_process_map"; |
| 142 | 142 |
| 143 namespace content { | 143 namespace content { |
| 144 namespace { | 144 namespace { |
| 145 | 145 |
| 146 void CacheShaderInfo(int32 id, base::FilePath path) { | 146 void CacheShaderInfo(int32 id, base::FilePath path) { |
| 147 ShaderCacheFactory::GetInstance()->SetCacheInfo(id, path); | 147 ShaderCacheFactoryImpl::GetInstance()->SetCacheInfo(id, path); |
| 148 } | 148 } |
| 149 | 149 |
| 150 void RemoveShaderInfo(int32 id) { | 150 void RemoveShaderInfo(int32 id) { |
| 151 ShaderCacheFactory::GetInstance()->RemoveCacheInfo(id); | 151 ShaderCacheFactoryImpl::GetInstance()->RemoveCacheInfo(id); |
| 152 } | 152 } |
| 153 | 153 |
| 154 } // namespace | 154 } // namespace |
| 155 | 155 |
| 156 // This class creates the IO thread for the renderer when running in | 156 // This class creates the IO thread for the renderer when running in |
| 157 // single-process mode. It's not used in multi-process mode. | 157 // single-process mode. It's not used in multi-process mode. |
| 158 class RendererMainThread : public base::Thread { | 158 class RendererMainThread : public base::Thread { |
| 159 public: | 159 public: |
| 160 explicit RendererMainThread(const std::string& channel_id) | 160 explicit RendererMainThread(const std::string& channel_id) |
| 161 : Thread("Chrome_InProcRendererThread"), | 161 : Thread("Chrome_InProcRendererThread"), |
| (...skipping 1534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1696 TRACE_EVENT0("renderer_host", | 1696 TRACE_EVENT0("renderer_host", |
| 1697 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1697 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
| 1698 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; | 1698 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; |
| 1699 ack_params.sync_point = 0; | 1699 ack_params.sync_point = 0; |
| 1700 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1700 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
| 1701 gpu_process_host_id, | 1701 gpu_process_host_id, |
| 1702 ack_params); | 1702 ack_params); |
| 1703 } | 1703 } |
| 1704 | 1704 |
| 1705 } // namespace content | 1705 } // namespace content |
| OLD | NEW |