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

Unified Diff: content/renderer/geolocation_dispatcher.cc

Issue 11232014: Move a bunch of code in content\renderer to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/geolocation_dispatcher.h ('k') | content/renderer/gpu/compositor_output_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/geolocation_dispatcher.cc
===================================================================
--- content/renderer/geolocation_dispatcher.cc (revision 163045)
+++ content/renderer/geolocation_dispatcher.cc (working copy)
@@ -20,8 +20,10 @@
using WebKit::WebGeolocationPermissionRequestManager;
using WebKit::WebGeolocationPosition;
+namespace content {
+
GeolocationDispatcher::GeolocationDispatcher(RenderViewImpl* render_view)
- : content::RenderViewObserver(render_view),
+ : RenderViewObserver(render_view),
pending_permissions_(new WebGeolocationPermissionRequestManager()),
enable_high_accuracy_(false),
updating_(false) {
@@ -113,7 +115,7 @@
// We have an updated geolocation position or error code.
void GeolocationDispatcher::OnPositionUpdated(
- const content::Geoposition& geoposition) {
+ const Geoposition& geoposition) {
// It is possible for the browser process to have queued an update message
// before receiving the stop updating message.
if (!updating_)
@@ -137,10 +139,10 @@
} else {
WebGeolocationError::Error code;
switch (geoposition.error_code) {
- case content::Geoposition::ERROR_CODE_PERMISSION_DENIED:
+ case Geoposition::ERROR_CODE_PERMISSION_DENIED:
code = WebGeolocationError::ErrorPermissionDenied;
break;
- case content::Geoposition::ERROR_CODE_POSITION_UNAVAILABLE:
+ case Geoposition::ERROR_CODE_POSITION_UNAVAILABLE:
code = WebGeolocationError::ErrorPositionUnavailable;
break;
default:
@@ -152,3 +154,5 @@
code, WebKit::WebString::fromUTF8(geoposition.error_message)));
}
}
+
+} // namespace content
« no previous file with comments | « content/renderer/geolocation_dispatcher.h ('k') | content/renderer/gpu/compositor_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698