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

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

Issue 5612005: Client-based geolocation support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on trunk Created 10 years 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
OLDNEW
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 19 matching lines...) Expand all
30 #include "chrome/browser/browser_child_process_host.h" 30 #include "chrome/browser/browser_child_process_host.h"
31 #include "chrome/browser/browser_process.h" 31 #include "chrome/browser/browser_process.h"
32 #include "chrome/browser/child_process_security_policy.h" 32 #include "chrome/browser/child_process_security_policy.h"
33 #include "chrome/browser/device_orientation/message_filter.h" 33 #include "chrome/browser/device_orientation/message_filter.h"
34 #include "chrome/browser/extensions/extension_event_router.h" 34 #include "chrome/browser/extensions/extension_event_router.h"
35 #include "chrome/browser/extensions/extension_function_dispatcher.h" 35 #include "chrome/browser/extensions/extension_function_dispatcher.h"
36 #include "chrome/browser/extensions/extension_message_service.h" 36 #include "chrome/browser/extensions/extension_message_service.h"
37 #include "chrome/browser/extensions/extensions_service.h" 37 #include "chrome/browser/extensions/extensions_service.h"
38 #include "chrome/browser/extensions/user_script_master.h" 38 #include "chrome/browser/extensions/user_script_master.h"
39 #include "chrome/browser/file_system/file_system_dispatcher_host.h" 39 #include "chrome/browser/file_system/file_system_dispatcher_host.h"
40 #include "chrome/browser/geolocation/geolocation_dispatcher_host.h"
40 #include "chrome/browser/gpu_process_host.h" 41 #include "chrome/browser/gpu_process_host.h"
41 #include "chrome/browser/history/history.h" 42 #include "chrome/browser/history/history.h"
42 #include "chrome/browser/in_process_webkit/dom_storage_message_filter.h" 43 #include "chrome/browser/in_process_webkit/dom_storage_message_filter.h"
43 #include "chrome/browser/in_process_webkit/indexed_db_dispatcher_host.h" 44 #include "chrome/browser/in_process_webkit/indexed_db_dispatcher_host.h"
44 #include "chrome/browser/io_thread.h" 45 #include "chrome/browser/io_thread.h"
45 #include "chrome/browser/mime_registry_message_filter.h" 46 #include "chrome/browser/mime_registry_message_filter.h"
46 #include "chrome/browser/platform_util.h" 47 #include "chrome/browser/platform_util.h"
47 #include "chrome/browser/plugin_service.h" 48 #include "chrome/browser/plugin_service.h"
48 #include "chrome/browser/profiles/profile.h" 49 #include "chrome/browser/profiles/profile.h"
49 #include "chrome/browser/renderer_host/audio_renderer_host.h" 50 #include "chrome/browser/renderer_host/audio_renderer_host.h"
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 g_browser_process->print_job_manager(), 394 g_browser_process->print_job_manager(),
394 profile(), 395 profile(),
395 widget_helper_)); 396 widget_helper_));
396 channel_->AddFilter(render_message_filter); 397 channel_->AddFilter(render_message_filter);
397 398
398 channel_->AddFilter(new AudioRendererHost()); 399 channel_->AddFilter(new AudioRendererHost());
399 channel_->AddFilter( 400 channel_->AddFilter(
400 new AppCacheDispatcherHost(profile()->GetRequestContext(), id())); 401 new AppCacheDispatcherHost(profile()->GetRequestContext(), id()));
401 channel_->AddFilter(new DOMStorageMessageFilter(id(), profile())); 402 channel_->AddFilter(new DOMStorageMessageFilter(id(), profile()));
402 channel_->AddFilter(new IndexedDBDispatcherHost(id(), profile())); 403 channel_->AddFilter(new IndexedDBDispatcherHost(id(), profile()));
404 channel_->AddFilter(
405 GeolocationDispatcherHost::New(
406 id(), profile()->GetGeolocationPermissionContext()));
403 channel_->AddFilter(new PepperFileMessageFilter(id(), profile())); 407 channel_->AddFilter(new PepperFileMessageFilter(id(), profile()));
404 channel_->AddFilter(new speech_input::SpeechInputDispatcherHost(id())); 408 channel_->AddFilter(new speech_input::SpeechInputDispatcherHost(id()));
405 channel_->AddFilter( 409 channel_->AddFilter(
406 new SearchProviderInstallStateMessageFilter(id(), profile())); 410 new SearchProviderInstallStateMessageFilter(id(), profile()));
407 channel_->AddFilter(new FileSystemDispatcherHost(profile())); 411 channel_->AddFilter(new FileSystemDispatcherHost(profile()));
408 channel_->AddFilter(new device_orientation::MessageFilter()); 412 channel_->AddFilter(new device_orientation::MessageFilter());
409 channel_->AddFilter( 413 channel_->AddFilter(
410 new BlobMessageFilter(id(), profile()->GetBlobStorageContext())); 414 new BlobMessageFilter(id(), profile()->GetBlobStorageContext()));
411 channel_->AddFilter(new FileUtilitiesMessageFilter(id())); 415 channel_->AddFilter(new FileUtilitiesMessageFilter(id()));
412 channel_->AddFilter(new MimeRegistryMessageFilter()); 416 channel_->AddFilter(new MimeRegistryMessageFilter());
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after
1242 IPC::PlatformFileForTransit file; 1246 IPC::PlatformFileForTransit file;
1243 #if defined(OS_POSIX) 1247 #if defined(OS_POSIX)
1244 file = base::FileDescriptor(model_file, false); 1248 file = base::FileDescriptor(model_file, false);
1245 #elif defined(OS_WIN) 1249 #elif defined(OS_WIN)
1246 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, 1250 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0,
1247 false, DUPLICATE_SAME_ACCESS); 1251 false, DUPLICATE_SAME_ACCESS);
1248 #endif 1252 #endif
1249 Send(new ViewMsg_SetPhishingModel(file)); 1253 Send(new ViewMsg_SetPhishingModel(file));
1250 } 1254 }
1251 } 1255 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698