| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 "chrome/browser/renderer_host/browser_render_process_host.h" | 8 #include "chrome/browser/renderer_host/browser_render_process_host.h" |
| 9 | 9 |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // Once the above TODO is finished, then this block is all Windows-specific | 60 // Once the above TODO is finished, then this block is all Windows-specific |
| 61 // files. | 61 // files. |
| 62 #include "base/win_util.h" | 62 #include "base/win_util.h" |
| 63 #include "chrome/browser/sandbox_policy.h" | 63 #include "chrome/browser/sandbox_policy.h" |
| 64 #include "sandbox/src/sandbox.h" | 64 #include "sandbox/src/sandbox.h" |
| 65 #elif defined(OS_POSIX) | 65 #elif defined(OS_POSIX) |
| 66 // TODO(port): Remove temporary scaffolding after porting the above headers. | 66 // TODO(port): Remove temporary scaffolding after porting the above headers. |
| 67 #include "chrome/common/temp_scaffolding_stubs.h" | 67 #include "chrome/common/temp_scaffolding_stubs.h" |
| 68 #endif | 68 #endif |
| 69 | 69 |
| 70 #include "skia/include/SkBitmap.h" | 70 #include "third_party/skia/include/core/SkBitmap.h" |
| 71 | 71 |
| 72 | 72 |
| 73 // This class creates the IO thread for the renderer when running in | 73 // This class creates the IO thread for the renderer when running in |
| 74 // single-process mode. It's not used in multi-process mode. | 74 // single-process mode. It's not used in multi-process mode. |
| 75 class RendererMainThread : public base::Thread { | 75 class RendererMainThread : public base::Thread { |
| 76 public: | 76 public: |
| 77 explicit RendererMainThread(const std::wstring& channel_id) | 77 explicit RendererMainThread(const std::wstring& channel_id) |
| 78 : base::Thread("Chrome_InProcRendererThread"), | 78 : base::Thread("Chrome_InProcRendererThread"), |
| 79 channel_id_(channel_id), | 79 channel_id_(channel_id), |
| 80 render_process_(NULL) { | 80 render_process_(NULL) { |
| (...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 793 ExtensionMessageService* ems = ExtensionMessageService::GetInstance(context); | 793 ExtensionMessageService* ems = ExtensionMessageService::GetInstance(context); |
| 794 ems->AddEventListener(event_name, pid()); | 794 ems->AddEventListener(event_name, pid()); |
| 795 } | 795 } |
| 796 | 796 |
| 797 void BrowserRenderProcessHost::OnExtensionRemoveListener( | 797 void BrowserRenderProcessHost::OnExtensionRemoveListener( |
| 798 const std::string& event_name) { | 798 const std::string& event_name) { |
| 799 URLRequestContext* context = profile()->GetRequestContext(); | 799 URLRequestContext* context = profile()->GetRequestContext(); |
| 800 ExtensionMessageService* ems = ExtensionMessageService::GetInstance(context); | 800 ExtensionMessageService* ems = ExtensionMessageService::GetInstance(context); |
| 801 ems->RemoveEventListener(event_name, pid()); | 801 ems->RemoveEventListener(event_name, pid()); |
| 802 } | 802 } |
| OLD | NEW |