OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ |
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ | 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <list> | 9 #include <list> |
10 #include <string> | 10 #include <string> |
(...skipping 19 matching lines...) Expand all Loading... |
30 namespace base { | 30 namespace base { |
31 class DictionaryValue; | 31 class DictionaryValue; |
32 } | 32 } |
33 | 33 |
34 namespace content { | 34 namespace content { |
35 class WebContents; | 35 class WebContents; |
36 } | 36 } |
37 | 37 |
38 #if defined(COMPILER_GCC) | 38 #if defined(COMPILER_GCC) |
39 | 39 |
40 namespace __gnu_cxx { | 40 namespace BASE_HASH_NAMESPACE { |
41 template <> | 41 template <> |
42 struct hash<content::WebContents*> { | 42 struct hash<content::WebContents*> { |
43 std::size_t operator()(content::WebContents* value) const { | 43 std::size_t operator()(content::WebContents* value) const { |
44 return reinterpret_cast<std::size_t>(value); | 44 return reinterpret_cast<std::size_t>(value); |
45 } | 45 } |
46 }; | 46 }; |
47 } | 47 } |
48 | 48 |
49 #endif | 49 #endif |
50 | 50 |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 | 430 |
431 DISALLOW_COPY_AND_ASSIGN(PrerenderManager); | 431 DISALLOW_COPY_AND_ASSIGN(PrerenderManager); |
432 }; | 432 }; |
433 | 433 |
434 PrerenderManager* FindPrerenderManagerUsingRenderProcessId( | 434 PrerenderManager* FindPrerenderManagerUsingRenderProcessId( |
435 int render_process_id); | 435 int render_process_id); |
436 | 436 |
437 } // namespace prerender | 437 } // namespace prerender |
438 | 438 |
439 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ | 439 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ |
OLD | NEW |