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

Side by Side Diff: content/browser/android/surface_texture_peer_browser_impl.h

Issue 10919075: Move android mediaplayer from render process to browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressing comments Created 8 years, 3 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
OLDNEW
(Empty)
1 // Copyright (c) 2012 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_BROWSER_ANDROID_SURFACE_TEXTURE_PEER_BROWSER_IMPL_H_
6 #define CONTENT_BROWSER_ANDROID_SURFACE_TEXTURE_PEER_BROWSER_IMPL_H_
7
8 #include "base/android/scoped_java_ref.h"
9 #include "base/compiler_specific.h"
10 #include "content/common/android/surface_texture_peer.h"
11
12 namespace content {
13
14 // The SurfaceTexturePeer implementation for browser process.
15 class SurfaceTexturePeerBrowserImpl : public SurfaceTexturePeer {
16 public:
17 explicit SurfaceTexturePeerBrowserImpl(bool player_in_render_process);
18 virtual ~SurfaceTexturePeerBrowserImpl();
19
20 // SurfaceTexturePeer implementation.
21 virtual void EstablishSurfaceTexturePeer(base::ProcessHandle pid,
22 SurfaceTextureTarget type,
23 jobject j_surface_texture,
24 int primary_id,
25 int secondary_id) OVERRIDE;
26
27 static bool RegisterBrowserProcessSurfaceTexture(JNIEnv* env);
28
29 private:
30 // Whether the media player is in render process.
31 bool player_in_render_process_;
32
33 base::android::ScopedJavaGlobalRef<jobject> surface_;
34
35 DISALLOW_COPY_AND_ASSIGN(SurfaceTexturePeerBrowserImpl);
36 };
37
38 } // namespace content
39
40 #endif // CONTENT_BROWSER_ANDROID_SURFACE_TEXTURE_PEER_BROWSER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698