| 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_UTILITY_PROCESS_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_UTILITY_PROCESS_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_UTILITY_PROCESS_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_UTILITY_PROCESS_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 typedef base::Thread* (*UtilityMainThreadFactoryFunction)( | 28 typedef base::Thread* (*UtilityMainThreadFactoryFunction)( |
| 29 const std::string& id); | 29 const std::string& id); |
| 30 | 30 |
| 31 class CONTENT_EXPORT UtilityProcessHostImpl | 31 class CONTENT_EXPORT UtilityProcessHostImpl |
| 32 : public NON_EXPORTED_BASE(UtilityProcessHost), | 32 : public NON_EXPORTED_BASE(UtilityProcessHost), |
| 33 public BrowserChildProcessHostDelegate { | 33 public BrowserChildProcessHostDelegate { |
| 34 public: | 34 public: |
| 35 static void RegisterUtilityMainThreadFactory( | 35 static void RegisterUtilityMainThreadFactory( |
| 36 UtilityMainThreadFactoryFunction create); | 36 UtilityMainThreadFactoryFunction create); |
| 37 | 37 |
| 38 UtilityProcessHostImpl(UtilityProcessHostClient* client, | 38 UtilityProcessHostImpl( |
| 39 base::SequencedTaskRunner* client_task_runner); | 39 const scoped_refptr<UtilityProcessHostClient>& client, |
| 40 const scoped_refptr<base::SequencedTaskRunner>& client_task_runner); |
| 40 virtual ~UtilityProcessHostImpl(); | 41 virtual ~UtilityProcessHostImpl(); |
| 41 | 42 |
| 42 // UtilityProcessHost implementation: | 43 // UtilityProcessHost implementation: |
| 43 virtual bool Send(IPC::Message* message) OVERRIDE; | 44 virtual bool Send(IPC::Message* message) OVERRIDE; |
| 44 virtual bool StartBatchMode() OVERRIDE; | 45 virtual bool StartBatchMode() OVERRIDE; |
| 45 virtual void EndBatchMode() OVERRIDE; | 46 virtual void EndBatchMode() OVERRIDE; |
| 46 virtual void SetExposedDir(const base::FilePath& dir) OVERRIDE; | 47 virtual void SetExposedDir(const base::FilePath& dir) OVERRIDE; |
| 47 virtual void EnableMDns() OVERRIDE; | 48 virtual void EnableMDns() OVERRIDE; |
| 48 virtual void DisableSandbox() OVERRIDE; | 49 virtual void DisableSandbox() OVERRIDE; |
| 49 #if defined(OS_WIN) | 50 #if defined(OS_WIN) |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 97 |
| 97 // Used in single-process mode instead of process_. | 98 // Used in single-process mode instead of process_. |
| 98 scoped_ptr<base::Thread> in_process_thread_; | 99 scoped_ptr<base::Thread> in_process_thread_; |
| 99 | 100 |
| 100 DISALLOW_COPY_AND_ASSIGN(UtilityProcessHostImpl); | 101 DISALLOW_COPY_AND_ASSIGN(UtilityProcessHostImpl); |
| 101 }; | 102 }; |
| 102 | 103 |
| 103 } // namespace content | 104 } // namespace content |
| 104 | 105 |
| 105 #endif // CONTENT_BROWSER_UTILITY_PROCESS_HOST_IMPL_H_ | 106 #endif // CONTENT_BROWSER_UTILITY_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |