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

Side by Side Diff: third_party/WebKit/Source/core/dom/ExecutionContext.h

Issue 2842253002: Move ReportLocalLoadFailed to ExecutionContext (Closed)
Patch Set: Created 3 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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2012 Google Inc. All Rights Reserved. 3 * Copyright (C) 2012 Google Inc. All Rights Reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 123
124 virtual bool CanExecuteScripts(ReasonForCallingCanExecuteScripts) { 124 virtual bool CanExecuteScripts(ReasonForCallingCanExecuteScripts) {
125 return false; 125 return false;
126 } 126 }
127 127
128 bool ShouldSanitizeScriptError(const String& source_url, AccessControlStatus); 128 bool ShouldSanitizeScriptError(const String& source_url, AccessControlStatus);
129 void DispatchErrorEvent(ErrorEvent*, AccessControlStatus); 129 void DispatchErrorEvent(ErrorEvent*, AccessControlStatus);
130 130
131 virtual void AddConsoleMessage(ConsoleMessage*) = 0; 131 virtual void AddConsoleMessage(ConsoleMessage*) = 0;
132 virtual void ExceptionThrown(ErrorEvent*) = 0; 132 virtual void ExceptionThrown(ErrorEvent*) = 0;
133 void ReportLocalLoadFailed(const String& url);
133 134
134 PublicURLManager& GetPublicURLManager(); 135 PublicURLManager& GetPublicURLManager();
135 136
136 virtual void RemoveURLFromMemoryCache(const KURL&); 137 virtual void RemoveURLFromMemoryCache(const KURL&);
137 138
138 void SuspendSuspendableObjects(); 139 void SuspendSuspendableObjects();
139 void ResumeSuspendableObjects(); 140 void ResumeSuspendableObjects();
140 void StopSuspendableObjects(); 141 void StopSuspendableObjects();
141 void NotifyContextDestroyed() override; 142 void NotifyContextDestroyed() override;
142 143
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 // |allowWindowInteraction()| and |consumeWindowInteraction()| in order to 218 // |allowWindowInteraction()| and |consumeWindowInteraction()| in order to
218 // increment and decrement the counter. 219 // increment and decrement the counter.
219 int window_interaction_tokens_; 220 int window_interaction_tokens_;
220 221
221 ReferrerPolicy referrer_policy_; 222 ReferrerPolicy referrer_policy_;
222 }; 223 };
223 224
224 } // namespace blink 225 } // namespace blink
225 226
226 #endif // ExecutionContext_h 227 #endif // ExecutionContext_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698