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

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

Issue 1874893002: Convert //content/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 // This class responds to requests from renderers for the list of plugins, and 5 // This class responds to requests from renderers for the list of plugins, and
6 // also a proxy object for plugin instances. 6 // also a proxy object for plugin instances.
7 7
8 #ifndef CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_ 8 #ifndef CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_
9 #define CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_ 9 #define CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_
10 10
11 #if !defined(ENABLE_PLUGINS) 11 #if !defined(ENABLE_PLUGINS)
12 #error "Plugins should be enabled" 12 #error "Plugins should be enabled"
13 #endif 13 #endif
14 14
15 #include <map> 15 #include <map>
16 #include <memory>
16 #include <set> 17 #include <set>
17 #include <vector> 18 #include <vector>
18 19
19 #include "base/compiler_specific.h" 20 #include "base/compiler_specific.h"
20 #include "base/macros.h" 21 #include "base/macros.h"
21 #include "base/memory/scoped_vector.h" 22 #include "base/memory/scoped_vector.h"
22 #include "base/memory/singleton.h" 23 #include "base/memory/singleton.h"
23 #include "base/synchronization/waitable_event_watcher.h" 24 #include "base/synchronization/waitable_event_watcher.h"
24 #include "base/threading/sequenced_worker_pool.h" 25 #include "base/threading/sequenced_worker_pool.h"
25 #include "base/time/time.h" 26 #include "base/time/time.h"
26 #include "build/build_config.h" 27 #include "build/build_config.h"
27 #include "content/browser/ppapi_plugin_process_host.h" 28 #include "content/browser/ppapi_plugin_process_host.h"
28 #include "content/common/content_export.h" 29 #include "content/common/content_export.h"
29 #include "content/public/browser/plugin_service.h" 30 #include "content/public/browser/plugin_service.h"
30 #include "content/public/common/pepper_plugin_info.h" 31 #include "content/public/common/pepper_plugin_info.h"
31 #include "ipc/ipc_channel_handle.h" 32 #include "ipc/ipc_channel_handle.h"
32 #include "url/gurl.h" 33 #include "url/gurl.h"
33 34
34 #if defined(OS_WIN) 35 #if defined(OS_WIN)
35 #include "base/memory/scoped_ptr.h"
36 #include "base/win/registry.h" 36 #include "base/win/registry.h"
37 #endif 37 #endif
38 38
39 #if defined(OS_POSIX) && !defined(OS_OPENBSD) && !defined(OS_ANDROID) 39 #if defined(OS_POSIX) && !defined(OS_OPENBSD) && !defined(OS_ANDROID)
40 #include "base/files/file_path_watcher.h" 40 #include "base/files/file_path_watcher.h"
41 #endif 41 #endif
42 42
43 namespace base { 43 namespace base {
44 class SingleThreadTaskRunner; 44 class SingleThreadTaskRunner;
45 } 45 }
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 154
155 // Used to detect if a given plugin is crashing over and over. 155 // Used to detect if a given plugin is crashing over and over.
156 std::map<base::FilePath, std::vector<base::Time> > crash_times_; 156 std::map<base::FilePath, std::vector<base::Time> > crash_times_;
157 157
158 DISALLOW_COPY_AND_ASSIGN(PluginServiceImpl); 158 DISALLOW_COPY_AND_ASSIGN(PluginServiceImpl);
159 }; 159 };
160 160
161 } // namespace content 161 } // namespace content
162 162
163 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_ 163 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/plugin_data_remover_impl.cc ('k') | content/browser/power_monitor_message_broadcaster_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698