| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_SEARCH_PROVIDER_LOGOS_LOGO_COMMON_H_ | 5 #ifndef COMPONENTS_SEARCH_PROVIDER_LOGOS_LOGO_COMMON_H_ |
| 6 #define COMPONENTS_SEARCH_PROVIDER_LOGOS_LOGO_COMMON_H_ | 6 #define COMPONENTS_SEARCH_PROVIDER_LOGOS_LOGO_COMMON_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include <string> | 10 #include <string> |
| 9 | 11 |
| 10 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/ref_counted_memory.h" | 13 #include "base/memory/ref_counted_memory.h" |
| 12 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 13 #include "third_party/skia/include/core/SkBitmap.h" | 15 #include "third_party/skia/include/core/SkBitmap.h" |
| 14 | 16 |
| 15 namespace search_provider_logos { | 17 namespace search_provider_logos { |
| 16 | 18 |
| 17 // The maximum number of milliseconds that a logo can be cached. | 19 // The maximum number of milliseconds that a logo can be cached. |
| 18 extern const int64 kMaxTimeToLiveMS; | 20 extern const int64_t kMaxTimeToLiveMS; |
| 19 | 21 |
| 20 struct LogoMetadata { | 22 struct LogoMetadata { |
| 21 LogoMetadata(); | 23 LogoMetadata(); |
| 22 ~LogoMetadata(); | 24 ~LogoMetadata(); |
| 23 | 25 |
| 24 // For use by the client ---------------------------------------------------- | 26 // For use by the client ---------------------------------------------------- |
| 25 | 27 |
| 26 // The URL to load when the logo is clicked. | 28 // The URL to load when the logo is clicked. |
| 27 std::string on_click_url; | 29 std::string on_click_url; |
| 28 // The accessibility text for the logo. | 30 // The accessibility text for the logo. |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 67 |
| 66 // The logo image. | 68 // The logo image. |
| 67 SkBitmap image; | 69 SkBitmap image; |
| 68 // Metadata about the logo. | 70 // Metadata about the logo. |
| 69 LogoMetadata metadata; | 71 LogoMetadata metadata; |
| 70 }; | 72 }; |
| 71 | 73 |
| 72 } // namespace search_provider_logos | 74 } // namespace search_provider_logos |
| 73 | 75 |
| 74 #endif // COMPONENTS_SEARCH_PROVIDER_LOGOS_LOGO_COMMON_H_ | 76 #endif // COMPONENTS_SEARCH_PROVIDER_LOGOS_LOGO_COMMON_H_ |
| OLD | NEW |