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

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp

Issue 2022783002: Skeleton of the Safe Browsing Subresource Filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Implement RenderFrameObserver::OnDestruct introduced by rebase. Created 4 years, 6 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 { 226 {
227 switch (reason) { 227 switch (reason) {
228 case ResourceRequestBlockedReasonCSP: 228 case ResourceRequestBlockedReasonCSP:
229 return protocol::Network::BlockedReasonEnum::Csp; 229 return protocol::Network::BlockedReasonEnum::Csp;
230 case ResourceRequestBlockedReasonMixedContent: 230 case ResourceRequestBlockedReasonMixedContent:
231 return protocol::Network::BlockedReasonEnum::MixedContent; 231 return protocol::Network::BlockedReasonEnum::MixedContent;
232 case ResourceRequestBlockedReasonOrigin: 232 case ResourceRequestBlockedReasonOrigin:
233 return protocol::Network::BlockedReasonEnum::Origin; 233 return protocol::Network::BlockedReasonEnum::Origin;
234 case ResourceRequestBlockedReasonInspector: 234 case ResourceRequestBlockedReasonInspector:
235 return protocol::Network::BlockedReasonEnum::Inspector; 235 return protocol::Network::BlockedReasonEnum::Inspector;
236 case ResourceRequestBlockedReasonSubresourceFilter:
237 return protocol::Network::BlockedReasonEnum::SubresourceFilter;
236 case ResourceRequestBlockedReasonOther: 238 case ResourceRequestBlockedReasonOther:
237 return protocol::Network::BlockedReasonEnum::Other; 239 return protocol::Network::BlockedReasonEnum::Other;
238 case ResourceRequestBlockedReasonNone: 240 case ResourceRequestBlockedReasonNone:
239 default: 241 default:
240 NOTREACHED(); 242 NOTREACHED();
241 return protocol::Network::BlockedReasonEnum::Other; 243 return protocol::Network::BlockedReasonEnum::Other;
242 } 244 }
243 } 245 }
244 246
245 } // namespace 247 } // namespace
(...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after
1119 , m_removeFinishedReplayXHRTimer(this, &InspectorNetworkAgent::removeFinishe dReplayXHRFired) 1121 , m_removeFinishedReplayXHRTimer(this, &InspectorNetworkAgent::removeFinishe dReplayXHRFired)
1120 { 1122 {
1121 } 1123 }
1122 1124
1123 bool InspectorNetworkAgent::shouldForceCORSPreflight() 1125 bool InspectorNetworkAgent::shouldForceCORSPreflight()
1124 { 1126 {
1125 return m_state->booleanProperty(NetworkAgentState::cacheDisabled, false); 1127 return m_state->booleanProperty(NetworkAgentState::cacheDisabled, false);
1126 } 1128 }
1127 1129
1128 } // namespace blink 1130 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698