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

Side by Side Diff: content/shell/test_runner/mock_web_document_subresource_filter.cc

Issue 2895643002: [subresource_filter] Display dev tools console message for subresource blocking (Closed)
Patch Set: rbyers@ feedback. 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/subresource_filter/resource-disallowed-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/shell/test_runner/mock_web_document_subresource_filter.h" 5 #include "content/shell/test_runner/mock_web_document_subresource_filter.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "third_party/WebKit/public/platform/WebURL.h" 10 #include "third_party/WebKit/public/platform/WebURL.h"
(...skipping 29 matching lines...) Expand all
40 return base::EndsWith(path, suffix, 40 return base::EndsWith(path, suffix,
41 base::CompareCase::SENSITIVE); 41 base::CompareCase::SENSITIVE);
42 }) == disallowed_path_suffixes_.end() 42 }) == disallowed_path_suffixes_.end()
43 ? kAllow 43 ? kAllow
44 : kDisallow; 44 : kDisallow;
45 } 45 }
46 46
47 void MockWebDocumentSubresourceFilter::ReportDisallowedLoad() {} 47 void MockWebDocumentSubresourceFilter::ReportDisallowedLoad() {}
48 48
49 bool MockWebDocumentSubresourceFilter::ShouldLogToConsole() { 49 bool MockWebDocumentSubresourceFilter::ShouldLogToConsole() {
50 return false; 50 return true;
51 } 51 }
52 52
53 } // namespace test_runner 53 } // namespace test_runner
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/subresource_filter/resource-disallowed-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698