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

Unified Diff: content/browser/geolocation/mock_location_arbitrator.cc

Issue 2188933002: Revert of Reland: Geolocation: move from content/browser to device/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
Index: content/browser/geolocation/mock_location_arbitrator.cc
diff --git a/content/browser/geolocation/mock_location_arbitrator.cc b/content/browser/geolocation/mock_location_arbitrator.cc
new file mode 100644
index 0000000000000000000000000000000000000000..1ebef72974fc195a1c338eb3d0079bf10dae7f90
--- /dev/null
+++ b/content/browser/geolocation/mock_location_arbitrator.cc
@@ -0,0 +1,33 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/browser/geolocation/mock_location_arbitrator.h"
+
+#include "base/message_loop/message_loop.h"
+#include "content/public/common/geoposition.h"
+
+namespace content {
+
+MockLocationArbitrator::MockLocationArbitrator()
+ : permission_granted_(false),
+ providers_started_(false) {
+}
+
+void MockLocationArbitrator::StartProviders(bool enable_high_accuracy) {
+ providers_started_ = true;
+}
+
+void MockLocationArbitrator::StopProviders() {
+ providers_started_ = false;
+}
+
+void MockLocationArbitrator::OnPermissionGranted() {
+ permission_granted_ = true;
+}
+
+bool MockLocationArbitrator::HasPermissionBeenGranted() const {
+ return permission_granted_;
+}
+
+} // namespace content
« no previous file with comments | « content/browser/geolocation/mock_location_arbitrator.h ('k') | content/browser/geolocation/mock_location_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698