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

Side by Side Diff: chrome/browser/android/blimp/chrome_blimp_client_context_delegate.h

Issue 2132163002: Add BlimpClientContext and factory with real and dummy implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move-blimp-client-core-public-to-blimp-client
Patch Set: Added delegate-support to BlimpClientContext 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_ANDROID_BLIMP_CHROME_BLIMP_CLIENT_CONTEXT_DELEGATE_H_
6 #define CHROME_BROWSER_ANDROID_BLIMP_CHROME_BLIMP_CLIENT_CONTEXT_DELEGATE_H_
7
8 #include "base/macros.h"
9 #include "blimp/client/public/blimp_client_context_delegate.h"
10
11 class Profile;
12
13 namespace blimp {
14 namespace client {
15 class BlimpContents;
16 } // namespace client
17 } // namespace blimp
18
19 namespace chrome {
20
21 // The BlimpClientContextDelegate for //chrome which provides the necessary
22 // functionality required to run Blimp.
23 class ChromeBlimpClientContextDelegate
24 : public blimp::client::BlimpClientContextDelegate {
25 public:
26 // Constructs the object and attaches it to the BlimpClientContext that is
27 // used for the given profile.
28 explicit ChromeBlimpClientContextDelegate(Profile* profile);
29 // Unattaches itself from the BlimpClientContext before going away.
30 ~ChromeBlimpClientContextDelegate() override;
31
32 // BlimpClientContextDelegate implementation.
33 void AttachBlimpContentsHelpers(
34 blimp::client::BlimpContents* blimp_contents) override;
35
36 private:
37 // The profile this delegate is used for.
38 Profile* profile_;
39
40 DISALLOW_COPY_AND_ASSIGN(ChromeBlimpClientContextDelegate);
41 };
42
43 } // namespace chrome
44
45 #endif // CHROME_BROWSER_ANDROID_BLIMP_CHROME_BLIMP_CLIENT_CONTEXT_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698