Chromium Code Reviews| 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 26 matching lines...) Expand all Loading... | |
| 37 #include "wtf/PassRefPtr.h" | 37 #include "wtf/PassRefPtr.h" |
| 38 | 38 |
| 39 namespace WebCore { | 39 namespace WebCore { |
| 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 WebCore::PrerendererClient { | 47 class PrerendererClientImpl FINAL : public NoBaseWillBeGarbageCollected<Prerende rerClientImpl>, public WebCore::PrerendererClient { |
|
haraken
2014/04/30 02:41:22
Ditto. You can make PrerendererClient NoBaseWillBe
| |
| 48 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PrerendererClientImpl); | |
| 48 WTF_MAKE_NONCOPYABLE(PrerendererClientImpl); | 49 WTF_MAKE_NONCOPYABLE(PrerendererClientImpl); |
| 49 public: | 50 public: |
| 50 explicit PrerendererClientImpl(WebPrerendererClient*); | 51 explicit PrerendererClientImpl(WebPrerendererClient*); |
| 51 | 52 |
| 52 void willAddPrerender(WebCore::Prerender*) OVERRIDE; | 53 void willAddPrerender(WebCore::Prerender*) OVERRIDE; |
| 53 | 54 |
| 54 virtual void trace(WebCore::Visitor*) OVERRIDE { } | 55 virtual void trace(WebCore::Visitor*) OVERRIDE { } |
| 55 | 56 |
| 56 private: | 57 private: |
| 57 WebPrerendererClient* m_client; | 58 WebPrerendererClient* m_client; |
|
haraken
2014/04/30 02:41:22
Are you sure that this raw pointer is safe?
Some
zerny-chromium
2014/04/30 08:29:34
I'm not sure either, but that is orthogonal to thi
zerny-chromium
2014/04/30 12:11:26
Again, here, it is not clear what lifetime guarant
| |
| 58 }; | 59 }; |
| 59 | 60 |
| 60 } | 61 } |
| 61 | 62 |
| 62 #endif // PrerendererClientImpl_h | 63 #endif // PrerendererClientImpl_h |
| OLD | NEW |