OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_DOWNLOAD_ID_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_DOWNLOAD_ID_H_ |
6 #define CONTENT_PUBLIC_BROWSER_DOWNLOAD_ID_H_ | 6 #define CONTENT_PUBLIC_BROWSER_DOWNLOAD_ID_H_ |
7 #pragma once | |
8 | 7 |
9 #include <iosfwd> | 8 #include <iosfwd> |
10 #include <string> | 9 #include <string> |
11 | 10 |
12 #include "base/hash_tables.h" | 11 #include "base/hash_tables.h" |
13 #include "base/stringprintf.h" | 12 #include "base/stringprintf.h" |
14 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
15 | 14 |
16 namespace content { | 15 namespace content { |
17 | 16 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 return id.hash(); | 93 return id.hash(); |
95 } | 94 } |
96 }; | 95 }; |
97 #elif defined(COMPILER_MSVC) | 96 #elif defined(COMPILER_MSVC) |
98 inline size_t hash_value(const content::DownloadId& id) { | 97 inline size_t hash_value(const content::DownloadId& id) { |
99 return id.hash(); | 98 return id.hash(); |
100 } | 99 } |
101 #endif // COMPILER | 100 #endif // COMPILER |
102 } | 101 } |
103 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_ID_H_ | 102 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_ID_H_ |
OLD | NEW |