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

Side by Side Diff: Source/WebCore/page/PageGroup.h

Issue 14188004: Remove UserScript support, which is not used by Chromium (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove one more test 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/WebCore/page/Frame.cpp ('k') | Source/WebCore/page/PageGroup.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) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 12 matching lines...) Expand all
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef PageGroup_h 26 #ifndef PageGroup_h
27 #define PageGroup_h 27 #define PageGroup_h
28 28
29 #include <wtf/HashSet.h> 29 #include <wtf/HashSet.h>
30 #include <wtf/Noncopyable.h> 30 #include <wtf/Noncopyable.h>
31 #include "LinkHash.h" 31 #include "LinkHash.h"
32 #include "Supplementable.h" 32 #include "Supplementable.h"
33 #include "UserScript.h"
34 #include "UserStyleSheet.h" 33 #include "UserStyleSheet.h"
35 #include <wtf/text/StringHash.h> 34 #include <wtf/text/StringHash.h>
36 35
37 namespace WebCore { 36 namespace WebCore {
38 37
39 #if ENABLE(VIDEO_TRACK) 38 #if ENABLE(VIDEO_TRACK)
40 class CaptionPreferencesChangedListener; 39 class CaptionPreferencesChangedListener;
41 class CaptionUserPreferences; 40 class CaptionUserPreferences;
42 #endif 41 #endif
43 class KURL; 42 class KURL;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 79
81 static void setShouldTrackVisitedLinks(bool); 80 static void setShouldTrackVisitedLinks(bool);
82 static void removeAllVisitedLinks(); 81 static void removeAllVisitedLinks();
83 82
84 const String& name() { return m_name; } 83 const String& name() { return m_name; }
85 unsigned identifier() { return m_identifier; } 84 unsigned identifier() { return m_identifier; }
86 85
87 StorageNamespace* localStorage(); 86 StorageNamespace* localStorage();
88 bool hasLocalStorage() { return m_localStorage; } 87 bool hasLocalStorage() { return m_localStorage; }
89 88
90 void addUserScriptToWorld(DOMWrapperWorld*, const String& source, const KURL&,
91 const Vector<String>& whitelist, const Vector< String>& blacklist,
92 UserScriptInjectionTime, UserContentInjectedFr ames);
93 void addUserStyleSheetToWorld(DOMWrapperWorld*, const String& source, co nst KURL&, 89 void addUserStyleSheetToWorld(DOMWrapperWorld*, const String& source, co nst KURL&,
94 const Vector<String>& whitelist, const Vec tor<String>& blacklist, 90 const Vector<String>& whitelist, const Vec tor<String>& blacklist,
95 UserContentInjectedFrames, 91 UserContentInjectedFrames,
96 UserStyleLevel level = UserStyleUserLevel, 92 UserStyleLevel level = UserStyleUserLevel,
97 UserStyleInjectionTime injectionTime = Inj ectInExistingDocuments); 93 UserStyleInjectionTime injectionTime = Inj ectInExistingDocuments);
98 void removeUserScriptFromWorld(DOMWrapperWorld*, const KURL&);
99 void removeUserStyleSheetFromWorld(DOMWrapperWorld*, const KURL&);
100
101 void removeUserScriptsFromWorld(DOMWrapperWorld*);
102 void removeUserStyleSheetsFromWorld(DOMWrapperWorld*);
103 94
104 void removeAllUserContent(); 95 void removeAllUserContent();
105 96
106 const UserScriptMap* userScripts() const { return m_userScripts.get(); }
107 const UserStyleSheetMap* userStyleSheets() const { return m_userStyleShe ets.get(); } 97 const UserStyleSheetMap* userStyleSheets() const { return m_userStyleShe ets.get(); }
108 98
109 GroupSettings* groupSettings() const { return m_groupSettings.get(); } 99 GroupSettings* groupSettings() const { return m_groupSettings.get(); }
110 100
111 #if ENABLE(VIDEO_TRACK) 101 #if ENABLE(VIDEO_TRACK)
112 void captionPreferencesChanged(); 102 void captionPreferencesChanged();
113 CaptionUserPreferences* captionPreferences(); 103 CaptionUserPreferences* captionPreferences();
114 #endif 104 #endif
115 105
116 private: 106 private:
117 PageGroup(Page*); 107 PageGroup(Page*);
118 108
119 void addVisitedLink(LinkHash stringHash); 109 void addVisitedLink(LinkHash stringHash);
120 void invalidatedInjectedStyleSheetCacheInAllFrames(); 110 void invalidatedInjectedStyleSheetCacheInAllFrames();
121 111
122 String m_name; 112 String m_name;
123 113
124 HashSet<Page*> m_pages; 114 HashSet<Page*> m_pages;
125 115
126 HashSet<LinkHash, LinkHashHash> m_visitedLinkHashes; 116 HashSet<LinkHash, LinkHashHash> m_visitedLinkHashes;
127 bool m_visitedLinksPopulated; 117 bool m_visitedLinksPopulated;
128 118
129 unsigned m_identifier; 119 unsigned m_identifier;
130 RefPtr<StorageNamespace> m_localStorage; 120 RefPtr<StorageNamespace> m_localStorage;
131 121
132 OwnPtr<UserScriptMap> m_userScripts;
133 OwnPtr<UserStyleSheetMap> m_userStyleSheets; 122 OwnPtr<UserStyleSheetMap> m_userStyleSheets;
134 123
135 OwnPtr<GroupSettings> m_groupSettings; 124 OwnPtr<GroupSettings> m_groupSettings;
136 125
137 #if ENABLE(VIDEO_TRACK) 126 #if ENABLE(VIDEO_TRACK)
138 OwnPtr<CaptionUserPreferences> m_captionPreferences; 127 OwnPtr<CaptionUserPreferences> m_captionPreferences;
139 #endif 128 #endif
140 }; 129 };
141 130
142 } // namespace WebCore 131 } // namespace WebCore
143 132
144 #endif // PageGroup_h 133 #endif // PageGroup_h
OLDNEW
« no previous file with comments | « Source/WebCore/page/Frame.cpp ('k') | Source/WebCore/page/PageGroup.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698