Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(495)

Side by Side Diff: chrome/browser/renderer_host/browser_render_process_host.cc

Issue 6392045: Integrating Mac OS Grammar checker into Chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated to ToT Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/spellcheck_message_filter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 #include "chrome/browser/renderer_host/render_widget_helper.h" 62 #include "chrome/browser/renderer_host/render_widget_helper.h"
63 #include "chrome/browser/renderer_host/render_widget_host.h" 63 #include "chrome/browser/renderer_host/render_widget_host.h"
64 #include "chrome/browser/renderer_host/resource_message_filter.h" 64 #include "chrome/browser/renderer_host/resource_message_filter.h"
65 #include "chrome/browser/renderer_host/socket_stream_dispatcher_host.h" 65 #include "chrome/browser/renderer_host/socket_stream_dispatcher_host.h"
66 #include "chrome/browser/renderer_host/web_cache_manager.h" 66 #include "chrome/browser/renderer_host/web_cache_manager.h"
67 #include "chrome/browser/safe_browsing/client_side_detection_service.h" 67 #include "chrome/browser/safe_browsing/client_side_detection_service.h"
68 #include "chrome/browser/search_engines/search_provider_install_state_message_fi lter.h" 68 #include "chrome/browser/search_engines/search_provider_install_state_message_fi lter.h"
69 #include "chrome/browser/speech/speech_input_dispatcher_host.h" 69 #include "chrome/browser/speech/speech_input_dispatcher_host.h"
70 #include "chrome/browser/speech/speech_input_manager.h" 70 #include "chrome/browser/speech/speech_input_manager.h"
71 #include "chrome/browser/spellcheck_host.h" 71 #include "chrome/browser/spellcheck_host.h"
72 #include "chrome/browser/spellcheck_message_filter.h"
72 #include "chrome/browser/metrics/user_metrics.h" 73 #include "chrome/browser/metrics/user_metrics.h"
73 #include "chrome/browser/visitedlink/visitedlink_master.h" 74 #include "chrome/browser/visitedlink/visitedlink_master.h"
74 #include "chrome/browser/worker_host/worker_message_filter.h" 75 #include "chrome/browser/worker_host/worker_message_filter.h"
75 #include "chrome/common/chrome_paths.h" 76 #include "chrome/common/chrome_paths.h"
76 #include "chrome/common/chrome_switches.h" 77 #include "chrome/common/chrome_switches.h"
77 #include "chrome/common/child_process_info.h" 78 #include "chrome/common/child_process_info.h"
78 #include "chrome/common/extensions/extension.h" 79 #include "chrome/common/extensions/extension.h"
79 #include "chrome/common/extensions/extension_icon_set.h" 80 #include "chrome/common/extensions/extension_icon_set.h"
80 #include "chrome/common/gpu_messages.h" 81 #include "chrome/common/gpu_messages.h"
81 #include "chrome/common/logging_chrome.h" 82 #include "chrome/common/logging_chrome.h"
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 channel_->AddFilter(new MimeRegistryMessageFilter()); 469 channel_->AddFilter(new MimeRegistryMessageFilter());
469 channel_->AddFilter(new DatabaseMessageFilter( 470 channel_->AddFilter(new DatabaseMessageFilter(
470 profile()->GetDatabaseTracker(), profile()->GetHostContentSettingsMap())); 471 profile()->GetDatabaseTracker(), profile()->GetHostContentSettingsMap()));
471 472
472 SocketStreamDispatcherHost* socket_stream_dispatcher_host = 473 SocketStreamDispatcherHost* socket_stream_dispatcher_host =
473 new SocketStreamDispatcherHost(); 474 new SocketStreamDispatcherHost();
474 socket_stream_dispatcher_host->set_url_request_context_override( 475 socket_stream_dispatcher_host->set_url_request_context_override(
475 url_request_context_override); 476 url_request_context_override);
476 channel_->AddFilter(socket_stream_dispatcher_host); 477 channel_->AddFilter(socket_stream_dispatcher_host);
477 478
479 channel_->AddFilter(new SpellCheckMessageFilter());
478 channel_->AddFilter(new WorkerMessageFilter( 480 channel_->AddFilter(new WorkerMessageFilter(
479 id(), 481 id(),
480 profile()->GetRequestContext(), 482 profile()->GetRequestContext(),
481 g_browser_process->resource_dispatcher_host(), 483 g_browser_process->resource_dispatcher_host(),
482 NewCallbackWithReturnValue( 484 NewCallbackWithReturnValue(
483 widget_helper_.get(), &RenderWidgetHelper::GetNextRoutingID))); 485 widget_helper_.get(), &RenderWidgetHelper::GetNextRoutingID)));
484 } 486 }
485 487
486 int BrowserRenderProcessHost::GetNextRoutingID() { 488 int BrowserRenderProcessHost::GetNextRoutingID() {
487 return widget_helper_->GetNextRoutingID(); 489 return widget_helper_->GetNextRoutingID();
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after
1278 IPC::PlatformFileForTransit file; 1280 IPC::PlatformFileForTransit file;
1279 #if defined(OS_POSIX) 1281 #if defined(OS_POSIX)
1280 file = base::FileDescriptor(model_file, false); 1282 file = base::FileDescriptor(model_file, false);
1281 #elif defined(OS_WIN) 1283 #elif defined(OS_WIN)
1282 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, 1284 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0,
1283 false, DUPLICATE_SAME_ACCESS); 1285 false, DUPLICATE_SAME_ACCESS);
1284 #endif 1286 #endif
1285 Send(new ViewMsg_SetPhishingModel(file)); 1287 Send(new ViewMsg_SetPhishingModel(file));
1286 } 1288 }
1287 } 1289 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/spellcheck_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698