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

Side by Side Diff: content/ppapi_plugin/ppapi_webkit_thread.h

Issue 6981001: Make the Pepper proxy support in-process font rendering. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 months 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
« no previous file with comments | « content/ppapi_plugin/ppapi_thread.cc ('k') | content/ppapi_plugin/ppapi_webkit_thread.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_PPAPI_PLUGIN_PPAPI_WEBKIT_THREAD_H_
6 #define CONTENT_PPAPI_PLUGIN_PPAPI_WEBKIT_THREAD_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "base/threading/thread.h"
12
13 class PpapiWebKitClientImpl;
14
15 // This creates a WebKit main thread on instantiation on construction and kills
16 // it on deletion. See also content/browser/in_process_webkit for the
17 // corresponding concept in the browser process.
18 class PpapiWebKitThread {
19 public:
20 PpapiWebKitThread();
21 ~PpapiWebKitThread();
22
23 // Posts the given task to the thread, see MessageLoop::PostTask.
24 void PostTask(
25 const tracked_objects::Location& from_here,
26 const base::Closure& task);
27
28 private:
29 // Must be private so that we can carefully control its lifetime.
30 class InternalWebKitThread : public base::Thread {
31 public:
32 InternalWebKitThread();
33 virtual ~InternalWebKitThread();
34 // Does the actual initialization and shutdown of WebKit. Called at the
35 // beginning and end of the thread's lifetime.
36 virtual void Init();
37 virtual void CleanUp();
38
39 private:
40 // The WebKitClient implementation. Only access on WebKit thread.
41 scoped_ptr<PpapiWebKitClientImpl> webkit_client_;
42 };
43
44 // Pointer to the actual WebKitThread.
45 scoped_ptr<InternalWebKitThread> webkit_thread_;
46
47 DISALLOW_COPY_AND_ASSIGN(PpapiWebKitThread);
48 };
49
50 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_WEBKIT_THREAD_H_
OLDNEW
« no previous file with comments | « content/ppapi_plugin/ppapi_thread.cc ('k') | content/ppapi_plugin/ppapi_webkit_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698