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 } // namespace client |
| 14 } // namespace blimp |
| 15 |
| 16 // Attaches a profile to the given BlimpContents as SupportsUserData::Data. This |
| 17 // must be called whenever a new BlimpContents has been created. |
| 18 void AttachProfileToBlimpContents(blimp::client::BlimpContents* blimp_contents, |
| 19 Profile* profile); |
| 20 |
| 21 // Returns the profile related to a specific BlimpContents. It must have been |
| 22 // previously attached using AttachProfileToBlimpContents. |
| 23 Profile* GetProfileFromBlimpContents( |
| 24 blimp::client::BlimpContents* blimp_contents); |
| 25 |
| 26 #endif // CHROME_BROWSER_ANDROID_BLIMP_BLIMP_CONTENTS_PROFILE_ATTACHMENT_H_ |
OLD | NEW |