| 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 18 matching lines...) Expand all Loading... |
| 29 * | 29 * |
| 30 */ | 30 */ |
| 31 | 31 |
| 32 #ifndef PrerendererClientImpl_h | 32 #ifndef PrerendererClientImpl_h |
| 33 #define PrerendererClientImpl_h | 33 #define PrerendererClientImpl_h |
| 34 | 34 |
| 35 #include "core/loader/PrerendererClient.h" | 35 #include "core/loader/PrerendererClient.h" |
| 36 #include "wtf/Noncopyable.h" | 36 #include "wtf/Noncopyable.h" |
| 37 #include "wtf/PassRefPtr.h" | 37 #include "wtf/PassRefPtr.h" |
| 38 | 38 |
| 39 namespace WebCore { | 39 namespace blink { |
| 40 class Prerender; | 40 class Prerender; |
| 41 } | 41 } |
| 42 | 42 |
| 43 namespace blink { | 43 namespace blink { |
| 44 | 44 |
| 45 class WebPrerendererClient; | 45 class WebPrerendererClient; |
| 46 | 46 |
| 47 class PrerendererClientImpl FINAL : public NoBaseWillBeGarbageCollected<Prerende
rerClientImpl>, public WebCore::PrerendererClient { | 47 class PrerendererClientImpl FINAL : public NoBaseWillBeGarbageCollected<Prerende
rerClientImpl>, public blink::PrerendererClient { |
| 48 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PrerendererClientImpl); | 48 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PrerendererClientImpl); |
| 49 WTF_MAKE_NONCOPYABLE(PrerendererClientImpl); | 49 WTF_MAKE_NONCOPYABLE(PrerendererClientImpl); |
| 50 public: | 50 public: |
| 51 explicit PrerendererClientImpl(WebPrerendererClient*); | 51 explicit PrerendererClientImpl(WebPrerendererClient*); |
| 52 | 52 |
| 53 void willAddPrerender(WebCore::Prerender*) OVERRIDE; | 53 void willAddPrerender(blink::Prerender*) OVERRIDE; |
| 54 | 54 |
| 55 virtual void trace(WebCore::Visitor* visitor) OVERRIDE { WebCore::Prerendere
rClient::trace(visitor); } | 55 virtual void trace(blink::Visitor* visitor) OVERRIDE { blink::PrerendererCli
ent::trace(visitor); } |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 WebPrerendererClient* m_client; | 58 WebPrerendererClient* m_client; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } | 61 } |
| 62 | 62 |
| 63 #endif // PrerendererClientImpl_h | 63 #endif // PrerendererClientImpl_h |
| OLD | NEW |