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

Unified Diff: chrome/browser/android/blimp/blimp_contents_profile_attachment.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/blimp/blimp_contents_profile_attachment.h
diff --git a/chrome/browser/android/blimp/blimp_contents_profile_attachment.h b/chrome/browser/android/blimp/blimp_contents_profile_attachment.h
new file mode 100644
index 0000000000000000000000000000000000000000..0191aaca36b012f603c7fc5f10baa17803b95b54
--- /dev/null
+++ b/chrome/browser/android/blimp/blimp_contents_profile_attachment.h
@@ -0,0 +1,30 @@
+// 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_BLIMP_CONTENTS_PROFILE_ATTACHMENT_H_
+#define CHROME_BROWSER_ANDROID_BLIMP_BLIMP_CONTENTS_PROFILE_ATTACHMENT_H_
+
+class Profile;
+
+namespace blimp {
+namespace client {
+class BlimpContents;
+}
David Trainor- moved to gerrit 2016/07/14 19:07:13 // namespaces? I don't think they're necessary fo
nyquist 2016/07/14 22:56:50 Done.
+}
+
+namespace chrome {
+
+// Attaches a profile to the given BlimpContents as SupportsUserData::Data. This
+// must be called whenever a new BlimpContents has been created.
+void AttachProfileToBlimpContents(blimp::client::BlimpContents* blimp_contents,
+ Profile* profile);
+
+// Returns the profile related to a specific BlimpContents. It must have been
+// previously attached using AttachProfileToBlimpContents.
+Profile* GetProfileFromBlimpContents(
+ blimp::client::BlimpContents* blimp_contents);
+
+} // namespace chrome
+
+#endif // CHROME_BROWSER_ANDROID_BLIMP_BLIMP_CONTENTS_PROFILE_ATTACHMENT_H_

Powered by Google App Engine
This is Rietveld 408576698