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

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

Issue 2192683003: Revert of Reland: Geolocation: move from content/browser to device/ (patchset #2 id:20001 of https:… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2810
Patch Set: 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
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/content_browser.gypi » ('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) 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #include "content/browser/download/save_package.h" 43 #include "content/browser/download/save_package.h"
44 #include "content/browser/find_request_manager.h" 44 #include "content/browser/find_request_manager.h"
45 #include "content/browser/frame_host/cross_process_frame_connector.h" 45 #include "content/browser/frame_host/cross_process_frame_connector.h"
46 #include "content/browser/frame_host/interstitial_page_impl.h" 46 #include "content/browser/frame_host/interstitial_page_impl.h"
47 #include "content/browser/frame_host/navigation_entry_impl.h" 47 #include "content/browser/frame_host/navigation_entry_impl.h"
48 #include "content/browser/frame_host/navigation_handle_impl.h" 48 #include "content/browser/frame_host/navigation_handle_impl.h"
49 #include "content/browser/frame_host/navigator_impl.h" 49 #include "content/browser/frame_host/navigator_impl.h"
50 #include "content/browser/frame_host/render_frame_host_impl.h" 50 #include "content/browser/frame_host/render_frame_host_impl.h"
51 #include "content/browser/frame_host/render_frame_proxy_host.h" 51 #include "content/browser/frame_host/render_frame_proxy_host.h"
52 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" 52 #include "content/browser/frame_host/render_widget_host_view_child_frame.h"
53 #include "content/browser/geolocation/geolocation_service_context.h"
53 #include "content/browser/host_zoom_map_impl.h" 54 #include "content/browser/host_zoom_map_impl.h"
54 #include "content/browser/loader/resource_dispatcher_host_impl.h" 55 #include "content/browser/loader/resource_dispatcher_host_impl.h"
55 #include "content/browser/manifest/manifest_manager_host.h" 56 #include "content/browser/manifest/manifest_manager_host.h"
56 #include "content/browser/media/audio_stream_monitor.h" 57 #include "content/browser/media/audio_stream_monitor.h"
57 #include "content/browser/media/capture/web_contents_audio_muter.h" 58 #include "content/browser/media/capture/web_contents_audio_muter.h"
58 #include "content/browser/media/media_web_contents_observer.h" 59 #include "content/browser/media/media_web_contents_observer.h"
59 #include "content/browser/media/session/media_session.h" 60 #include "content/browser/media/session/media_session.h"
60 #include "content/browser/message_port_message_filter.h" 61 #include "content/browser/message_port_message_filter.h"
61 #include "content/browser/plugin_content_origin_whitelist.h" 62 #include "content/browser/plugin_content_origin_whitelist.h"
62 #include "content/browser/renderer_host/render_process_host_impl.h" 63 #include "content/browser/renderer_host/render_process_host_impl.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 #include "content/public/common/browser_side_navigation_policy.h" 111 #include "content/public/common/browser_side_navigation_policy.h"
111 #include "content/public/common/child_process_host.h" 112 #include "content/public/common/child_process_host.h"
112 #include "content/public/common/content_constants.h" 113 #include "content/public/common/content_constants.h"
113 #include "content/public/common/content_switches.h" 114 #include "content/public/common/content_switches.h"
114 #include "content/public/common/page_zoom.h" 115 #include "content/public/common/page_zoom.h"
115 #include "content/public/common/result_codes.h" 116 #include "content/public/common/result_codes.h"
116 #include "content/public/common/security_style.h" 117 #include "content/public/common/security_style.h"
117 #include "content/public/common/url_constants.h" 118 #include "content/public/common/url_constants.h"
118 #include "content/public/common/url_utils.h" 119 #include "content/public/common/url_utils.h"
119 #include "content/public/common/web_preferences.h" 120 #include "content/public/common/web_preferences.h"
120 #include "device/geolocation/geolocation_service_context.h"
121 #include "net/base/url_util.h" 121 #include "net/base/url_util.h"
122 #include "net/http/http_cache.h" 122 #include "net/http/http_cache.h"
123 #include "net/http/http_transaction_factory.h" 123 #include "net/http/http_transaction_factory.h"
124 #include "net/url_request/url_request_context.h" 124 #include "net/url_request/url_request_context.h"
125 #include "net/url_request/url_request_context_getter.h" 125 #include "net/url_request/url_request_context_getter.h"
126 #include "third_party/WebKit/public/web/WebSandboxFlags.h" 126 #include "third_party/WebKit/public/web/WebSandboxFlags.h"
127 #include "third_party/skia/include/core/SkBitmap.h" 127 #include "third_party/skia/include/core/SkBitmap.h"
128 #include "ui/accessibility/ax_tree_combiner.h" 128 #include "ui/accessibility/ax_tree_combiner.h"
129 #include "ui/base/layout.h" 129 #include "ui/base/layout.h"
130 #include "ui/gl/gl_switches.h" 130 #include "ui/gl/gl_switches.h"
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 maximum_zoom_percent_(static_cast<int>(kMaximumZoomFactor * 100)), 409 maximum_zoom_percent_(static_cast<int>(kMaximumZoomFactor * 100)),
410 zoom_scroll_remainder_(0), 410 zoom_scroll_remainder_(0),
411 render_view_message_source_(NULL), 411 render_view_message_source_(NULL),
412 render_frame_message_source_(NULL), 412 render_frame_message_source_(NULL),
413 fullscreen_widget_process_id_(ChildProcessHost::kInvalidUniqueID), 413 fullscreen_widget_process_id_(ChildProcessHost::kInvalidUniqueID),
414 fullscreen_widget_routing_id_(MSG_ROUTING_NONE), 414 fullscreen_widget_routing_id_(MSG_ROUTING_NONE),
415 fullscreen_widget_had_focus_at_shutdown_(false), 415 fullscreen_widget_had_focus_at_shutdown_(false),
416 is_subframe_(false), 416 is_subframe_(false),
417 force_disable_overscroll_content_(false), 417 force_disable_overscroll_content_(false),
418 last_dialog_suppressed_(false), 418 last_dialog_suppressed_(false),
419 geolocation_service_context_(new device::GeolocationServiceContext()), 419 geolocation_service_context_(new GeolocationServiceContext()),
420 accessibility_mode_( 420 accessibility_mode_(
421 BrowserAccessibilityStateImpl::GetInstance()->accessibility_mode()), 421 BrowserAccessibilityStateImpl::GetInstance()->accessibility_mode()),
422 audio_stream_monitor_(this), 422 audio_stream_monitor_(this),
423 bluetooth_connected_device_count_(0), 423 bluetooth_connected_device_count_(0),
424 virtual_keyboard_requested_(false), 424 virtual_keyboard_requested_(false),
425 page_scale_factor_is_one_(true), 425 page_scale_factor_is_one_(true),
426 mouse_lock_widget_(nullptr), 426 mouse_lock_widget_(nullptr),
427 loading_weak_factory_(this), 427 loading_weak_factory_(this),
428 weak_factory_(this) { 428 weak_factory_(this) {
429 frame_tree_.SetFrameRemoveListener( 429 frame_tree_.SetFrameRemoveListener(
(...skipping 1929 matching lines...) Expand 10 before | Expand all | Expand 10 after
2359 return nullptr; 2359 return nullptr;
2360 2360
2361 WebContents* guest = guest_manager->GetGuestByInstanceID( 2361 WebContents* guest = guest_manager->GetGuestByInstanceID(
2362 render_frame_host->GetProcess()->GetID(), browser_plugin_instance_id); 2362 render_frame_host->GetProcess()->GetID(), browser_plugin_instance_id);
2363 if (!guest) 2363 if (!guest)
2364 return nullptr; 2364 return nullptr;
2365 2365
2366 return guest->GetMainFrame(); 2366 return guest->GetMainFrame();
2367 } 2367 }
2368 2368
2369 device::GeolocationServiceContext* 2369 GeolocationServiceContext* WebContentsImpl::GetGeolocationServiceContext() {
2370 WebContentsImpl::GetGeolocationServiceContext() {
2371 return geolocation_service_context_.get(); 2370 return geolocation_service_context_.get();
2372 } 2371 }
2373 2372
2374 WakeLockServiceContext* WebContentsImpl::GetWakeLockServiceContext() { 2373 WakeLockServiceContext* WebContentsImpl::GetWakeLockServiceContext() {
2375 return wake_lock_service_context_.get(); 2374 return wake_lock_service_context_.get();
2376 } 2375 }
2377 2376
2378 void WebContentsImpl::OnShowValidationMessage( 2377 void WebContentsImpl::OnShowValidationMessage(
2379 const gfx::Rect& anchor_in_root_view, 2378 const gfx::Rect& anchor_in_root_view,
2380 const base::string16& main_text, 2379 const base::string16& main_text,
(...skipping 2773 matching lines...) Expand 10 before | Expand all | Expand 10 after
5154 for (RenderViewHost* render_view_host : render_view_host_set) 5153 for (RenderViewHost* render_view_host : render_view_host_set)
5155 render_view_host->OnWebkitPreferencesChanged(); 5154 render_view_host->OnWebkitPreferencesChanged();
5156 } 5155 }
5157 5156
5158 void WebContentsImpl::SetJavaScriptDialogManagerForTesting( 5157 void WebContentsImpl::SetJavaScriptDialogManagerForTesting(
5159 JavaScriptDialogManager* dialog_manager) { 5158 JavaScriptDialogManager* dialog_manager) {
5160 dialog_manager_ = dialog_manager; 5159 dialog_manager_ = dialog_manager;
5161 } 5160 }
5162 5161
5163 } // namespace content 5162 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698