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

Unified Diff: blimp/engine/session/blimp_engine_session.cc

Issue 2091023006: Adds EngineGeolocationFeature for Blimp Geolocation project. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge 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
« no previous file with comments | « blimp/engine/session/blimp_engine_session.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/engine/session/blimp_engine_session.cc
diff --git a/blimp/engine/session/blimp_engine_session.cc b/blimp/engine/session/blimp_engine_session.cc
index 70134b671f01cbcba85f928a93333bf16cd2911b..e6d1d0517e699379ee9619ae33eda23ef22a7f76 100644
--- a/blimp/engine/session/blimp_engine_session.cc
+++ b/blimp/engine/session/blimp_engine_session.cc
@@ -5,6 +5,7 @@
#include "blimp/engine/session/blimp_engine_session.h"
#include <string>
+#include <utility>
#include "base/command_line.h"
#include "base/memory/ptr_util.h"
@@ -40,6 +41,8 @@
#include "blimp/net/thread_pipe_manager.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
+#include "content/public/browser/geolocation_delegate.h"
+#include "content/public/browser/geolocation_provider.h"
#include "content/public/browser/navigation_controller.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/render_view_host.h"
@@ -238,6 +241,9 @@ BlimpEngineSession::BlimpEngineSession(
blob_channel_sender_ = base::WrapUnique(
new BlobChannelSenderImpl(base::WrapUnique(new InMemoryBlobCache),
std::move(helium_blob_delegate)));
+
+ content::GeolocationProvider::SetGeolocationDelegate(
+ geolocation_feature_.CreateGeolocationDelegate());
}
BlimpEngineSession::~BlimpEngineSession() {
@@ -324,6 +330,9 @@ void BlimpEngineSession::RegisterFeatures() {
render_widget_feature_.set_ime_message_sender(
thread_pipe_manager_->RegisterFeature(BlimpMessage::kIme,
&render_widget_feature_));
+ geolocation_feature_.set_outgoing_message_processor(
+ thread_pipe_manager_->RegisterFeature(BlimpMessage::kGeolocation,
+ &geolocation_feature_));
blob_delegate_->set_outgoing_message_processor(
thread_pipe_manager_->RegisterFeature(BlimpMessage::kBlobChannel,
blob_delegate_));
« no previous file with comments | « blimp/engine/session/blimp_engine_session.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698