OLD | NEW |
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 #ifndef CONTENT_BROWSER_PLUGIN_LOADER_POSIX_H_ | 5 #ifndef CONTENT_BROWSER_PLUGIN_LOADER_POSIX_H_ |
6 #define CONTENT_BROWSER_PLUGIN_LOADER_POSIX_H_ | 6 #define CONTENT_BROWSER_PLUGIN_LOADER_POSIX_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 : public NON_EXPORTED_BASE(UtilityProcessHostClient), | 48 : public NON_EXPORTED_BASE(UtilityProcessHostClient), |
49 public IPC::Sender { | 49 public IPC::Sender { |
50 public: | 50 public: |
51 PluginLoaderPosix(); | 51 PluginLoaderPosix(); |
52 | 52 |
53 // Must be called from the IO thread. The |callback| will be called on the IO | 53 // Must be called from the IO thread. The |callback| will be called on the IO |
54 // thread too. | 54 // thread too. |
55 void GetPlugins(const PluginService::GetPluginsCallback& callback); | 55 void GetPlugins(const PluginService::GetPluginsCallback& callback); |
56 | 56 |
57 // UtilityProcessHostClient: | 57 // UtilityProcessHostClient: |
58 virtual void OnProcessCrashed(int exit_code) OVERRIDE; | 58 virtual void OnProcessCrashed(int exit_code) override; |
59 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 59 virtual bool OnMessageReceived(const IPC::Message& message) override; |
60 | 60 |
61 // IPC::Sender: | 61 // IPC::Sender: |
62 virtual bool Send(IPC::Message* msg) OVERRIDE; | 62 virtual bool Send(IPC::Message* msg) override; |
63 | 63 |
64 private: | 64 private: |
65 virtual ~PluginLoaderPosix(); | 65 virtual ~PluginLoaderPosix(); |
66 | 66 |
67 // Called on the FILE thread to get the list of plugin paths to probe. | 67 // Called on the FILE thread to get the list of plugin paths to probe. |
68 void GetPluginsToLoad(); | 68 void GetPluginsToLoad(); |
69 | 69 |
70 // Must be called on the IO thread. | 70 // Must be called on the IO thread. |
71 virtual void LoadPluginsInternal(); | 71 virtual void LoadPluginsInternal(); |
72 | 72 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 // The time at which plugin loading started. | 113 // The time at which plugin loading started. |
114 base::TimeTicks load_start_time_; | 114 base::TimeTicks load_start_time_; |
115 | 115 |
116 friend class MockPluginLoaderPosix; | 116 friend class MockPluginLoaderPosix; |
117 DISALLOW_COPY_AND_ASSIGN(PluginLoaderPosix); | 117 DISALLOW_COPY_AND_ASSIGN(PluginLoaderPosix); |
118 }; | 118 }; |
119 | 119 |
120 } // namespace content | 120 } // namespace content |
121 | 121 |
122 #endif // CONTENT_BROWSER_PLUGIN_LOADER_POSIX_H_ | 122 #endif // CONTENT_BROWSER_PLUGIN_LOADER_POSIX_H_ |
OLD | NEW |