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

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

Issue 19023003: Use a mock WebAudioDevice for layout tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | « no previous file | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "content/public/common/content_client.h" 12 #include "content/public/common/content_client.h"
13 #include "content/public/common/page_transition_types.h" 13 #include "content/public/common/page_transition_types.h"
14 #include "ipc/ipc_message.h" 14 #include "ipc/ipc_message.h"
15 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" 15 #include "third_party/WebKit/public/web/WebNavigationPolicy.h"
16 #include "third_party/WebKit/public/web/WebNavigationType.h" 16 #include "third_party/WebKit/public/web/WebNavigationType.h"
17 #include "third_party/WebKit/public/web/WebPageVisibilityState.h" 17 #include "third_party/WebKit/public/web/WebPageVisibilityState.h"
18 #include "v8/include/v8.h" 18 #include "v8/include/v8.h"
19 19
20 class GURL; 20 class GURL;
21 class SkBitmap; 21 class SkBitmap;
22 22
23 namespace base { 23 namespace base {
24 class FilePath; 24 class FilePath;
25 class MessageLoop; 25 class MessageLoop;
26 } 26 }
27 27
28 namespace WebKit { 28 namespace WebKit {
29 class WebAudioDevice;
29 class WebClipboard; 30 class WebClipboard;
30 class WebFrame; 31 class WebFrame;
31 class WebHyphenator; 32 class WebHyphenator;
32 class WebMIDIAccessor; 33 class WebMIDIAccessor;
33 class WebMIDIAccessorClient; 34 class WebMIDIAccessorClient;
34 class WebMediaStreamCenter; 35 class WebMediaStreamCenter;
35 class WebMediaStreamCenterClient; 36 class WebMediaStreamCenterClient;
36 class WebPlugin; 37 class WebPlugin;
37 class WebPluginContainer; 38 class WebPluginContainer;
38 class WebPrescientNetworking; 39 class WebPrescientNetworking;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // it returns NULL the content layer will create the connection handler. 135 // it returns NULL the content layer will create the connection handler.
135 virtual WebKit::WebRTCPeerConnectionHandler* 136 virtual WebKit::WebRTCPeerConnectionHandler*
136 OverrideCreateWebRTCPeerConnectionHandler( 137 OverrideCreateWebRTCPeerConnectionHandler(
137 WebKit::WebRTCPeerConnectionHandlerClient* client); 138 WebKit::WebRTCPeerConnectionHandlerClient* client);
138 139
139 // Allows the embedder to override creating a WebMIDIAccessor. If it 140 // Allows the embedder to override creating a WebMIDIAccessor. If it
140 // returns NULL the content layer will create the MIDI accessor. 141 // returns NULL the content layer will create the MIDI accessor.
141 virtual WebKit::WebMIDIAccessor* OverrideCreateMIDIAccessor( 142 virtual WebKit::WebMIDIAccessor* OverrideCreateMIDIAccessor(
142 WebKit::WebMIDIAccessorClient* client); 143 WebKit::WebMIDIAccessorClient* client);
143 144
145 // Allows the embedder to override creating a WebAudioDevice. If it
146 // returns NULL the content layer will create the audio device.
147 virtual WebKit::WebAudioDevice* OverrideCreateAudioDevice(
148 double sample_rate);
149
144 // Allows the embedder to override the WebKit::WebClipboard used. If it 150 // Allows the embedder to override the WebKit::WebClipboard used. If it
145 // returns NULL the content layer will handle clipboard interactions. 151 // returns NULL the content layer will handle clipboard interactions.
146 virtual WebKit::WebClipboard* OverrideWebClipboard(); 152 virtual WebKit::WebClipboard* OverrideWebClipboard();
147 153
148 // Allows the embedder to override the WebKit::WebHyphenator used. If it 154 // Allows the embedder to override the WebKit::WebHyphenator used. If it
149 // returns NULL the content layer will handle hyphenation. 155 // returns NULL the content layer will handle hyphenation.
150 virtual WebKit::WebHyphenator* OverrideWebHyphenator(); 156 virtual WebKit::WebHyphenator* OverrideWebHyphenator();
151 157
152 // Allows the embedder to override the WebThemeEngine used. If it returns NULL 158 // Allows the embedder to override the WebThemeEngine used. If it returns NULL
153 // the content layer will provide an engine. 159 // the content layer will provide an engine.
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 // Returns whether BrowserPlugin should be allowed within the |container|. 243 // Returns whether BrowserPlugin should be allowed within the |container|.
238 virtual bool AllowBrowserPlugin(WebKit::WebPluginContainer* container) const; 244 virtual bool AllowBrowserPlugin(WebKit::WebPluginContainer* container) const;
239 245
240 // Returns true if the page at |url| can use Pepper MediaStream APIs. 246 // Returns true if the page at |url| can use Pepper MediaStream APIs.
241 virtual bool AllowPepperMediaStreamAPI(const GURL& url) const; 247 virtual bool AllowPepperMediaStreamAPI(const GURL& url) const;
242 }; 248 };
243 249
244 } // namespace content 250 } // namespace content
245 251
246 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 252 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698