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

Side by Side Diff: sky/engine/core/loader/ImageLoader.h

Issue 709203002: Remove more oilpan. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/core/inspector/ConsoleMessageStorage.h ('k') | sky/engine/core/page/EventHandler.h » ('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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2004, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2009 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 19 matching lines...) Expand all
30 #include "wtf/HashSet.h" 30 #include "wtf/HashSet.h"
31 #include "wtf/WeakPtr.h" 31 #include "wtf/WeakPtr.h"
32 #include "wtf/text/AtomicString.h" 32 #include "wtf/text/AtomicString.h"
33 33
34 namespace blink { 34 namespace blink {
35 35
36 class IncrementLoadEventDelayCount; 36 class IncrementLoadEventDelayCount;
37 class FetchRequest; 37 class FetchRequest;
38 class Document; 38 class Document;
39 39
40 class ImageLoaderClient : public DummyBase<void> { 40 class ImageLoaderClient {
41 public: 41 public:
42 virtual void notifyImageSourceChanged() = 0; 42 virtual void notifyImageSourceChanged() = 0;
43 43
44 // Determines whether the observed ImageResource should have higher priority in the decoded resources cache. 44 // Determines whether the observed ImageResource should have higher priority in the decoded resources cache.
45 virtual bool requestsHighLiveResourceCachePriority() { return false; } 45 virtual bool requestsHighLiveResourceCachePriority() { return false; }
46 46
47 virtual void trace(Visitor*) { } 47 virtual void trace(Visitor*) { }
48 48
49 protected: 49 protected:
50 ImageLoaderClient() { } 50 ImageLoaderClient() { }
51 }; 51 };
52 52
53 class Element; 53 class Element;
54 class ImageLoader; 54 class ImageLoader;
55 class RenderImageResource; 55 class RenderImageResource;
56 56
57 template<typename T> class EventSender; 57 template<typename T> class EventSender;
58 typedef EventSender<ImageLoader> ImageEventSender; 58 typedef EventSender<ImageLoader> ImageEventSender;
59 59
60 class ImageLoader : public DummyBase<ImageLoader>, public ImageResourceClient { 60 class ImageLoader : public ImageResourceClient {
61 public: 61 public:
62 explicit ImageLoader(Element*); 62 explicit ImageLoader(Element*);
63 virtual ~ImageLoader(); 63 virtual ~ImageLoader();
64 void trace(Visitor*); 64 void trace(Visitor*);
65 65
66 enum LoadType { 66 enum LoadType {
67 LoadNormally, 67 LoadNormally,
68 ForceLoadImmediately 68 ForceLoadImmediately
69 }; 69 };
70 70
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 bool m_hasPendingLoadEvent : 1; 153 bool m_hasPendingLoadEvent : 1;
154 bool m_hasPendingErrorEvent : 1; 154 bool m_hasPendingErrorEvent : 1;
155 bool m_imageComplete : 1; 155 bool m_imageComplete : 1;
156 bool m_elementIsProtected : 1; 156 bool m_elementIsProtected : 1;
157 unsigned m_highPriorityClientCount; 157 unsigned m_highPriorityClientCount;
158 }; 158 };
159 159
160 } 160 }
161 161
162 #endif 162 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/inspector/ConsoleMessageStorage.h ('k') | sky/engine/core/page/EventHandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698