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" |
11 | 11 |
12 #include <algorithm> | 12 #include <algorithm> |
13 | 13 |
| 14 #if defined(OS_WIN) |
| 15 #include "app/win_util.h" |
| 16 #endif |
14 #include "base/command_line.h" | 17 #include "base/command_line.h" |
15 #include "base/linked_ptr.h" | 18 #include "base/linked_ptr.h" |
16 #include "base/logging.h" | 19 #include "base/logging.h" |
17 #include "base/path_service.h" | 20 #include "base/path_service.h" |
18 #include "base/process_util.h" | 21 #include "base/process_util.h" |
19 #include "base/rand_util.h" | 22 #include "base/rand_util.h" |
20 #include "base/scoped_ptr.h" | 23 #include "base/scoped_ptr.h" |
21 #include "base/shared_memory.h" | 24 #include "base/shared_memory.h" |
22 #include "base/singleton.h" | 25 #include "base/singleton.h" |
23 #include "base/string_util.h" | 26 #include "base/string_util.h" |
(...skipping 26 matching lines...) Expand all Loading... |
50 #if defined(OS_WIN) | 53 #if defined(OS_WIN) |
51 | 54 |
52 // TODO(port): see comment by the only usage of RenderViewHost in this file. | 55 // TODO(port): see comment by the only usage of RenderViewHost in this file. |
53 #include "chrome/browser/renderer_host/render_view_host.h" | 56 #include "chrome/browser/renderer_host/render_view_host.h" |
54 | 57 |
55 #include "chrome/browser/spellchecker.h" | 58 #include "chrome/browser/spellchecker.h" |
56 | 59 |
57 // 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 |
58 // files. | 61 // files. |
59 #include "base/win_util.h" | 62 #include "base/win_util.h" |
60 #include "chrome/common/win_util.h" | |
61 #include "chrome/browser/sandbox_policy.h" | 63 #include "chrome/browser/sandbox_policy.h" |
62 #include "sandbox/src/sandbox.h" | 64 #include "sandbox/src/sandbox.h" |
63 #elif defined(OS_POSIX) | 65 #elif defined(OS_POSIX) |
64 // TODO(port): Remove temporary scaffolding after porting the above headers. | 66 // TODO(port): Remove temporary scaffolding after porting the above headers. |
65 #include "chrome/common/temp_scaffolding_stubs.h" | 67 #include "chrome/common/temp_scaffolding_stubs.h" |
66 #endif | 68 #endif |
67 | 69 |
68 #include "skia/include/SkBitmap.h" | 70 #include "skia/include/SkBitmap.h" |
69 | 71 |
70 | 72 |
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
791 ExtensionMessageService* ems = ExtensionMessageService::GetInstance(context); | 793 ExtensionMessageService* ems = ExtensionMessageService::GetInstance(context); |
792 ems->AddEventListener(event_name, pid()); | 794 ems->AddEventListener(event_name, pid()); |
793 } | 795 } |
794 | 796 |
795 void BrowserRenderProcessHost::OnExtensionRemoveListener( | 797 void BrowserRenderProcessHost::OnExtensionRemoveListener( |
796 const std::string& event_name) { | 798 const std::string& event_name) { |
797 URLRequestContext* context = profile()->GetRequestContext(); | 799 URLRequestContext* context = profile()->GetRequestContext(); |
798 ExtensionMessageService* ems = ExtensionMessageService::GetInstance(context); | 800 ExtensionMessageService* ems = ExtensionMessageService::GetInstance(context); |
799 ems->RemoveEventListener(event_name, pid()); | 801 ems->RemoveEventListener(event_name, pid()); |
800 } | 802 } |
OLD | NEW |