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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2176753003: Geolocation: move from content/browser to device/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed device/geolocation/public/cpp Created 4 years, 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "content/browser/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cmath> 9 #include <cmath>
10 #include <utility> 10 #include <utility>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "content/browser/download/save_package.h" 44 #include "content/browser/download/save_package.h"
45 #include "content/browser/find_request_manager.h" 45 #include "content/browser/find_request_manager.h"
46 #include "content/browser/frame_host/cross_process_frame_connector.h" 46 #include "content/browser/frame_host/cross_process_frame_connector.h"
47 #include "content/browser/frame_host/interstitial_page_impl.h" 47 #include "content/browser/frame_host/interstitial_page_impl.h"
48 #include "content/browser/frame_host/navigation_entry_impl.h" 48 #include "content/browser/frame_host/navigation_entry_impl.h"
49 #include "content/browser/frame_host/navigation_handle_impl.h" 49 #include "content/browser/frame_host/navigation_handle_impl.h"
50 #include "content/browser/frame_host/navigator_impl.h" 50 #include "content/browser/frame_host/navigator_impl.h"
51 #include "content/browser/frame_host/render_frame_host_impl.h" 51 #include "content/browser/frame_host/render_frame_host_impl.h"
52 #include "content/browser/frame_host/render_frame_proxy_host.h" 52 #include "content/browser/frame_host/render_frame_proxy_host.h"
53 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" 53 #include "content/browser/frame_host/render_widget_host_view_child_frame.h"
54 #include "content/browser/geolocation/geolocation_service_context.h"
55 #include "content/browser/host_zoom_map_impl.h" 54 #include "content/browser/host_zoom_map_impl.h"
56 #include "content/browser/loader/resource_dispatcher_host_impl.h" 55 #include "content/browser/loader/resource_dispatcher_host_impl.h"
57 #include "content/browser/manifest/manifest_manager_host.h" 56 #include "content/browser/manifest/manifest_manager_host.h"
58 #include "content/browser/media/audio_stream_monitor.h" 57 #include "content/browser/media/audio_stream_monitor.h"
59 #include "content/browser/media/capture/web_contents_audio_muter.h" 58 #include "content/browser/media/capture/web_contents_audio_muter.h"
60 #include "content/browser/media/media_web_contents_observer.h" 59 #include "content/browser/media/media_web_contents_observer.h"
61 #include "content/browser/media/session/media_session.h" 60 #include "content/browser/media/session/media_session.h"
62 #include "content/browser/message_port_message_filter.h" 61 #include "content/browser/message_port_message_filter.h"
63 #include "content/browser/plugin_content_origin_whitelist.h" 62 #include "content/browser/plugin_content_origin_whitelist.h"
64 #include "content/browser/renderer_host/render_process_host_impl.h" 63 #include "content/browser/renderer_host/render_process_host_impl.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 #include "content/public/common/browser_side_navigation_policy.h" 112 #include "content/public/common/browser_side_navigation_policy.h"
114 #include "content/public/common/child_process_host.h" 113 #include "content/public/common/child_process_host.h"
115 #include "content/public/common/content_constants.h" 114 #include "content/public/common/content_constants.h"
116 #include "content/public/common/content_switches.h" 115 #include "content/public/common/content_switches.h"
117 #include "content/public/common/page_zoom.h" 116 #include "content/public/common/page_zoom.h"
118 #include "content/public/common/result_codes.h" 117 #include "content/public/common/result_codes.h"
119 #include "content/public/common/security_style.h" 118 #include "content/public/common/security_style.h"
120 #include "content/public/common/url_constants.h" 119 #include "content/public/common/url_constants.h"
121 #include "content/public/common/url_utils.h" 120 #include "content/public/common/url_utils.h"
122 #include "content/public/common/web_preferences.h" 121 #include "content/public/common/web_preferences.h"
122 #include "device/geolocation/geolocation_service_context.h"
123 #include "net/base/url_util.h" 123 #include "net/base/url_util.h"
124 #include "net/http/http_cache.h" 124 #include "net/http/http_cache.h"
125 #include "net/http/http_transaction_factory.h" 125 #include "net/http/http_transaction_factory.h"
126 #include "net/url_request/url_request_context.h" 126 #include "net/url_request/url_request_context.h"
127 #include "net/url_request/url_request_context_getter.h" 127 #include "net/url_request/url_request_context_getter.h"
128 #include "third_party/WebKit/public/web/WebSandboxFlags.h" 128 #include "third_party/WebKit/public/web/WebSandboxFlags.h"
129 #include "third_party/skia/include/core/SkBitmap.h" 129 #include "third_party/skia/include/core/SkBitmap.h"
130 #include "ui/accessibility/ax_tree_combiner.h" 130 #include "ui/accessibility/ax_tree_combiner.h"
131 #include "ui/base/layout.h" 131 #include "ui/base/layout.h"
132 #include "ui/gl/gl_switches.h" 132 #include "ui/gl/gl_switches.h"
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 maximum_zoom_percent_(static_cast<int>(kMaximumZoomFactor * 100)), 411 maximum_zoom_percent_(static_cast<int>(kMaximumZoomFactor * 100)),
412 zoom_scroll_remainder_(0), 412 zoom_scroll_remainder_(0),
413 render_view_message_source_(NULL), 413 render_view_message_source_(NULL),
414 render_frame_message_source_(NULL), 414 render_frame_message_source_(NULL),
415 fullscreen_widget_process_id_(ChildProcessHost::kInvalidUniqueID), 415 fullscreen_widget_process_id_(ChildProcessHost::kInvalidUniqueID),
416 fullscreen_widget_routing_id_(MSG_ROUTING_NONE), 416 fullscreen_widget_routing_id_(MSG_ROUTING_NONE),
417 fullscreen_widget_had_focus_at_shutdown_(false), 417 fullscreen_widget_had_focus_at_shutdown_(false),
418 is_subframe_(false), 418 is_subframe_(false),
419 force_disable_overscroll_content_(false), 419 force_disable_overscroll_content_(false),
420 last_dialog_suppressed_(false), 420 last_dialog_suppressed_(false),
421 geolocation_service_context_(new GeolocationServiceContext()), 421 geolocation_service_context_(new device::GeolocationServiceContext()),
422 accessibility_mode_( 422 accessibility_mode_(
423 BrowserAccessibilityStateImpl::GetInstance()->accessibility_mode()), 423 BrowserAccessibilityStateImpl::GetInstance()->accessibility_mode()),
424 audio_stream_monitor_(this), 424 audio_stream_monitor_(this),
425 bluetooth_connected_device_count_(0), 425 bluetooth_connected_device_count_(0),
426 virtual_keyboard_requested_(false), 426 virtual_keyboard_requested_(false),
427 page_scale_factor_is_one_(true), 427 page_scale_factor_is_one_(true),
428 mouse_lock_widget_(nullptr), 428 mouse_lock_widget_(nullptr),
429 loading_weak_factory_(this), 429 loading_weak_factory_(this),
430 weak_factory_(this) { 430 weak_factory_(this) {
431 frame_tree_.SetFrameRemoveListener( 431 frame_tree_.SetFrameRemoveListener(
(...skipping 1929 matching lines...) Expand 10 before | Expand all | Expand 10 after
2361 return nullptr; 2361 return nullptr;
2362 2362
2363 WebContents* guest = guest_manager->GetGuestByInstanceID( 2363 WebContents* guest = guest_manager->GetGuestByInstanceID(
2364 render_frame_host->GetProcess()->GetID(), browser_plugin_instance_id); 2364 render_frame_host->GetProcess()->GetID(), browser_plugin_instance_id);
2365 if (!guest) 2365 if (!guest)
2366 return nullptr; 2366 return nullptr;
2367 2367
2368 return guest->GetMainFrame(); 2368 return guest->GetMainFrame();
2369 } 2369 }
2370 2370
2371 GeolocationServiceContext* WebContentsImpl::GetGeolocationServiceContext() { 2371 device::GeolocationServiceContext*
2372 WebContentsImpl::GetGeolocationServiceContext() {
2372 return geolocation_service_context_.get(); 2373 return geolocation_service_context_.get();
2373 } 2374 }
2374 2375
2375 WakeLockServiceContext* WebContentsImpl::GetWakeLockServiceContext() { 2376 WakeLockServiceContext* WebContentsImpl::GetWakeLockServiceContext() {
2376 return wake_lock_service_context_.get(); 2377 return wake_lock_service_context_.get();
2377 } 2378 }
2378 2379
2379 void WebContentsImpl::OnShowValidationMessage( 2380 void WebContentsImpl::OnShowValidationMessage(
2380 const gfx::Rect& anchor_in_root_view, 2381 const gfx::Rect& anchor_in_root_view,
2381 const base::string16& main_text, 2382 const base::string16& main_text,
(...skipping 2792 matching lines...) Expand 10 before | Expand all | Expand 10 after
5174 for (RenderViewHost* render_view_host : render_view_host_set) 5175 for (RenderViewHost* render_view_host : render_view_host_set)
5175 render_view_host->OnWebkitPreferencesChanged(); 5176 render_view_host->OnWebkitPreferencesChanged();
5176 } 5177 }
5177 5178
5178 void WebContentsImpl::SetJavaScriptDialogManagerForTesting( 5179 void WebContentsImpl::SetJavaScriptDialogManagerForTesting(
5179 JavaScriptDialogManager* dialog_manager) { 5180 JavaScriptDialogManager* dialog_manager) {
5180 dialog_manager_ = dialog_manager; 5181 dialog_manager_ = dialog_manager;
5181 } 5182 }
5182 5183
5183 } // namespace content 5184 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698