| 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_IN_PROCESS_WEBKIT_WEBKIT_THREAD_H_ | 5 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_WEBKIT_THREAD_H_ |
| 6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_WEBKIT_THREAD_H_ | 6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_WEBKIT_THREAD_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 void Initialize(); | 24 void Initialize(); |
| 25 | 25 |
| 26 private: | 26 private: |
| 27 // Must be private so that we can carefully control its lifetime. | 27 // Must be private so that we can carefully control its lifetime. |
| 28 class InternalWebKitThread : public content::BrowserThreadImpl { | 28 class InternalWebKitThread : public content::BrowserThreadImpl { |
| 29 public: | 29 public: |
| 30 InternalWebKitThread(); | 30 InternalWebKitThread(); |
| 31 virtual ~InternalWebKitThread(); | 31 virtual ~InternalWebKitThread(); |
| 32 // Does the actual initialization and shutdown of WebKit. Called at the | 32 // Does the actual initialization and shutdown of WebKit. Called at the |
| 33 // beginning and end of the thread's lifetime. | 33 // beginning and end of the thread's lifetime. |
| 34 virtual void Init(); | 34 virtual void Init() OVERRIDE; |
| 35 virtual void CleanUp(); | 35 virtual void CleanUp() OVERRIDE; |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 // The WebKitPlatformSupport implementation. Only access on WebKit thread. | 38 // The WebKitPlatformSupport implementation. Only access on WebKit thread. |
| 39 scoped_ptr<BrowserWebKitPlatformSupportImpl> webkit_platform_support_; | 39 scoped_ptr<BrowserWebKitPlatformSupportImpl> webkit_platform_support_; |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 // Pointer to the actual WebKitThread. | 42 // Pointer to the actual WebKitThread. |
| 43 scoped_ptr<InternalWebKitThread> webkit_thread_; | 43 scoped_ptr<InternalWebKitThread> webkit_thread_; |
| 44 | 44 |
| 45 DISALLOW_COPY_AND_ASSIGN(WebKitThread); | 45 DISALLOW_COPY_AND_ASSIGN(WebKitThread); |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_WEBKIT_THREAD_H_ | 48 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_WEBKIT_THREAD_H_ |
| OLD | NEW |