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

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: error 500 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
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 26 matching lines...) Expand all
37 37
38 namespace WebCore { 38 namespace WebCore {
39 39
40 class HTMLLinkElement; 40 class HTMLLinkElement;
41 41
42 class LinkResource { 42 class LinkResource {
43 WTF_MAKE_NONCOPYABLE(LinkResource); WTF_MAKE_FAST_ALLOCATED; 43 WTF_MAKE_NONCOPYABLE(LinkResource); WTF_MAKE_FAST_ALLOCATED;
44 public: 44 public:
45 enum Type { 45 enum Type {
46 Style, 46 Style,
47 Import 47 Import,
48 Manifest
48 }; 49 };
49 50
50 explicit LinkResource(HTMLLinkElement*); 51 explicit LinkResource(HTMLLinkElement*);
51 virtual ~LinkResource(); 52 virtual ~LinkResource();
52 53
53 bool shouldLoadResource() const; 54 bool shouldLoadResource() const;
54 LocalFrame* loadingFrame() const; 55 LocalFrame* loadingFrame() const;
55 56
56 virtual Type type() const = 0; 57 virtual Type type() const = 0;
57 virtual void process() = 0; 58 virtual void process() = 0;
(...skipping 15 matching lines...) Expand all
73 74
74 private: 75 private:
75 HTMLLinkElement* m_owner; 76 HTMLLinkElement* m_owner;
76 KURL m_url; 77 KURL m_url;
77 AtomicString m_charset; 78 AtomicString m_charset;
78 }; 79 };
79 80
80 } // namespace WebCore 81 } // namespace WebCore
81 82
82 #endif // LinkResource_h 83 #endif // LinkResource_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698