| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CC_RESOURCES_UI_RESOURCE_REQUEST_H_ | 5 #ifndef CC_RESOURCES_UI_RESOURCE_REQUEST_H_ |
| 6 #define CC_RESOURCES_UI_RESOURCE_REQUEST_H_ | 6 #define CC_RESOURCES_UI_RESOURCE_REQUEST_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "cc/base/cc_export.h" | 11 #include "cc/cc_export.h" |
| 12 #include "cc/resources/ui_resource_bitmap.h" | 12 #include "cc/resources/ui_resource_bitmap.h" |
| 13 #include "cc/resources/ui_resource_client.h" | 13 #include "cc/resources/ui_resource_client.h" |
| 14 | 14 |
| 15 namespace cc { | 15 namespace cc { |
| 16 | 16 |
| 17 class CC_EXPORT UIResourceRequest { | 17 class CC_EXPORT UIResourceRequest { |
| 18 public: | 18 public: |
| 19 enum UIResourceRequestType { | 19 enum UIResourceRequestType { |
| 20 UI_RESOURCE_CREATE, | 20 UI_RESOURCE_CREATE, |
| 21 UI_RESOURCE_DELETE, | 21 UI_RESOURCE_DELETE, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 UIResourceRequestType type_; | 43 UIResourceRequestType type_; |
| 44 UIResourceId id_; | 44 UIResourceId id_; |
| 45 std::unique_ptr<UIResourceBitmap> bitmap_; | 45 std::unique_ptr<UIResourceBitmap> bitmap_; |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 } // namespace cc | 48 } // namespace cc |
| 49 | 49 |
| 50 #endif // CC_RESOURCES_UI_RESOURCE_REQUEST_H_ | 50 #endif // CC_RESOURCES_UI_RESOURCE_REQUEST_H_ |
| OLD | NEW |