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

Unified 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: git merge origin/master before CQ for good measure 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
Index: chrome/browser/android/blimp/chrome_blimp_client_context_delegate.h
diff --git a/chrome/browser/android/blimp/chrome_blimp_client_context_delegate.h b/chrome/browser/android/blimp/chrome_blimp_client_context_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..c41765df005ba89232b769e01d0536d3d1bd3920
--- /dev/null
+++ b/chrome/browser/android/blimp/chrome_blimp_client_context_delegate.h
@@ -0,0 +1,45 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_ANDROID_BLIMP_CHROME_BLIMP_CLIENT_CONTEXT_DELEGATE_H_
+#define CHROME_BROWSER_ANDROID_BLIMP_CHROME_BLIMP_CLIENT_CONTEXT_DELEGATE_H_
+
+#include "base/macros.h"
+#include "blimp/client/public/blimp_client_context_delegate.h"
+
+class Profile;
+
+namespace blimp {
+namespace client {
+class BlimpClientContext;
+class BlimpContents;
+} // namespace client
+} // namespace blimp
+
+// The BlimpClientContextDelegate for //chrome which provides the necessary
+// functionality required to run Blimp.
+class ChromeBlimpClientContextDelegate
+ : public blimp::client::BlimpClientContextDelegate {
+ public:
+ // Constructs the object and attaches it to the BlimpClientContext that is
+ // used for the given profile.
+ explicit ChromeBlimpClientContextDelegate(Profile* profile);
+ // Unattaches itself from the BlimpClientContext before going away.
+ ~ChromeBlimpClientContextDelegate() override;
+
+ // BlimpClientContextDelegate implementation.
+ void AttachBlimpContentsHelpers(
+ blimp::client::BlimpContents* blimp_contents) override;
+
+ private:
+ // The profile this delegate is used for.
+ Profile* profile_;
+
+ // The BlimpClientContext this is the delegate for.
+ blimp::client::BlimpClientContext* blimp_client_context_;
+
+ DISALLOW_COPY_AND_ASSIGN(ChromeBlimpClientContextDelegate);
+};
+
+#endif // CHROME_BROWSER_ANDROID_BLIMP_CHROME_BLIMP_CLIENT_CONTEXT_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698