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_UTILITY_UTILITY_THREAD_IMPL_H_ | 5 #ifndef CONTENT_UTILITY_UTILITY_THREAD_IMPL_H_ |
6 #define CONTENT_UTILITY_UTILITY_THREAD_IMPL_H_ | 6 #define CONTENT_UTILITY_UTILITY_THREAD_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/string16.h" | 14 #include "base/string16.h" |
15 #include "content/common/child_thread.h" | 15 #include "content/common/child_thread.h" |
16 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
17 #include "content/public/utility/utility_thread.h" | 17 #include "content/public/utility/utility_thread.h" |
18 | 18 |
19 class FilePath; | 19 class FilePath; |
20 class IndexedDBKey; | 20 class IndexedDBKey; |
21 | 21 |
22 namespace content { | 22 namespace content { |
23 class SerializedScriptValue; | 23 class SerializedScriptValue; |
24 } | |
25 | |
26 namespace webkit_glue { | |
27 class WebKitPlatformSupportImpl; | 24 class WebKitPlatformSupportImpl; |
28 } | 25 } |
29 | 26 |
30 // This class represents the background thread where the utility task runs. | 27 // This class represents the background thread where the utility task runs. |
31 class UtilityThreadImpl : public content::UtilityThread, | 28 class UtilityThreadImpl : public content::UtilityThread, |
32 public ChildThread { | 29 public ChildThread { |
33 public: | 30 public: |
34 UtilityThreadImpl(); | 31 UtilityThreadImpl(); |
35 virtual ~UtilityThreadImpl(); | 32 virtual ~UtilityThreadImpl(); |
36 | 33 |
(...skipping 20 matching lines...) Expand all Loading... |
57 void OnBatchModeStarted(); | 54 void OnBatchModeStarted(); |
58 void OnBatchModeFinished(); | 55 void OnBatchModeFinished(); |
59 | 56 |
60 #if defined(OS_POSIX) | 57 #if defined(OS_POSIX) |
61 void OnLoadPlugins(const std::vector<FilePath>& plugin_paths); | 58 void OnLoadPlugins(const std::vector<FilePath>& plugin_paths); |
62 #endif // OS_POSIX | 59 #endif // OS_POSIX |
63 | 60 |
64 // True when we're running in batch mode. | 61 // True when we're running in batch mode. |
65 bool batch_mode_; | 62 bool batch_mode_; |
66 | 63 |
67 scoped_ptr<webkit_glue::WebKitPlatformSupportImpl> webkit_platform_support_; | 64 scoped_ptr<content::WebKitPlatformSupportImpl> webkit_platform_support_; |
68 | 65 |
69 DISALLOW_COPY_AND_ASSIGN(UtilityThreadImpl); | 66 DISALLOW_COPY_AND_ASSIGN(UtilityThreadImpl); |
70 }; | 67 }; |
71 | 68 |
72 #endif // CONTENT_UTILITY_UTILITY_THREAD_IMPL_H_ | 69 #endif // CONTENT_UTILITY_UTILITY_THREAD_IMPL_H_ |
OLD | NEW |