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

Unified Diff: blimp/client/public/blimp_client_context_delegate.h

Issue 2211613002: Add AssignmentSource to BlimpClientContextImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge origin/master 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « blimp/client/public/blimp_client_context.h ('k') | blimp/client/public/session/assignment.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/client/public/blimp_client_context_delegate.h
diff --git a/blimp/client/public/blimp_client_context_delegate.h b/blimp/client/public/blimp_client_context_delegate.h
index 506d9483c19491bb8d29d54c794215aee9df91ac..ea51f19ffc4db4f7aa7edbb992fab913aaa19958 100644
--- a/blimp/client/public/blimp_client_context_delegate.h
+++ b/blimp/client/public/blimp_client_context_delegate.h
@@ -6,6 +6,7 @@
#define BLIMP_CLIENT_PUBLIC_BLIMP_CLIENT_CONTEXT_DELEGATE_H_
#include "base/macros.h"
+#include "blimp/client/public/session/assignment.h"
namespace blimp {
namespace client {
@@ -20,6 +21,16 @@ class BlimpClientContextDelegate {
// Attaches any required base::SupportsUserData::Data to the BlimpContents.
virtual void AttachBlimpContentsHelpers(BlimpContents* blimp_contents) = 0;
+ // Called whenever an assignment request has finished and the resulting
+ // Assignment is ready to be used in an attempt to connect to the engine. The
+ // |result| is the result for the assignment request itself, not for the
+ // connection attempt. Only when |result| is ASSIGNMENT_REQUEST_RESULT_OK
+ // will an attempt actually be made to connect to the engine using the
+ // Assignment.
+ virtual void OnAssignmentConnectionAttempted(
+ AssignmentRequestResult result,
+ const Assignment& assignment) = 0;
+
protected:
BlimpClientContextDelegate() = default;
« no previous file with comments | « blimp/client/public/blimp_client_context.h ('k') | blimp/client/public/session/assignment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698