| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 // Must be called from the IO thread. | 51 // Must be called from the IO thread. |
| 52 void LoadPlugins(scoped_refptr<base::MessageLoopProxy> target_loop, | 52 void LoadPlugins(scoped_refptr<base::MessageLoopProxy> target_loop, |
| 53 const PluginService::GetPluginsCallback& callback); | 53 const PluginService::GetPluginsCallback& callback); |
| 54 | 54 |
| 55 // UtilityProcessHost::Client: | 55 // UtilityProcessHost::Client: |
| 56 virtual void OnProcessCrashed(int exit_code) OVERRIDE; | 56 virtual void OnProcessCrashed(int exit_code) OVERRIDE; |
| 57 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 57 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 58 | 58 |
| 59 // IPC::Message::Sender: | 59 // IPC::Message::Sender: |
| 60 virtual bool Send(IPC::Message* msg); | 60 virtual bool Send(IPC::Message* msg) OVERRIDE; |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 struct PendingCallback { | 63 struct PendingCallback { |
| 64 PendingCallback(scoped_refptr<base::MessageLoopProxy> target_loop, | 64 PendingCallback(scoped_refptr<base::MessageLoopProxy> target_loop, |
| 65 const PluginService::GetPluginsCallback& callback); | 65 const PluginService::GetPluginsCallback& callback); |
| 66 ~PendingCallback(); | 66 ~PendingCallback(); |
| 67 | 67 |
| 68 scoped_refptr<base::MessageLoopProxy> target_loop; | 68 scoped_refptr<base::MessageLoopProxy> target_loop; |
| 69 PluginService::GetPluginsCallback callback; | 69 PluginService::GetPluginsCallback callback; |
| 70 }; | 70 }; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 std::vector<PendingCallback> callbacks_; | 112 std::vector<PendingCallback> callbacks_; |
| 113 | 113 |
| 114 // The time at which plugin loading started. | 114 // The time at which plugin loading started. |
| 115 base::TimeTicks load_start_time_; | 115 base::TimeTicks load_start_time_; |
| 116 | 116 |
| 117 friend class MockPluginLoaderPosix; | 117 friend class MockPluginLoaderPosix; |
| 118 DISALLOW_COPY_AND_ASSIGN(PluginLoaderPosix); | 118 DISALLOW_COPY_AND_ASSIGN(PluginLoaderPosix); |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 #endif // CONTENT_BROWSER_PLUGIN_LOADER_POSIX_H_ | 121 #endif // CONTENT_BROWSER_PLUGIN_LOADER_POSIX_H_ |
| OLD | NEW |