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

Side by Side Diff: content/browser/plugin_service_impl.cc

Issue 2857983003: Use constexpr TaskTraits constructor in content. (Closed)
Patch Set: CR gab #8 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/browser/plugin_service_impl.h" 5 #include "content/browser/plugin_service_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 UMA_HISTOGRAM_ENUMERATION("Plugin.FlashUsage", TOTAL_BROWSER_PROCESSES, 91 UMA_HISTOGRAM_ENUMERATION("Plugin.FlashUsage", TOTAL_BROWSER_PROCESSES,
92 FLASH_USAGE_ENUM_COUNT); 92 FLASH_USAGE_ENUM_COUNT);
93 } 93 }
94 } 94 }
95 95
96 PluginServiceImpl::~PluginServiceImpl() { 96 PluginServiceImpl::~PluginServiceImpl() {
97 } 97 }
98 98
99 void PluginServiceImpl::Init() { 99 void PluginServiceImpl::Init() {
100 plugin_list_task_runner_ = base::CreateSequencedTaskRunnerWithTraits( 100 plugin_list_task_runner_ = base::CreateSequencedTaskRunnerWithTraits(
101 base::TaskTraits() 101 {base::MayBlock(), base::TaskPriority::USER_VISIBLE,
102 .MayBlock() 102 base::TaskShutdownBehavior::SKIP_ON_SHUTDOWN});
103 .WithPriority(base::TaskPriority::USER_VISIBLE)
104 .WithShutdownBehavior(base::TaskShutdownBehavior::SKIP_ON_SHUTDOWN));
105 PluginList::Singleton()->set_will_load_plugins_callback( 103 PluginList::Singleton()->set_will_load_plugins_callback(
106 base::Bind(&WillLoadPluginsCallback, &plugin_list_sequence_checker_)); 104 base::Bind(&WillLoadPluginsCallback, &plugin_list_sequence_checker_));
107 105
108 RegisterPepperPlugins(); 106 RegisterPepperPlugins();
109 } 107 }
110 108
111 PpapiPluginProcessHost* PluginServiceImpl::FindPpapiPluginProcess( 109 PpapiPluginProcessHost* PluginServiceImpl::FindPpapiPluginProcess(
112 const base::FilePath& plugin_path, 110 const base::FilePath& plugin_path,
113 const base::FilePath& profile_data_directory) { 111 const base::FilePath& profile_data_directory) {
114 for (PpapiPluginProcessHostIterator iter; !iter.Done(); ++iter) { 112 for (PpapiPluginProcessHostIterator iter; !iter.Done(); ++iter) {
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 } 413 }
416 414
417 bool PluginServiceImpl::PpapiDevChannelSupported( 415 bool PluginServiceImpl::PpapiDevChannelSupported(
418 BrowserContext* browser_context, 416 BrowserContext* browser_context,
419 const GURL& document_url) { 417 const GURL& document_url) {
420 return GetContentClient()->browser()->IsPluginAllowedToUseDevChannelAPIs( 418 return GetContentClient()->browser()->IsPluginAllowedToUseDevChannelAPIs(
421 browser_context, document_url); 419 browser_context, document_url);
422 } 420 }
423 421
424 } // namespace content 422 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/net/quota_policy_cookie_store.cc ('k') | content/browser/renderer_host/clipboard_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698