Chromium Code Reviews| Index: content/browser/android/surface_texture_peer_browser_impl.h |
| diff --git a/content/browser/android/surface_texture_peer_browser_impl.h b/content/browser/android/surface_texture_peer_browser_impl.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2ee2d9f675d42f561f85b7175764e6df033f02e9 |
| --- /dev/null |
| +++ b/content/browser/android/surface_texture_peer_browser_impl.h |
| @@ -0,0 +1,41 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_BROWSER_ANDROID_SURFACE_TEXTURE_PEER_BROWSER_IMPL_H_ |
| +#define CONTENT_BROWSER_ANDROID_SURFACE_TEXTURE_PEER_BROWSER_IMPL_H_ |
| + |
| +#include "base/android/scoped_java_ref.h" |
| +#include "base/compiler_specific.h" |
| +#include "content/common/android/surface_texture_peer.h" |
| + |
| +namespace content { |
| + |
| +// The SurfaceTexturePeer implementation for browser process. |
| +class SurfaceTexturePeerBrowserImpl : public SurfaceTexturePeer { |
| + public: |
| + explicit SurfaceTexturePeerBrowserImpl(bool player_in_render_process); |
| + |
|
scherkus (not reviewing)
2012/09/07 13:17:35
nit: remove blank line
qinmin
2012/09/07 22:48:27
Done.
|
| + virtual ~SurfaceTexturePeerBrowserImpl(); |
| + |
| + // Methods inherited from SurfaceTexturePeer. |
|
scherkus (not reviewing)
2012/09/07 13:17:35
nit: SurfaceTexturePeer implementation.
qinmin
2012/09/07 22:48:27
Done.
|
| + virtual void EstablishSurfaceTexturePeer(base::ProcessHandle pid, |
| + SurfaceTextureTarget type, |
| + jobject j_surface_texture, |
| + int primary_id, |
| + int secondary_id) OVERRIDE; |
| + |
| + static bool RegisterBrowserProcessSurfaceTexture(JNIEnv* env); |
| + |
| + private: |
| + // Whether the mediaplayer is in render process |
|
scherkus (not reviewing)
2012/09/07 13:17:35
s/mediaplayer/media player/
add period to end of
qinmin
2012/09/07 22:48:27
Done.
|
| + bool player_in_render_process_; |
| + |
| + base::android::ScopedJavaGlobalRef<jobject> surface_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(SurfaceTexturePeerBrowserImpl); |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_BROWSER_ANDROID_SURFACE_TEXTURE_PEER_BROWSER_IMPL_H_ |