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

Unified Diff: blimp/client/public/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
« no previous file with comments | « blimp/client/public/blimp_client_context.h ('k') | blimp/client/public/blimp_contents.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
new file mode 100644
index 0000000000000000000000000000000000000000..506d9483c19491bb8d29d54c794215aee9df91ac
--- /dev/null
+++ b/blimp/client/public/blimp_client_context_delegate.h
@@ -0,0 +1,33 @@
+// 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 BLIMP_CLIENT_PUBLIC_BLIMP_CLIENT_CONTEXT_DELEGATE_H_
+#define BLIMP_CLIENT_PUBLIC_BLIMP_CLIENT_CONTEXT_DELEGATE_H_
+
+#include "base/macros.h"
+
+namespace blimp {
+namespace client {
+class BlimpContents;
+
+// BlimpClientContextDelegate is how the BlimpClientContext gets the
+// functionality it needs from its embedder.
+class BlimpClientContextDelegate {
+ public:
+ virtual ~BlimpClientContextDelegate() = default;
+
+ // Attaches any required base::SupportsUserData::Data to the BlimpContents.
+ virtual void AttachBlimpContentsHelpers(BlimpContents* blimp_contents) = 0;
+
+ protected:
+ BlimpClientContextDelegate() = default;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(BlimpClientContextDelegate);
+};
+
+} // namespace client
+} // namespace blimp
+
+#endif // BLIMP_CLIENT_PUBLIC_BLIMP_CLIENT_CONTEXT_DELEGATE_H_
« no previous file with comments | « blimp/client/public/blimp_client_context.h ('k') | blimp/client/public/blimp_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698