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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BLIMP_CLIENT_PUBLIC_BLIMP_CLIENT_CONTEXT_DELEGATE_H_ 5 #ifndef BLIMP_CLIENT_PUBLIC_BLIMP_CLIENT_CONTEXT_DELEGATE_H_
6 #define BLIMP_CLIENT_PUBLIC_BLIMP_CLIENT_CONTEXT_DELEGATE_H_ 6 #define BLIMP_CLIENT_PUBLIC_BLIMP_CLIENT_CONTEXT_DELEGATE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "blimp/client/public/session/assignment.h"
9 10
10 namespace blimp { 11 namespace blimp {
11 namespace client { 12 namespace client {
12 class BlimpContents; 13 class BlimpContents;
13 14
14 // BlimpClientContextDelegate is how the BlimpClientContext gets the 15 // BlimpClientContextDelegate is how the BlimpClientContext gets the
15 // functionality it needs from its embedder. 16 // functionality it needs from its embedder.
16 class BlimpClientContextDelegate { 17 class BlimpClientContextDelegate {
17 public: 18 public:
18 virtual ~BlimpClientContextDelegate() = default; 19 virtual ~BlimpClientContextDelegate() = default;
19 20
20 // Attaches any required base::SupportsUserData::Data to the BlimpContents. 21 // Attaches any required base::SupportsUserData::Data to the BlimpContents.
21 virtual void AttachBlimpContentsHelpers(BlimpContents* blimp_contents) = 0; 22 virtual void AttachBlimpContentsHelpers(BlimpContents* blimp_contents) = 0;
22 23
24 // Called whenever an assignment request has finished and the resulting
25 // Assignment is ready to be used in an attempt to connect to the engine. The
26 // |result| is the result for the assignment request itself, not for the
27 // connection attempt. Only when |result| is ASSIGNMENT_REQUEST_RESULT_OK
28 // will an attempt actually be made to connect to the engine using the
29 // Assignment.
30 virtual void OnAssignmentConnectionAttempted(
31 AssignmentRequestResult result,
32 const Assignment& assignment) = 0;
33
23 protected: 34 protected:
24 BlimpClientContextDelegate() = default; 35 BlimpClientContextDelegate() = default;
25 36
26 private: 37 private:
27 DISALLOW_COPY_AND_ASSIGN(BlimpClientContextDelegate); 38 DISALLOW_COPY_AND_ASSIGN(BlimpClientContextDelegate);
28 }; 39 };
29 40
30 } // namespace client 41 } // namespace client
31 } // namespace blimp 42 } // namespace blimp
32 43
33 #endif // BLIMP_CLIENT_PUBLIC_BLIMP_CLIENT_CONTEXT_DELEGATE_H_ 44 #endif // BLIMP_CLIENT_PUBLIC_BLIMP_CLIENT_CONTEXT_DELEGATE_H_
OLDNEW
« 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