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 CHROMECAST_BROWSER_CAST_WEB_CONTENTS_USER_DATA_H_ |
| 6 #define CHROMECAST_BROWSER_CAST_WEB_CONTENTS_USER_DATA_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "base/supports_user_data.h" |
| 10 |
| 11 namespace chromecast { |
| 12 namespace shell { |
| 13 |
| 14 class CastWebContentsUserData : public base::SupportsUserData::Data { |
| 15 public: |
| 16 static void* UserDataKey() { |
| 17 return &key_; |
| 18 } |
| 19 |
| 20 explicit CastWebContentsUserData(int resolution_height); |
| 21 |
| 22 int resolution_height() const { return resolution_height_; } |
| 23 |
| 24 private: |
| 25 static int key_; |
| 26 |
| 27 const int resolution_height_; |
| 28 |
| 29 DISALLOW_COPY_AND_ASSIGN(CastWebContentsUserData); |
| 30 }; |
| 31 |
| 32 } // namespace shell |
| 33 } // namespace chromecast |
| 34 |
| 35 #endif // CHROMECAST_BROWSER_CAST_WEB_CONTENTS_USER_DATA_H_ |
OLD | NEW |