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

Side by Side Diff: Source/core/loader/Prerenderer.h

Issue 13973026: remove memoryinstrumentation Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove the rest part of MemoryInstrumentation Created 7 years, 8 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
« no previous file with comments | « Source/core/loader/ImageLoader.cpp ('k') | Source/core/loader/Prerenderer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 class Prerenderer : public ActiveDOMObject { 52 class Prerenderer : public ActiveDOMObject {
53 WTF_MAKE_NONCOPYABLE(Prerenderer); 53 WTF_MAKE_NONCOPYABLE(Prerenderer);
54 public: 54 public:
55 virtual ~Prerenderer(); 55 virtual ~Prerenderer();
56 56
57 PassRefPtr<PrerenderHandle> render(PrerenderClient*, const KURL&); 57 PassRefPtr<PrerenderHandle> render(PrerenderClient*, const KURL&);
58 58
59 static PassOwnPtr<Prerenderer> create(Document*); 59 static PassOwnPtr<Prerenderer> create(Document*);
60 60
61 virtual void reportMemoryUsage(MemoryObjectInfo*) const;
62
63 // From ActiveDOMObject: 61 // From ActiveDOMObject:
64 virtual bool canSuspend() const OVERRIDE { return true; } 62 virtual bool canSuspend() const OVERRIDE { return true; }
65 virtual void stop() OVERRIDE; 63 virtual void stop() OVERRIDE;
66 virtual void suspend(ReasonForSuspension) OVERRIDE; 64 virtual void suspend(ReasonForSuspension) OVERRIDE;
67 virtual void resume() OVERRIDE; 65 virtual void resume() OVERRIDE;
68 66
69 private: 67 private:
70 typedef Vector<RefPtr<PrerenderHandle> > HandleVector; 68 typedef Vector<RefPtr<PrerenderHandle> > HandleVector;
71 typedef Vector<KURL> KURLVector; 69 typedef Vector<KURL> KURLVector;
72 70
73 explicit Prerenderer(Document*); 71 explicit Prerenderer(Document*);
74 72
75 Document* document(); 73 Document* document();
76 PrerendererClient* client(); 74 PrerendererClient* client();
77 75
78 bool m_initializedClient; 76 bool m_initializedClient;
79 PrerendererClient* m_client; 77 PrerendererClient* m_client;
80 HandleVector m_activeHandles; 78 HandleVector m_activeHandles;
81 HandleVector m_suspendedHandles; 79 HandleVector m_suspendedHandles;
82 }; 80 };
83 81
84 } 82 }
85 83
86 #endif // Prerenderer_h 84 #endif // Prerenderer_h
OLDNEW
« no previous file with comments | « Source/core/loader/ImageLoader.cpp ('k') | Source/core/loader/Prerenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698