Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(330)

Side by Side Diff: Source/web/PrerendererClientImpl.h

Issue 255983003: Oilpan: Move all supplements of Page, Document, and WorkerClients to the managed heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review comments Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698