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

Unified Diff: components/proximity_auth/messenger_impl.h

Issue 1372283002: Hook up ProximityAuthSystem in EasyUnlockService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth_connection
Patch Set: remove log Created 5 years, 3 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 | « components/proximity_auth/fake_connection.cc ('k') | components/proximity_auth/messenger_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/proximity_auth/messenger_impl.h
diff --git a/components/proximity_auth/messenger_impl.h b/components/proximity_auth/messenger_impl.h
index a64c2aafb70c91e3babdc1aabcc41c7d6e95db09..88aac0b25546abb705a81cf2f17f71c93010393f 100644
--- a/components/proximity_auth/messenger_impl.h
+++ b/components/proximity_auth/messenger_impl.h
@@ -54,6 +54,7 @@ class MessengerImpl : public Messenger, public ConnectionObserver {
struct PendingMessage {
PendingMessage();
PendingMessage(const base::DictionaryValue& message);
+ PendingMessage(const std::string& message);
~PendingMessage();
// The message, serialized as JSON.
@@ -85,6 +86,10 @@ class MessengerImpl : public Messenger, public ConnectionObserver {
// response.
void HandleUnlockResponseMessage(const base::DictionaryValue& message);
+ // For iOS, we need to poll the phone every few seconds to keep the app alive
+ // in the background. This function starts the poll loop.
+ void PollScreenStateForIOS();
+
// ConnectionObserver:
void OnConnectionStatusChanged(Connection* connection,
Connection::Status old_status,
« no previous file with comments | « components/proximity_auth/fake_connection.cc ('k') | components/proximity_auth/messenger_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698