OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_IN_PROCESS_WEBKIT_WEBKIT_THREAD_H_ | 5 #ifndef CHROME_BROWSER_IN_PROCESS_WEBKIT_WEBKIT_THREAD_H_ |
6 #define CHROME_BROWSER_IN_PROCESS_WEBKIT_WEBKIT_THREAD_H_ | 6 #define CHROME_BROWSER_IN_PROCESS_WEBKIT_WEBKIT_THREAD_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/lock.h" | 9 #include "base/lock.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/ref_counted.h" | |
12 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
13 #include "base/thread.h" | 12 #include "base/thread.h" |
14 #include "chrome/browser/chrome_thread.h" | 13 #include "chrome/browser/chrome_thread.h" |
15 | 14 |
16 class BrowserWebKitClientImpl; | 15 class BrowserWebKitClientImpl; |
17 | 16 |
18 // This creates a WebKit main thread on instantiation (if not in | 17 // This creates a WebKit main thread on instantiation (if not in |
19 // --single-process mode) on construction and kills it on deletion. | 18 // --single-process mode) on construction and kills it on deletion. |
20 class WebKitThread { | 19 class WebKitThread { |
21 public: | 20 public: |
(...skipping 18 matching lines...) Expand all Loading... |
40 scoped_ptr<BrowserWebKitClientImpl> webkit_client_; | 39 scoped_ptr<BrowserWebKitClientImpl> webkit_client_; |
41 }; | 40 }; |
42 | 41 |
43 // Pointer to the actual WebKitThread. | 42 // Pointer to the actual WebKitThread. |
44 scoped_ptr<InternalWebKitThread> webkit_thread_; | 43 scoped_ptr<InternalWebKitThread> webkit_thread_; |
45 | 44 |
46 DISALLOW_COPY_AND_ASSIGN(WebKitThread); | 45 DISALLOW_COPY_AND_ASSIGN(WebKitThread); |
47 }; | 46 }; |
48 | 47 |
49 #endif // CHROME_BROWSER_IN_PROCESS_WEBKIT_WEBKIT_THREAD_H_ | 48 #endif // CHROME_BROWSER_IN_PROCESS_WEBKIT_WEBKIT_THREAD_H_ |
OLD | NEW |