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

Side by Side Diff: content/public/renderer/render_view.h

Issue 12457043: Android implementation of WebAudio audio file decoder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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_PUBLIC_RENDERER_RENDER_VIEW_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ 6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/shared_memory.h"
9 #include "base/string16.h" 10 #include "base/string16.h"
10 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
11 #include "ipc/ipc_sender.h" 12 #include "ipc/ipc_sender.h"
12 #include "skia/ext/refptr.h" 13 #include "skia/ext/refptr.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h " 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h "
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat e.h" 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat e.h"
15 #include "ui/gfx/native_widget_types.h" 16 #include "ui/gfx/native_widget_types.h"
16 17
17 class SkPicture; 18 class SkPicture;
18 19
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // Returns a collection of security info about |frame|. 167 // Returns a collection of security info about |frame|.
167 virtual SSLStatus GetSSLStatusOfFrame(WebKit::WebFrame* frame) const = 0; 168 virtual SSLStatus GetSSLStatusOfFrame(WebKit::WebFrame* frame) const = 0;
168 169
169 #if defined(OS_ANDROID) 170 #if defined(OS_ANDROID)
170 // Returns a SkPicture with the full contents of the current frame as part of 171 // Returns a SkPicture with the full contents of the current frame as part of
171 // the legacy Android WebView capture picture API. As it involves playing back 172 // the legacy Android WebView capture picture API. As it involves playing back
172 // all the drawing commands of the current frame it can have an important 173 // all the drawing commands of the current frame it can have an important
173 // performance impact and should not be used for other purposes. 174 // performance impact and should not be used for other purposes.
174 // Requires enabling the impl-side painting feature in the compositor. 175 // Requires enabling the impl-side painting feature in the compositor.
175 virtual skia::RefPtr<SkPicture> CapturePicture() = 0; 176 virtual skia::RefPtr<SkPicture> CapturePicture() = 0;
177
178 // Starts the WebAudio MediaCodec decoder.
179 static void RunWebAudioMediaCodec(
180 base::SharedMemoryHandle encoded_data_handle,
181 base::FileDescriptor pcm_output);
176 #endif 182 #endif
177 183
178 protected: 184 protected:
179 virtual ~RenderView() {} 185 virtual ~RenderView() {}
180 186
181 private: 187 private:
182 // This interface should only be implemented inside content. 188 // This interface should only be implemented inside content.
183 friend class RenderViewImpl; 189 friend class RenderViewImpl;
184 RenderView() {} 190 RenderView() {}
185 }; 191 };
186 192
187 } // namespace content 193 } // namespace content
188 194
189 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ 195 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698