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

Side by Side Diff: Source/core/html/LinkResource.h

Issue 249633002: Detect <link rel='manifest'> and notify embedder. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
« no previous file with comments | « Source/core/html/LinkRelAttribute.cpp ('k') | Source/core/loader/FrameLoaderClient.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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 27 matching lines...) Expand all
38 38
39 namespace WebCore { 39 namespace WebCore {
40 40
41 class HTMLLinkElement; 41 class HTMLLinkElement;
42 42
43 class LinkResource : public NoBaseWillBeGarbageCollectedFinalized<LinkResource> { 43 class LinkResource : public NoBaseWillBeGarbageCollectedFinalized<LinkResource> {
44 WTF_MAKE_NONCOPYABLE(LinkResource); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; 44 WTF_MAKE_NONCOPYABLE(LinkResource); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
45 public: 45 public:
46 enum Type { 46 enum Type {
47 Style, 47 Style,
48 Import 48 Import,
49 Manifest
49 }; 50 };
50 51
51 explicit LinkResource(HTMLLinkElement*); 52 explicit LinkResource(HTMLLinkElement*);
52 virtual ~LinkResource(); 53 virtual ~LinkResource();
53 54
54 bool shouldLoadResource() const; 55 bool shouldLoadResource() const;
55 LocalFrame* loadingFrame() const; 56 LocalFrame* loadingFrame() const;
56 57
57 virtual Type type() const = 0; 58 virtual Type type() const = 0;
58 virtual void process() = 0; 59 virtual void process() = 0;
(...skipping 17 matching lines...) Expand all
76 77
77 private: 78 private:
78 HTMLLinkElement* m_owner; 79 HTMLLinkElement* m_owner;
79 KURL m_url; 80 KURL m_url;
80 AtomicString m_charset; 81 AtomicString m_charset;
81 }; 82 };
82 83
83 } // namespace WebCore 84 } // namespace WebCore
84 85
85 #endif // LinkResource_h 86 #endif // LinkResource_h
OLDNEW
« no previous file with comments | « Source/core/html/LinkRelAttribute.cpp ('k') | Source/core/loader/FrameLoaderClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698