Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Side by Side Diff: content/browser/in_process_webkit/webkit_thread.h

Issue 8776007: Start/stop WebKitThread from BrowserMainLoop like other BrowserThreads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head. Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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"
11 #include "base/threading/thread.h" 11 #include "base/threading/thread.h"
12 #include "content/browser/browser_thread_impl.h" 12 #include "content/browser/browser_thread_impl.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 14
15 class BrowserWebKitPlatformSupportImpl; 15 class BrowserWebKitPlatformSupportImpl;
16 16
17 namespace content {
18
17 // This creates a WebKit main thread on instantiation (if not in 19 // This creates a WebKit main thread on instantiation (if not in
18 // --single-process mode) on construction and kills it on deletion. 20 // --single-process mode) on construction and kills it on deletion.
19 class CONTENT_EXPORT WebKitThread { 21 class CONTENT_EXPORT WebKitThread {
20 public: 22 public:
21 // Called from the UI thread. 23 // Called from the UI thread.
22 WebKitThread(); 24 WebKitThread();
23 ~WebKitThread(); 25 ~WebKitThread();
24 void Initialize(); 26 void Initialize();
25 27
26 private: 28 private:
(...skipping 11 matching lines...) Expand all
38 // The WebKitPlatformSupport implementation. Only access on WebKit thread. 40 // The WebKitPlatformSupport implementation. Only access on WebKit thread.
39 scoped_ptr<BrowserWebKitPlatformSupportImpl> webkit_platform_support_; 41 scoped_ptr<BrowserWebKitPlatformSupportImpl> webkit_platform_support_;
40 }; 42 };
41 43
42 // Pointer to the actual WebKitThread. 44 // Pointer to the actual WebKitThread.
43 scoped_ptr<InternalWebKitThread> webkit_thread_; 45 scoped_ptr<InternalWebKitThread> webkit_thread_;
44 46
45 DISALLOW_COPY_AND_ASSIGN(WebKitThread); 47 DISALLOW_COPY_AND_ASSIGN(WebKitThread);
46 }; 48 };
47 49
50 } // namespace content
51
48 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_WEBKIT_THREAD_H_ 52 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_WEBKIT_THREAD_H_
OLDNEW
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/browser/in_process_webkit/webkit_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698