OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 25 matching lines...) Expand all Loading... |
36 #include "platform/weborigin/KURL.h" | 36 #include "platform/weborigin/KURL.h" |
37 #include "platform/weborigin/ReferrerPolicy.h" | 37 #include "platform/weborigin/ReferrerPolicy.h" |
38 #include "wtf/OwnPtr.h" | 38 #include "wtf/OwnPtr.h" |
39 #include "wtf/PassOwnPtr.h" | 39 #include "wtf/PassOwnPtr.h" |
40 #include "wtf/PassRefPtr.h" | 40 #include "wtf/PassRefPtr.h" |
41 #include "wtf/RefCounted.h" | 41 #include "wtf/RefCounted.h" |
42 #include "wtf/RefPtr.h" | 42 #include "wtf/RefPtr.h" |
43 #include "wtf/text/WTFString.h" | 43 #include "wtf/text/WTFString.h" |
44 | 44 |
45 namespace blink { | 45 namespace blink { |
46 class WebPrerender; | |
47 } | |
48 | |
49 namespace blink { | |
50 | 46 |
51 class PrerenderClient; | 47 class PrerenderClient; |
| 48 class WebPrerender; |
52 | 49 |
53 class PLATFORM_EXPORT Prerender : public RefCounted<Prerender> { | 50 class PLATFORM_EXPORT Prerender : public RefCounted<Prerender> { |
54 WTF_MAKE_NONCOPYABLE(Prerender); | 51 WTF_MAKE_NONCOPYABLE(Prerender); |
55 public: | 52 public: |
56 class ExtraData : public RefCounted<ExtraData> { | 53 class ExtraData : public RefCounted<ExtraData> { |
57 public: | 54 public: |
58 virtual ~ExtraData() { } | 55 virtual ~ExtraData() { } |
59 }; | 56 }; |
60 | 57 |
61 static PassRefPtr<Prerender> create(PrerenderClient*, const KURL&, unsigned
relTypes, const String& referrer, ReferrerPolicy); | 58 static PassRefPtr<Prerender> create(PrerenderClient*, const KURL&, unsigned
relTypes, const String& referrer, ReferrerPolicy); |
(...skipping 27 matching lines...) Expand all Loading... |
89 const unsigned m_relTypes; | 86 const unsigned m_relTypes; |
90 const String m_referrer; | 87 const String m_referrer; |
91 const ReferrerPolicy m_referrerPolicy; | 88 const ReferrerPolicy m_referrerPolicy; |
92 | 89 |
93 RefPtr<ExtraData> m_extraData; | 90 RefPtr<ExtraData> m_extraData; |
94 }; | 91 }; |
95 | 92 |
96 } | 93 } |
97 | 94 |
98 #endif // Prerender_h | 95 #endif // Prerender_h |
OLD | NEW |