Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_BLIMP_CONTENTS_PROFILE_ATTACHMENT_H_ | |
| 6 #define CHROME_BROWSER_ANDROID_BLIMP_BLIMP_CONTENTS_PROFILE_ATTACHMENT_H_ | |
| 7 | |
| 8 class Profile; | |
| 9 | |
| 10 namespace blimp { | |
| 11 namespace client { | |
| 12 class BlimpContents; | |
| 13 } | |
|
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.
| |
| 14 } | |
| 15 | |
| 16 namespace chrome { | |
| 17 | |
| 18 // Attaches a profile to the given BlimpContents as SupportsUserData::Data. This | |
| 19 // must be called whenever a new BlimpContents has been created. | |
| 20 void AttachProfileToBlimpContents(blimp::client::BlimpContents* blimp_contents, | |
| 21 Profile* profile); | |
| 22 | |
| 23 // Returns the profile related to a specific BlimpContents. It must have been | |
| 24 // previously attached using AttachProfileToBlimpContents. | |
| 25 Profile* GetProfileFromBlimpContents( | |
| 26 blimp::client::BlimpContents* blimp_contents); | |
| 27 | |
| 28 } // namespace chrome | |
| 29 | |
| 30 #endif // CHROME_BROWSER_ANDROID_BLIMP_BLIMP_CONTENTS_PROFILE_ATTACHMENT_H_ | |
| OLD | NEW |