summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-10 21:17:48 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-10 21:17:48 +0000
commit7a1f7c6f6c982287b3f6bb2acded619f3824416c (patch)
tree82ff404c4bcf84520c21ea7f0526ad5a40661641 /base
parentbafaee12825a06890f114a282880e135a8b0b1ae (diff)
downloadchromium_src-7a1f7c6f6c982287b3f6bb2acded619f3824416c.zip
chromium_src-7a1f7c6f6c982287b3f6bb2acded619f3824416c.tar.gz
chromium_src-7a1f7c6f6c982287b3f6bb2acded619f3824416c.tar.bz2
Make the Pepper proxy support in-process font rendering.
This implements a WebKit thread in the PPAPI plugin process so we can do the font calls without IPC. The existing font support was refactored into a virtual class (to prevent PPAPI from depending on WebKit and creating a circular GYP dependency). This moves the renderer sandbox support into content/common so that it can be used by the PPAPI process. Review URL: http://codereview.chromium.org/6981001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84856 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/bind_helpers.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/base/bind_helpers.h b/base/bind_helpers.h
index 27434e0..73fd81e 100644
--- a/base/bind_helpers.h
+++ b/base/bind_helpers.h
@@ -123,6 +123,9 @@ namespace internal {
//
// TODO(ajwong): Move to ref_counted.h or template_util.h when we've vetted
// this works well.
+//
+// TODO(ajwong): Make this check for Release() as well.
+// See http://crbug.com/82038.
template <typename T>
class SupportsAddRefAndRelease {
typedef char Yes[1];
@@ -130,7 +133,6 @@ class SupportsAddRefAndRelease {
struct BaseMixin {
void AddRef();
- void Release();
};
// MSVC warns when you try to use Base if T has a private destructor, the
@@ -148,13 +150,13 @@ class SupportsAddRefAndRelease {
template <void(BaseMixin::*)(void)> struct Helper {};
template <typename C>
- static No& Check(Helper<&C::AddRef>*, Helper<&C::Release>*);
+ static No& Check(Helper<&C::AddRef>*);
template <typename >
static Yes& Check(...);
public:
- static const bool value = sizeof(Check<Base>(0,0)) == sizeof(Yes);
+ static const bool value = sizeof(Check<Base>(0)) == sizeof(Yes);
};