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

Side by Side Diff: content/test/test_blink_web_unit_test_support.cc

Issue 2156803002: [HBD] Remove PluginCache and reload plugin list when origin changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes per alexmos@'s comments + DOMImplementation::createDocument fix Created 4 years, 4 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 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/test/test_blink_web_unit_test_support.h" 5 #include "content/test/test_blink_web_unit_test_support.h"
6 6
7 #include "base/feature_list.h" 7 #include "base/feature_list.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 return url_loader_factory_.get(); 285 return url_loader_factory_.get();
286 } 286 }
287 287
288 blink::WebThread* TestBlinkWebUnitTestSupport::currentThread() { 288 blink::WebThread* TestBlinkWebUnitTestSupport::currentThread() {
289 if (web_thread_ && web_thread_->isCurrentThread()) 289 if (web_thread_ && web_thread_->isCurrentThread())
290 return web_thread_.get(); 290 return web_thread_.get();
291 return BlinkPlatformImpl::currentThread(); 291 return BlinkPlatformImpl::currentThread();
292 } 292 }
293 293
294 void TestBlinkWebUnitTestSupport::getPluginList( 294 void TestBlinkWebUnitTestSupport::getPluginList(
295 bool refresh, blink::WebPluginListBuilder* builder) { 295 bool refresh,
296 const blink::WebSecurityOrigin& mainFrameOrigin,
297 blink::WebPluginListBuilder* builder) {
296 builder->addPlugin("pdf", "pdf", "pdf-files"); 298 builder->addPlugin("pdf", "pdf", "pdf-files");
297 builder->addMediaTypeToLastPlugin("application/pdf", "pdf"); 299 builder->addMediaTypeToLastPlugin("application/pdf", "pdf");
298 } 300 }
299 301
300 } // namespace content 302 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698