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

Side by Side Diff: content/shell/renderer/shell_content_renderer_client.h

Issue 18123002: Migrate webkit/renderer/media/ to content/renderer/media/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase on mo time 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
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_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_
6 #define CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ 6 #define CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/platform_file.h" 10 #include "base/platform_file.h"
(...skipping 10 matching lines...) Expand all
21 } 21 }
22 22
23 namespace webkit_glue { 23 namespace webkit_glue {
24 class MockWebHyphenator; 24 class MockWebHyphenator;
25 } 25 }
26 26
27 class MockWebClipboardImpl; 27 class MockWebClipboardImpl;
28 28
29 namespace content { 29 namespace content {
30 30
31 class ShellMediaStreamClient;
31 class ShellRenderProcessObserver; 32 class ShellRenderProcessObserver;
32 33
33 class ShellContentRendererClient : public ContentRendererClient { 34 class ShellContentRendererClient : public ContentRendererClient {
34 public: 35 public:
35 static ShellContentRendererClient* Get(); 36 static ShellContentRendererClient* Get();
36 37
37 ShellContentRendererClient(); 38 ShellContentRendererClient();
38 virtual ~ShellContentRendererClient(); 39 virtual ~ShellContentRendererClient();
39 40
40 void LoadHyphenDictionary(base::PlatformFile dict_file); 41 void LoadHyphenDictionary(base::PlatformFile dict_file);
41 42
42 // ContentRendererClient implementation. 43 // ContentRendererClient implementation.
43 virtual void RenderThreadStarted() OVERRIDE; 44 virtual void RenderThreadStarted() OVERRIDE;
44 virtual void RenderViewCreated(RenderView* render_view) OVERRIDE; 45 virtual void RenderViewCreated(RenderView* render_view) OVERRIDE;
45 virtual bool OverrideCreatePlugin( 46 virtual bool OverrideCreatePlugin(
46 RenderView* render_view, 47 RenderView* render_view,
47 WebKit::WebFrame* frame, 48 WebKit::WebFrame* frame,
48 const WebKit::WebPluginParams& params, 49 const WebKit::WebPluginParams& params,
49 WebKit::WebPlugin** plugin) OVERRIDE; 50 WebKit::WebPlugin** plugin) OVERRIDE;
50 virtual WebKit::WebMediaStreamCenter* OverrideCreateWebMediaStreamCenter( 51 virtual WebKit::WebMediaStreamCenter* OverrideCreateWebMediaStreamCenter(
51 WebKit::WebMediaStreamCenterClient* client) OVERRIDE; 52 WebKit::WebMediaStreamCenterClient* client) OVERRIDE;
52 virtual WebKit::WebRTCPeerConnectionHandler* 53 virtual WebKit::WebRTCPeerConnectionHandler*
53 OverrideCreateWebRTCPeerConnectionHandler( 54 OverrideCreateWebRTCPeerConnectionHandler(
54 WebKit::WebRTCPeerConnectionHandlerClient* client) OVERRIDE; 55 WebKit::WebRTCPeerConnectionHandlerClient* client) OVERRIDE;
56 virtual webkit_media::MediaStreamClient* OverrideCreateMediaStreamClient()
57 OVERRIDE;
55 virtual WebKit::WebMIDIAccessor* OverrideCreateMIDIAccessor( 58 virtual WebKit::WebMIDIAccessor* OverrideCreateMIDIAccessor(
56 WebKit::WebMIDIAccessorClient* client) OVERRIDE; 59 WebKit::WebMIDIAccessorClient* client) OVERRIDE;
57 virtual WebKit::WebClipboard* OverrideWebClipboard() OVERRIDE; 60 virtual WebKit::WebClipboard* OverrideWebClipboard() OVERRIDE;
58 virtual WebKit::WebHyphenator* OverrideWebHyphenator() OVERRIDE; 61 virtual WebKit::WebHyphenator* OverrideWebHyphenator() OVERRIDE;
59 virtual WebKit::WebThemeEngine* OverrideThemeEngine() OVERRIDE; 62 virtual WebKit::WebThemeEngine* OverrideThemeEngine() OVERRIDE;
60 virtual bool AllowBrowserPlugin( 63 virtual bool AllowBrowserPlugin(
61 WebKit::WebPluginContainer* container) const OVERRIDE; 64 WebKit::WebPluginContainer* container) const OVERRIDE;
62 65
63 private: 66 private:
64 void WebTestProxyCreated(RenderView* render_view, 67 void WebTestProxyCreated(RenderView* render_view,
65 WebTestRunner::WebTestProxyBase* proxy); 68 WebTestRunner::WebTestProxyBase* proxy);
66 69
70 scoped_ptr<ShellMediaStreamClient> shell_media_stream_client_;
67 scoped_ptr<ShellRenderProcessObserver> shell_observer_; 71 scoped_ptr<ShellRenderProcessObserver> shell_observer_;
68 scoped_ptr<MockWebClipboardImpl> clipboard_; 72 scoped_ptr<MockWebClipboardImpl> clipboard_;
69 scoped_ptr<webkit_glue::MockWebHyphenator> hyphenator_; 73 scoped_ptr<webkit_glue::MockWebHyphenator> hyphenator_;
70 }; 74 };
71 75
72 } // namespace content 76 } // namespace content
73 77
74 #endif // CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ 78 #endif // CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698