| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <algorithm> | 10 #include <algorithm> |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 : RenderProcessHost(profile), | 193 : RenderProcessHost(profile), |
| 194 visible_widgets_(0), | 194 visible_widgets_(0), |
| 195 backgrounded_(true), | 195 backgrounded_(true), |
| 196 ALLOW_THIS_IN_INITIALIZER_LIST(cached_dibs_cleaner_( | 196 ALLOW_THIS_IN_INITIALIZER_LIST(cached_dibs_cleaner_( |
| 197 base::TimeDelta::FromSeconds(5), | 197 base::TimeDelta::FromSeconds(5), |
| 198 this, &BrowserRenderProcessHost::ClearTransportDIBCache)), | 198 this, &BrowserRenderProcessHost::ClearTransportDIBCache)), |
| 199 extension_process_(false) { | 199 extension_process_(false) { |
| 200 widget_helper_ = new RenderWidgetHelper(); | 200 widget_helper_ = new RenderWidgetHelper(); |
| 201 | 201 |
| 202 registrar_.Add(this, NotificationType::USER_SCRIPTS_UPDATED, | 202 registrar_.Add(this, NotificationType::USER_SCRIPTS_UPDATED, |
| 203 Source<Profile>(profile)); | 203 Source<Profile>(profile->GetOriginalProfile())); |
| 204 registrar_.Add(this, NotificationType::EXTENSION_LOADED, | 204 registrar_.Add(this, NotificationType::EXTENSION_LOADED, |
| 205 Source<Profile>(profile)); | 205 Source<Profile>(profile->GetOriginalProfile())); |
| 206 registrar_.Add(this, NotificationType::EXTENSION_UNLOADED, | 206 registrar_.Add(this, NotificationType::EXTENSION_UNLOADED, |
| 207 Source<Profile>(profile)); | 207 Source<Profile>(profile->GetOriginalProfile())); |
| 208 registrar_.Add(this, NotificationType::SPELLCHECK_HOST_REINITIALIZED, | 208 registrar_.Add(this, NotificationType::SPELLCHECK_HOST_REINITIALIZED, |
| 209 NotificationService::AllSources()); | 209 NotificationService::AllSources()); |
| 210 registrar_.Add(this, NotificationType::SPELLCHECK_WORD_ADDED, | 210 registrar_.Add(this, NotificationType::SPELLCHECK_WORD_ADDED, |
| 211 NotificationService::AllSources()); | 211 NotificationService::AllSources()); |
| 212 registrar_.Add(this, NotificationType::SPELLCHECK_AUTOSPELL_TOGGLED, | 212 registrar_.Add(this, NotificationType::SPELLCHECK_AUTOSPELL_TOGGLED, |
| 213 NotificationService::AllSources()); | 213 NotificationService::AllSources()); |
| 214 | 214 |
| 215 visited_link_updater_.reset(new VisitedLinkUpdater()); | 215 visited_link_updater_.reset(new VisitedLinkUpdater()); |
| 216 | 216 |
| 217 WebCacheManager::GetInstance()->Add(id()); | 217 WebCacheManager::GetInstance()->Add(id()); |
| (...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1060 IPC::InvalidPlatformFileForTransit(), | 1060 IPC::InvalidPlatformFileForTransit(), |
| 1061 std::vector<std::string>(), | 1061 std::vector<std::string>(), |
| 1062 std::string(), | 1062 std::string(), |
| 1063 false)); | 1063 false)); |
| 1064 } | 1064 } |
| 1065 } | 1065 } |
| 1066 | 1066 |
| 1067 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) { | 1067 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) { |
| 1068 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable)); | 1068 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable)); |
| 1069 } | 1069 } |
| OLD | NEW |